1.9 Search - Tomato6966/Debian-Cheat-Sheet-Setup GitHub Wiki

Search for pattern in file

grep pattern file

Search recursively for pattern in directory

grep -r pattern directory

Find files and directories by name

locate name

Find files in /home/john that start with "prefix".

find /home/john -name 'prefix*'

Find files larger than 100MB in /home

find /home -size +100M

12 – SSH LOGINS

Connect to host as your local username.

ssh host

Connect to host as user

ssh user@host

Connect to host using port

ssh -p port user@host