Linux Notes

Archive

Create Archive

tar cvf <output file name>.tar <what you want to compress>

Extract Archive

tar -xvf <tar file>

Move Files and Folders

Same machine

mv -f <from> <to>

Different machine

scp -r <from user>@<from machine>:<from file> <to user>@<to machine>:<to file>

Different machine (files only)

scp <from user>@<from machine>:<from file> <to user>@<to machine>:<to file>

List

Drives

lsblk

Hidden Files

ls -a

Machines on Network

netstat

Space Left/Taken

Folder

du -h

Computer

df -h

Delete

Everything

rm -df *