1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-24 05:37:39 +00:00

Merge branch 'LeCoupa:master' into master

This commit is contained in:
El. Abdellah 2021-12-07 15:40:55 +01:00 committed by GitHub
commit 1b6b59947a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -46,7 +46,7 @@ CTRL+X then ( # start recording a keyboard macro
CTRL+X then ) # finish recording keyboard macro CTRL+X then ) # finish recording keyboard macro
CTRL+X then E # recall last recorded keyboard macro CTRL+X then E # recall last recorded keyboard macro
CTRL+X then CTRL+E # invoke text editor (specified by $EDITOR) on current command line then execute resultes as shell commands CTRL+X then CTRL+E # invoke text editor (specified by $EDITOR) on current command line then execute resultes as shell commands
CTRAL+A then D # logout from screen but don't kill it, if any command exist, it will continue CTRL+A then D # logout from screen but don't kill it, if any command exist, it will continue
BACKSPACE # deletes one character backward BACKSPACE # deletes one character backward
DELETE # deletes one character under cursor DELETE # deletes one character under cursor
@ -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
@ -88,8 +89,11 @@ readlink <filename> # shows where a symbolic links points to
tree # show directories and subdirectories in easilly readable file tree tree # show directories and subdirectories in easilly readable file tree
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)
@ -183,7 +187,7 @@ dig -x <host> # reverses lookup host
wget <file> # downloads file wget <file> # downloads file
netstat # Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships netstat # Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
time <command> # report time consumed by command execution time <command> # report time consumed by command execution
############################################################################## ##############################################################################

View File

@ -215,6 +215,7 @@ z= suggest word
:q quit Vim. This fails when changes have been made. :q quit Vim. This fails when changes have been made.
:q! quit without writing. :q! quit without writing.
:cq quit always, without writing. :cq quit always, without writing.
:w save without exiting.
:wq write the current file and exit. :wq write the current file and exit.
:wq! write the current file and exit always. :wq! write the current file and exit always.
:wq {file} write to {file}. Exit if not editing the last :wq {file} write to {file}. Exit if not editing the last