Commands
One liners
Monitor folder size
while true; do size=$(du -sh /root/ | awk '{print $1}'); echo "$size ($(echo $size - $prev | bc) change)"; prev=$size; sleep 60; doneTMUX

Search current pane
vim

ls
Finds what directory someone ran a command in

ps
Process tree
journalctl
Viewing Logs:
Filtering Logs:
Output Formatting:
Real-time Logging:
Displaying Additional Information:
Other Options:
Useful:
Ansible
Run Adhoc Command on multiple servers
tar
Archive Folder
du
Show biggest to smallest folders
ln
The difference between a hard-link and a symbolic-link (soft-link)
Hard Link
Symbolic Link

Creates links to files and folders
Create a symbolic link to a file (or folder)
Overwrite an existing symbolic to point to a different file
Create a hard link to a file
grep
Grep OR Statement
GREP Number Range
GREP with Square Brackets in string
Grep Recursive and Ignore Folders
dig
Check if DNS is resolving host
scp
Receive folder from external machine to local machine
Send local folder on local machine to external machine
git
Squash commits before making merge request
telnet
Testing if SMTP works
Last updated