Peter_APIIT Posted January 29, 2007 Share Posted January 29, 2007 My friends told met that if you want to view the error messages for your system, you should went to /var/log/messages and /var/log/syslog. Unfortunately, i can"t open this file to view it. I have try to log in as root and open it but the console display an error messages which is permission denied. I have run out of idea. Could anyone please help me on this. Your help will greatly appreciated by me and others. Thanks for your help. Hope GOD will blessed you. Link to comment Share on other sites More sharing options...
pmpatrick Posted January 29, 2007 Share Posted January 29, 2007 (edited) Try running this in a console: $ su <enter root password> # less /var/log/messages and: # less /var/log/syslog When using the "less" command you hit the spacebar to page down and the B key to go back a page. Edited January 29, 2007 by pmpatrick Link to comment Share on other sites More sharing options...
pindakoe Posted January 29, 2007 Share Posted January 29, 2007 You could also start (whilst being logged in as normal user) start a terminal (Gnome-terminal, Terminal, rxvt, etc -- no shortage of alternatives), then become root for that terminal via "su" and then use tail /var/log/messages to see the last 10 lines (or tail -20 for 20 etc). Another good trick is tail -f /var/log/messages which will 'follow' (hence the -f) the log-file -- will update the output if the file grows. Just some ideas. If you want to be fancy there is also multi-tail (which allows clever filtering, multiple windows in a terminal etc) or you could use logdrake, also known as the 'View and Search' program from the control center (it is uner system). Link to comment Share on other sites More sharing options...
Peter_APIIT Posted March 18, 2007 Author Share Posted March 18, 2007 Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now