Skip to content

Instantly share code, notes, and snippets.

@absorber
absorber / linux_cheatsheets_+_notes.md
Last active Nov 7, 2016
Random personal cheat sheets and notes about various Linux activities.
View linux_cheatsheets_+_notes.md

My Linux cheatsheets and other handy notes


  • If vim paste is messed up, then do :set paste

Oneliners, commands and scripts which are pretty cool but I don't understand yet (fully)

Get the output of grep --color=auto -ril "keyword" . and sort it according to modify date.

find . -type f -exec grep -q keyword {} \; -printf '%T@/%p\0' | sort -zn | while IFS=/ read -rd '' tsamp file; do printf 'timestamp: %s, file: %s\n' "$tsamp" "$file"; done

@absorber
absorber / linux_resources.md
Last active Sep 29, 2016
Just some resources for people new to Linux.
View linux_resources.md
View gist:b4cbfcb560ea221633c0
pane logstats 0 :stats 1 :* 0 :/home/ab 0 htop :htop
pane logstats 0 :stats 1 :* 1 :/home/ab 0 watch :watch -n1 lsusb
pane logstats 0 :stats 1 :* 2 :/home/ab 0 sudo :sudo iotop -o
pane logstats 0 :stats 1 :* 3 :/home/ab 1 mtr :mtr www.google.com 5 -s 1 -wt -i 2
pane logstats 0 :stats 1 :* 4 :/home/ab 0 watch :watch -n1 -d free -m; df -h
pane logstats 0 :stats 1 :* 5 :/home/ab 0 watch :watch -n2 -d route -n
pane logstats 1 :tail 0 :- 0 :/home/ab 0 tail :tail -F /var/log/syslog
pane logstats 1 :tail 0 :- 1 :/home/ab 1 tail :tail -F /var/log/kern.log
window logstats 0 1 :* 562f,227x57,0,0[227x12,0,0,0,2