Thursday 5 January 2012

Some common linux commands that I forget

Check for dodgy logins :
cat /var/log/auth.log | grep 'Accepted password '

Get something off the NAS as nother user :
sudo su tomcat -c 'lftp admin@'

Check ubuntu version
cat /etc/issue

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Show packages
dpkg --get-selections

Check tomcat
less /var/lib/tomcat6/logs/catalina.out

No comments:

Post a Comment