Command Line
pwd - print working directory
ls - list items
lscpu - info about hardware
lsmem - memory info
cd - change directory
mkdir - make directory
touch filename - create file
rm filename - remove file
clear - clear the terminal
mv [filename] [new_filename] - rename/move file
cp [filename] [new_filename] - copy file
history - list of all past commands typed in the current terminal session
Ctrl + r - search history
Ctrl + c - stop current command
cat [filename] - display file content
cat /etc/os-release - OS info
uname -a - show system and kernel
sudo [command] - run command as superuser/root.
Shift + Ctrl + c - copy
Shift + Ctrl + v - paste
Linux Command Cheat Sheet
Last updated
Was this helpful?