Calvin's Tech Space

          成于堅忍,毀于浮躁

             :: 首頁 :: 聯系 :: 聚合  :: 管理

          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/log/apache2/* : Apache web server log files directory

          => /var/log/lighttpd/* : Lighttpd web server log files directory

          => /var/log/fsck/* : fsck command log

          => /var/log/apport.log : Application crash report / log file

          To view log files at shell prompt

          Use tail, more, less and grep command.
          tail -f /var/log/apport.log
          more /var/log/xorg.0.log
          cat /var/log/mysql.err
          less /var/log/messages
          grep -i fail /var/log/boot

          Console
          $ sudo gnome-system-log
          posted on 2010-04-21 13:40 calvin 閱讀(172) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 林甸县| 连平县| 年辖:市辖区| 诸暨市| 延寿县| 察隅县| 舒兰市| 巫溪县| 伊宁市| 奉化市| 辉县市| 龙山县| 苍溪县| 双峰县| 綦江县| 新龙县| 津市市| 永城市| 临安市| 镇宁| 边坝县| 洛阳市| 衡水市| 北碚区| 枣庄市| 石嘴山市| 瓮安县| 灵璧县| 思南县| 鄢陵县| 中西区| 虹口区| 旺苍县| 红桥区| 德兴市| 常德市| 荆州市| 阳朔县| 合水县| 桑日县| 黑水县|