I am using cent os 5. I daily check mt log general log files as
# less /var/log/messages
When I try to view /var/log/boot it show me message
# less /var/log/boot
/var/log/boot: no such file or directory
I even can not see logs of /var/log/apport.log,/var/log/dmesg,/var/log/daemon.log
Kindly guide me how can I access log files of the said services ?
thanks
garden
log files
make sure you are root user. (test it by the command ). Then run the following command
and paste the output here:
Code: Select all
"whoami"
Code: Select all
ls /var/log/
-Khizer Naeem Mughal
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
Well I am using root user. Following is the info
[root@my-proxy ~]# ls /var/log
acpid conman.old mail prelink spooler
anaconda.log cron maillog rpmpkgs spooler.1
anaconda.syslog cron.1 maillog.1 rpmpkgs.1 spooler.2
anaconda.xlog cron.2 maillog.2 rpmpkgs.2 squid
audit cups messages samba tallylog
boot.log dmesg messages.1 scrollkeeper.log vbox
boot.log.1 faillog messages.2 secure wtmp
boot.log.2 gdm news secure.1 Xorg.0.log
btmp httpd pm secure.2 Xorg.0.log.old
conman lastlog ppp setroubleshoot yum.log
thanks,
garden
[root@my-proxy ~]# ls /var/log
acpid conman.old mail prelink spooler
anaconda.log cron maillog rpmpkgs spooler.1
anaconda.syslog cron.1 maillog.1 rpmpkgs.1 spooler.2
anaconda.xlog cron.2 maillog.2 rpmpkgs.2 squid
audit cups messages samba tallylog
boot.log dmesg messages.1 scrollkeeper.log vbox
boot.log.1 faillog messages.2 secure wtmp
boot.log.2 gdm news secure.1 Xorg.0.log
btmp httpd pm secure.2 Xorg.0.log.old
conman lastlog ppp setroubleshoot yum.log
thanks,
garden
I think you should be able to see the logs by running the following command
Well first you complained that
I think you should try again
Code: Select all
less /var/log/boot.log
It is because there is no file "boot" in the /var/log/ directorygardenair wrote: # less /var/log/boot
/var/log/boot: no such file or directory
I think you should try again
-Khizer Naeem Mughal
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.