Feed on
Posts
Comments

Command Line Tips

Unix Command Lines:
Some of these commands have not been tested on all platforms and may not be compatible with your system. Know your limits and use at your own risk.

File to MySQL: - Execute mysql statements that reside in a local file
mysql -u user -ppassword databasename < file
Launch CPAN: - Start the CPAN shell.
perl -MCPAN -e shell
List my IP’s: - Print a list of IP addresses for your machine
ifconfig | gawk ‘/inet/{print $2}’ | gawk -F : ‘//{print $2}’|sort
Power permissions: - Recursively change permissions by file extension
find . -name ‘*.extension’ -print0 | xargs -0 chmod 666
Power removing: - Remove files that start with - or *
rm — “-file”
Print it Man: - Print “man” pages to your local printer
man commandname | col -b | ul -t dumb | lpr

del.icio.us:Command Line Tips del.icio.us  digg:Command Line Tips digg  spurl:Command Line Tips spurl  simpy:Command Line Tips simpy  blinklist:Command Line Tips blinklist  furl:Command Line Tips furl  magnolia:Command Line Tips magnolia

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.