Some notes on Linux

Proc info: cat /proc/cpuinfo

Directory size: du

Free disk space: df

Test drive speed: hdparm -t -T

Change password: passwd (as root)

Delete anonymous mysql users: DELETE FROM mysql.user WHERE User = ‘’; (as root)
Change mysql root password: SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(’password’); (as root)

FTP commands to get multiple files: mget / mput
Use prompt n to turn off confirmations

Info about a package: rpm -q -i

Download packages: RPMFind, Fedora.

Install php-5.2: Download the latest version of glibc, then rpm -i –force –nodeps it and all other dependent modules.

[I write this mostly for my own notes, but it might be useful for others as well]

del.icio.us:Some notes on Linux digg:Some notes on Linux spurl:Some notes on Linux wists:Some notes on Linux simpy:Some notes on Linux newsvine:Some notes on Linux blinklist:Some notes on Linux furl:Some notes on Linux reddit:Some notes on Linux fark:Some notes on Linux blogmarks:Some notes on Linux Y!:Some notes on Linux smarking:Some notes on Linux

Leave a Reply