- How long the system has been running
uptime
- Find id of process then kill it
ps axu | grep process_name
kill -9 process_id
- Find id of process by port then kill it
lsof -i tcp:port_number
kill -9 process_id
- Copy the content of the folder in other exist folder
cp -av source/folder/* target/folder/
- Archive content of the folder
zip -r target.zip folder/*
- Show dir sizes
du -h -d 1 path/to/folder
- Show dir sizes with sort
du -d 1 path/to/folder | sort -rnk1