Linux commands

sudo apt-get update && sudo apt-get install ...

Port status

ss -antup

Active network service

lsof -i -P -n

sudo netstat -tulpn

Find files / folder

find / -name "*.php" 2>/dev/null

find / -type d -name "www" 2>/dev/null

Copy and Rename

cp /tmp/a /tmp2/a

mv index.html rev.php

Make empty file

touch newfile.html

Last updated