Stupid Linux Tricks

Posted: 2009-06-17 08:26:54
Modified: 2010-02-27 06:40:44

Make Static:

# dd if=/dev/urandom of=/dev/dsp

Views files and folders sorted by size:

# du -sm ./* | sort -n

View the cpu's tempature:

# cat /proc/acpi/thermal_zone/THRM/temperature 
temperature:             35 C

View size and how much free space you'r hard drive has:

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdf1              37G   35G  754M  98% /
tmpfs                 189M     0  189M   0% /lib/init/rw
udev                   10M   92K   10M   1% /dev
tmpfs                 189M  5.3M  183M   3% /dev/shm</codeb>

Resume downloading a file with wget:

wget -c http://example.com/largfile

If there is the same file on other server you can use that to resume downloading the file form another server as long as the file name is the same.

More later...


Comments



blog comments powered by Disqus