Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All, How can view the log files from /var/log? I tried opening it but could not able to read anything?, its all with mixed up of some symbols and ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42

    Reading Log Files

    Hi All,

    How can view the log files from /var/log?
    I tried opening it but could not able to read anything?, its all with mixed up of some symbols and not proper.
    Can some one help me on this?

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Which logfiles? Many are ascii text, and should be readable with the less pager or any text viewer/editor.

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    I believe you need to be root in order to read files in /var/log, try switching to root user before attempting to open them

    try to do as root
    Code:
    cat /var/log/file.log | less
    where file.log is the one you wanna read

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...