mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-24 21:57:38 +00:00
commit
cc3cb1bc11
@ -55,6 +55,7 @@ history # shows command line history
|
|||||||
!! # repeats the last command
|
!! # repeats the last command
|
||||||
!<n> # refers to command line 'n'
|
!<n> # refers to command line 'n'
|
||||||
!<string> # refers to command starting with 'string'
|
!<string> # refers to command starting with 'string'
|
||||||
|
esc :wq # exits and saves script
|
||||||
|
|
||||||
exit # logs out of current session
|
exit # logs out of current session
|
||||||
|
|
||||||
@ -89,7 +90,10 @@ tree # show directories and subdirectories in easilly r
|
|||||||
mc # terminal file explorer (alternative to ncdu)
|
mc # terminal file explorer (alternative to ncdu)
|
||||||
touch <filename> # creates or updates (edit) your file
|
touch <filename> # creates or updates (edit) your file
|
||||||
mktemp -t <filename> # make a temp file in /tmp/ which is deleted at next boot (-d to make directory)
|
mktemp -t <filename> # make a temp file in /tmp/ which is deleted at next boot (-d to make directory)
|
||||||
cat <filename> # prints file raw content (will not be interpreted)
|
cat <filename> # displays file raw content (will not be interpreted)
|
||||||
|
cat -n <filename> # shows number of lines
|
||||||
|
cat filename1 > filename2 # Copy filename1 to filename2
|
||||||
|
cat filename1 >> filename2 # merge two files texts together
|
||||||
any_command > <filename> # '>' is used to perform redirections, it will set any_command's stdout to file instead of "real stdout" (generally /dev/stdout)
|
any_command > <filename> # '>' is used to perform redirections, it will set any_command's stdout to file instead of "real stdout" (generally /dev/stdout)
|
||||||
more <filename> # shows the first part of a file (move with space and type q to quit)
|
more <filename> # shows the first part of a file (move with space and type q to quit)
|
||||||
head <filename> # outputs the first lines of file (default: 10 lines)
|
head <filename> # outputs the first lines of file (default: 10 lines)
|
||||||
|
Loading…
Reference in New Issue
Block a user