Bash Commands
ls Options
Nano Shortcuts
uname -a
-a
Files
Show distribution
-R
Recursive list
Ctrl-R
Read file
mount
-r
Reverse order
Ctrl-O
Save file
date
-t
Ctrl-X
Close file
uptime
Show uptime
-S
whoami
-l
ALT-A
man command
-1
CTRL-K
-m
Comma-separated output
CTRL-U
Paste text
-Q
Quoted output
Navigate File
Bash Shortcuts
CTRL-c
CTRL-z
Sleep program
Search Files
CTRL-a
Go to start of line
grep pattern
CTRL-e
Go to end of line
CTRL-u
CTRL-k
CTRL-r
Search history
!!
!abc
!abc :p
!$
ALT-/
End of file
CTRL-A
Beginning of line
CTRL-E
End of line
CTRL-C
CTRL-_
Go to line number
files
grep -i
grep -r
Recursive search
Search File
grep -v
Inverted search
find /dir/ -
name name*
find /dir/ -user
name
CTRL-W
Find
ALT-W
Find next
CTRL-\
find /dir/ -
http://www.nano-editor.org/docs.php
!*
mmin num
^abc ^123
whereis
command
command
screen
locate file
screen -r
screen -
with 123
Bash Variables
index)
env
echo $NAME
export
list
File Operations
variable
touch file1
Create file1
cat file1
NAME =value
Screen Shortcuts
CTRL-A
CTRL-A c
CTRL-A n
CTRL-A p
CTRL-A "
CTRL-A A
file2
$PATH
less file1
$HOME
Home directory
file file1
cp file1 file2
mv file1 file2
rm file1
Delete file1
File Permissions
head file1
tail file1
chmod -R 600
tail -f file1
folder
changes
chown
group to group
$SHELL
Currentshell
IO Redirection
command < file
terminal.
file
command > file
command >
/dev/null
command >> file
command1 |
command2
command2
Process Management
ps
top
kill pid
pkill
Directory Operations
mkdir dir
name
cd dir
cd ..
Go up a directory
ls
List files
killall
name
name
read (r)
write (w)
execute (x)