Posts

Showing posts with the label Ubuntu

View log files in Ubuntu Linux

View log files in Ubuntu Linux Q. Can you explain me log files in Ubuntu Linux and how do I view logs? A. All logs are stored in /var/log directory under Ubuntu (and other Linux distro). Linux Log files and usage => /var/log/messages : General log messages => /var/log/boot : System boot log => /var/log/debug : Debugging log messages => /var/log/auth.log : User login and authentication logs => /var/log/daemon.log : Running services such as squid, ntpd and others log message to this file => /var/log/dmesg : Linux kernel ring buffer log => /var/log/dpkg.log : All binary package log includes package installation and other information => /var/log/faillog : User failed login log file => /var/log/kern.log : Kernel log file => /var/log/lpr.log : Printer log file => /var/log/mail.* : All mail server message log files => /var/log/mysql.* : MySQL server log file => /var/log/user.log : All userlevel logs => /var/log/xorg.0.log : X.org log file => /var/l...

Ubuntu Komutları

Ubuntu Komutları Dosyaların yetkilerini öğrenmek için : Ls -al Dosyanın yetkisini değiştirmek için : sudo chmod 777 . Dosyanın ownershipliğini değiştirme : sudo chown -R tomcat6:root * Dökümantasyon için : man komutu : man ls Edit için sudo vim Log okuma tail -f localhost.2009-10-28.log /var/log/tomcat6/ Ethernet disable ve enable komutu : sudo ifdowneth0 / sudo ifup eth0 Memory Kullanımı : vmstat Free cat /proc/meminfo Çalışan Processleri listeler : Ps -aux Ownership değiştirme : sudo chown tomcat6:tomcat6 crowd.cfg.xml Task manager : sudo apt-get install htop