0
score
|
Find the most recently modified files in a directory and all subdirectories$ find /path/to/dir -type f | perl -ne 'chomp(@files = <>); my $p = 9; foreach my $f (sort { (stat($a))[$p] <=> (stat($b))[$p] } @files) { print scalar localtime((stat($f))[$p]), "\t", $f, "\n" }' | tail |
0
score
|
Delete unversioned files in a Subversion checkout directory and all subdirectories$ svn st | grep ^? | sed -e 's/^? *//' | xargs -i{} echo rm -fr "{}" |
0
score
|
Get the available space on a partition as a single numeric value$ df /path/to/dir | sed -ne 2p | awk '{print $4}' |
0
score
|
Schedule a one-time task using "at" command and intuitive date specifications$ at now + 30 minutes |
0
score
|
Find video files cached by the flash plugin in browsers$ file /proc/*/fd/* 2>/dev/null | grep Flash | cut -f1 -d: |
0
score
|
Force the preferred language when downloading a web page with wget$ wget -–header='Accept-Language: en-us' http://www.timeanddate.com/calendar/index.html?year=2008&country=26 -O calendar.html |
0
score
|
Burn the contents of a directory to dvd without needing a gui application$ growisofs -dvd-compat -Z /dev/scd0 -R -J -pad /path/to/dir |
0
score
|
Convert all flac files in the current directory to mp3 format using "lame"$ for i in *.flac; do flac -c -d "$i" | lame -m j -b 192 -s 44.1 - "${i%.flac}.mp3"; done |
0
score
|
Halt the system in Linux without the halt command or gui$ echo o > /proc/sysrq-trigger |
0
score
|
Create an encrypted tar file with openssl$ tar c paths_to_files_and_dirs | gzip -c | openssl des3 > encrypted.tar.gz |
0
score
|
Make another user superuser in Ubuntu$ for i in $(grep :boss /etc/group | cut -f1 -d:); do adduser wife $i; done |
0
score
|
Change the label of a USB drive in Linux without a gui$ sudo mlabel -i /dev/sdd1 ::NewLabel |
0
score
|
Mirror from one Subversion repository to another Subversion repository$ bzr co https://repo1/proj1/trunk proj1 && cd proj1 && bzr push https://repo2/vendor/proj1/trunk |
0
score
|
Find Flash videos stored by browsers on a Mac$ find /private/ 2>/dev/null | grep /Flash |