Pario TechnoBlob
About
Posts
Posts
Finding the 50 largest directories
du -S / | sort -nr | head -n50
Get your IP address
ifconfig eth0 | awk '/inet addr/{print $2}' | cut -d: -f2
One-line batch file renamer
If you want to batch rename a bunch of files (say “foo*.jpg” to “bar*.jpg”), you might think you could just do “mv foo*.jpg bar*.jpg” in the Terminal. However, this doesn’t...
Bash misc tips
Bash debugging A nice thing to do is to add on the first line #!/bin/bash -x This will produce some interesting output information Reading user input with read In many...
««
«
1
2
3
…
87
88
89
…
126
»
»»