User Tools

Site Tools


linux_commands
sudo !!

Sudo the last command

ctrl l

Clear terminal

ctrl r

Command history reverse search

history

Show command history number to rerun command

HISTTIMEFORMAT="%y-%m-%d %t "

To add date to history ./bashrc to make perm

pushd popd

Push and pop last directory to return to a specific spot

ctrl z

Session to background

fg

Bring it back to the foreground

jobs

List of jobs in bg

ctrl shift +-

Font size

ctrl u

Delete all text on line

ctrl a

Home cursor

ctrl e

End of line

;

Concatenate commands

&&

Does same thing but does not process second command if first is invalid.

tail -f

Follow a file

cat

Display content of file

truncate -s {size}

Empty a file w 0 or set other size

mount | column -t

Pretty up columned text

micro

Better text ed than nano

linux_commands.txt · Last modified: by admin