Command Line Tips
August 20th, 2006 by sean
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
digg
spurl
simpy
blinklist
furl
magnolia
Leave a Reply
You must be logged in to post a comment.
