Common Bash Command Line Strings 30-Sep-10 grep '66.162' /var/log/messages > /root/sobig.txt mail -s 'sobig.txt' someone@pcds2.com < /root/sobig.txt grep '66.162' /var/log/messages | mail -s 'sobig.txt' someone@pcds2.com vncserver vncserver -kill :1 mount 10.151.3.91:home /gate ps auxw | less netstat -a | less ethtool eth0 <-- shows current Ethernet Card settings, lets you make changes, too! mailstats man 3 syslog | lpr tail -f /var/log/maillog cat /var/log/messages | less history | less [Then, (!nnn Linux command you want to execute) ] awk 'length($0) < 5000' /var/log/httpd/access_log > /var/log/httpd/access_log.new m4 /etc/mail/sendmail.mc > /etc/sendmail.cf makemap hash /etc/aliases < /etc/aliases /etc/init.d/sendmail restart <--- old way service sendmail restart <--- new way perl -MCPAN -e shell; perl -MCPAN -e 'install Net::SSLeay' perl -MCPAN -e 'force install Net::SSLeay' ./Makefile.PL ./config make make test make install perl -MCPAN -e 'reload Cpan' chmod owner group world filename (1=x execute 2=w write 4=r read) htpasswd -c /etc/httpd/pass/.htpasswd user