-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
layout: page | ||
title: common/! (English) | ||
description: "Bash builtin to substitute with a command found in history." | ||
content_hash: 4da3907f38609c1c1d339f22e000fcd7427d10aa | ||
last_modified_at: 2023-09-15 | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># Exclamation mark | ||
|
||
Bash builtin to substitute with a command found in history. | ||
More information: <https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>. | ||
|
||
- Substitute with the previous command and run it with sudo: | ||
|
||
`sudo !!` | ||
|
||
- Substitute with a command based on its line number found with `history`: | ||
|
||
`!`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">number</span> | ||
|
||
- Substitute with a command that was used a specified number of lines back: | ||
|
||
`!-`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">number</span> | ||
|
||
- Substitute with the most recent command that starts with `string`: | ||
|
||
`!`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">string</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule source
updated
4 files
+1 −1 | contributing-guides/translation-templates/alias-pages.md | |
+4 −0 | pages.ko/common/act.md | |
+19 −3 | pages.ko/common/bzip2.md | |
+0 −0 | pages/common/!.md |