mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 15:47:26 +00:00
Update cheatsheets
This commit is contained in:
2
tldr/!
2
tldr/!
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# 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>.
|
||||
> More information: <https://gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||
|
||||
- Substitute with the previous command and run it with `sudo`:
|
||||
|
||||
|
||||
2
tldr/[
2
tldr/[
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Check file types and compare values.
|
||||
> Returns a status of 0 if the condition evaluates to true, 1 if it evaluates to false.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-test>.
|
||||
> More information: <https://gnu.org/software/bash/manual/bash.html#index-test>.
|
||||
|
||||
- Test if a given variable is equal/not equal to the specified string:
|
||||
|
||||
|
||||
2
tldr/[[
2
tldr/[[
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Check file types and compare values.
|
||||
> Returns a status of 0 if the condition evaluates to true, 1 if it evaluates to false.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-_005b_005b>.
|
||||
> More information: <https://gnu.org/software/bash/manual/bash.html#index-_005b_005b>.
|
||||
|
||||
- Test if a given variable is equal/not equal to the specified string:
|
||||
|
||||
|
||||
2
tldr/^
2
tldr/^
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Bash builtin to quick substitute a string in the previous command and run the result.
|
||||
> Equivalent to `!!:s^string1^string2`.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||
> More information: <https://gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||
|
||||
- Run the previous command replacing `string1` with `string2`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user