mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Magrid <magrid0@proton.me> Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com> Co-authored-by: Reinhart Previano Koentjoro <reinhart@reinhart1010.id> Co-authored-by: HoJeong Im <39ghwjd@naver.com> Co-authored-by: Rodrigo Stuchi <rod-stuchi@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Darío Hereñú <magallania@gmail.com> Co-authored-by: H.Han@Fedora,TUF <harryhan912@gmail.com> Co-authored-by: Harry Han <s2162783@ed.ac.uk>
24 lines
637 B
Markdown
24 lines
637 B
Markdown
# Exclamation mark
|
|
|
|
> Ein in Bash integriertes Kommando, welches durch einen Befehl aus dem Befehlsverlauf ersetzt wird.
|
|
> Mehr Informationen: <https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
|
|
|
- Ersetze '!!' durch den vorherigen Befehl und führe ihn mit sudo aus:
|
|
|
|
`sudo !!`
|
|
|
|
- Führe den Befehl Nummer n aus. Die Nummer eines Befehls kann mit `{{history}}` herausgefunden werden:
|
|
|
|
`!{{n}}`
|
|
|
|
- Führe den n't letzten ausgeführten Befehl aus:
|
|
|
|
`!-{{n}}`
|
|
|
|
- Führe den letzten Befehl aus, der mit `{{zeichenkette}}` begann:
|
|
|
|
`!{{zeichenkette}}`
|
|
|
|
- Ersetze durch die Argumente des letzten Befehls:
|
|
|
|
`{{befehl}} !*`
|