Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 627 Bytes

Linux.md

File metadata and controls

26 lines (14 loc) · 627 Bytes

Disk Usage

df -h

Folder size

du -sh path/to/folder/

Folder size multiple folders

du -sh backups/ cache/

###Search for a string

grep -rnw /pat/to/folder/ -e 'no-cache'

How to rsync to an AWS server with a PEM

rsync -rave "ssh -i /path/to/Some-EC2-Staging.pem" . [email protected]:~

Ubuntu rsync to aws with pem

rsync -rave "ssh -i /path/to/some.pem" ~/Desktop/aws/* [email protected]:/path/to/remote/directory

How to get a servers IP ( outbound )

$ dig +short myip.opendns.com @resolver1.opendns.com