mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-23 18:48:54 +00:00
Merge pull request #99 from Alexound/master
'bash' language cheatsheet: fixed and improved.
This commit is contained in:
commit
029e2b44b2
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
# Editors
|
# Editors
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
# Vim
|
||||||
|
*.swp
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# SHORTCUTS
|
# SHORTCUTS and HISTORY
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
|
||||||
CTRL+A # move to beginning of line
|
CTRL+A # move to beginning of line
|
||||||
CTRL+B # moves backward one character
|
CTRL+B # moves backward one character
|
||||||
CTRL+C # halts the current command
|
CTRL+C # halts the current command
|
||||||
@ -11,6 +10,7 @@ CTRL+D # deletes one character backward or logs out of current session, similar
|
|||||||
CTRL+E # moves to end of line
|
CTRL+E # moves to end of line
|
||||||
CTRL+F # moves forward one character
|
CTRL+F # moves forward one character
|
||||||
CTRL+G # aborts the current editing command and ring the terminal bell
|
CTRL+G # aborts the current editing command and ring the terminal bell
|
||||||
|
CTRL+H # deletes one character under cursor (same as DELETE)
|
||||||
CTRL+J # same as RETURN
|
CTRL+J # same as RETURN
|
||||||
CTRL+K # deletes (kill) forward to end of line
|
CTRL+K # deletes (kill) forward to end of line
|
||||||
CTRL+L # clears screen and redisplay the line
|
CTRL+L # clears screen and redisplay the line
|
||||||
@ -31,9 +31,16 @@ CTRL+Z # stops the current command, resume with fg in the foreground or bg in t
|
|||||||
ALT+B # moves backward one word
|
ALT+B # moves backward one word
|
||||||
ALT+D # deletes next word
|
ALT+D # deletes next word
|
||||||
ALT+F # moves forward one word
|
ALT+F # moves forward one word
|
||||||
|
ALT+H # deletes one character backward
|
||||||
|
|
||||||
DELETE # deletes one character backward
|
BACKSPACE # deletes one character backward
|
||||||
|
DELETE # deletes one character under cursor
|
||||||
|
|
||||||
|
history # shows command line history
|
||||||
!! # repeats the last command
|
!! # repeats the last command
|
||||||
|
!<n> # refers to command line 'n'
|
||||||
|
!<string> # refers to command starting with 'string'
|
||||||
|
|
||||||
exit # logs out of current session
|
exit # logs out of current session
|
||||||
|
|
||||||
|
|
||||||
@ -47,7 +54,7 @@ echo $SHELL # displays the shell you're using
|
|||||||
echo $BASH_VERSION # displays bash version
|
echo $BASH_VERSION # displays bash version
|
||||||
|
|
||||||
bash # if you want to use bash (type exit to go back to your previously opened shell)
|
bash # if you want to use bash (type exit to go back to your previously opened shell)
|
||||||
whereis bash # finds out where bash is on your system
|
whereis bash # locates the binary, source and manual-page for a command
|
||||||
which bash # finds out which program is executed as 'bash' (default: /bin/bash, can change across environments)
|
which bash # finds out which program is executed as 'bash' (default: /bin/bash, can change across environments)
|
||||||
|
|
||||||
clear # clears content on window (hide displayed lines)
|
clear # clears content on window (hide displayed lines)
|
||||||
|
Loading…
Reference in New Issue
Block a user