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@192.168.1.69/development/Java/blah'

Check ubuntu version
cat /etc/issue

Update
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