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
          主站蜘蛛池模板: 昌乐县| 阳高县| 繁昌县| 巴东县| 广宁县| 泾阳县| 乐安县| 柳林县| 灯塔市| 霍山县| 宁明县| 涪陵区| 沁源县| 河西区| 塔城市| 嘉义市| 富蕴县| 县级市| 盐源县| 兴文县| 潍坊市| 富川| 金沙县| 建德市| 体育| 贺州市| 衡水市| 潮安县| 吉木萨尔县| 神池县| 长垣县| 精河县| 朝阳县| 胶南市| 赫章县| 尼玛县| 秀山| 乌鲁木齐县| 漯河市| 绥宁县| 巨野县|