-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbash_notes.txt
More file actions
28 lines (24 loc) · 936 Bytes
/
bash_notes.txt
File metadata and controls
28 lines (24 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
In Bash
There are several shortcuts key that help speed your command typing!
Ctrl + a = Moves your cursor to the start of the line
Ctrl + e = Moves it to the end
Ctrl + u = Remove all the texts before your cursor
Ctrl + d = Ends a line or delete a character after the cursor
Ctrl + n = Searches the command history downwards
Ctrl + p = Searches the command history upwards
Ctrl + d = signal bash that there is no more input
Ctrl + l = redraw the screen
Some shortcuts!!!
!! = reuse the command typed
eg.
apt update
sudo !! will run sudo apt update
Commands Example
pushd/popd - put working directory on a stack
file - determine file type
whatis - display the on-line manual descriptions
apropos - search the manual page names and descriptions
more/less - file perusal filter for crt viewing
users - print the user names of users currently logged in
id - print real and effective user and group IDs
killall - kill processes by name