LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-20-2007, 05:00 AM   #1
herbietheferret
Member
 
Registered: Feb 2007
Location: Cambridge, UK
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
config woes


hi all have installed slackware 12 and have a few probs whne booting up.
i would firsly like to know how i can read the log file so then i will be able to post the errors in this thread when i can acces them.

i think they are referring to dbus
many thanks mark
 
Old 08-20-2007, 05:56 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You can use cat to read a full (log) file, or page it trough more or less, or open it in a text editor, or some other way. I prefer pagers. I assume you're talking about console usage here, and not a graphical desktop (for in a graphical desktop you could just open the logfile into a text editor).

Printing a whole file on your screen happens easily like this (note: if it's very long file, you'll only see the end of it):
Code:
cat /var/log/syslog
Actually cat (concatenate) can do much more, but it's a handy tool for reading files also. It can be used to concatenate and copy files, for example..

Logfiles usually reside under /var/log/ in UNIX systems, unless specified some other way. Let's use less as the pager, as I prefer it to more. Use whatever you want; if you have most you could use that as well. For example to read the logfile messages from /var/log you would command
Code:
less /var/log/messages
and be able to use arrow keys to scroll trough the logfile. You could type
Code:
/searchword
while in less and press ENTER to search the next searchword down the text, or
Code:
?another_searchword
to do a search upward. Press q to quit.

There are some commands to get "log information" without reading the files yourself, too. One is dmesg which provides information about what has happened since you booted (for example if you plug an usb stick in, some information pops up here):
Code:
dmesg
you can page that too:
Code:
dmesg | less
Then there is
Code:
lspci
for hardware information and so on..also see files under /proc/ if you want information from your kernel. /var/log is your primary place for system logfiles, though, like messages, syslog and many others.

You can also use grep to see lines from a file that have a certain string in them, or only lines that don't have a certain string. For example, a
Code:
grep EE /var/log/Xorg.0.log
would show those lines from Xorg.0.log that contain EE (error lines). Likewise,
Code:
grep -v WW /var/log/Xorg.0.log
would only show lines that don't have WW in them.

Last edited by b0uncer; 08-20-2007 at 05:58 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 9.3 yast2 hangs saving boot config or edit config deh6 SUSE / openSUSE 0 07-16-2006 03:43 PM
missing gtk-config on SuSE 10.0 and snd-intel8x0 woes Joseph Schiller SUSE / openSUSE 5 11-10-2005 12:28 PM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
shoutcast config woes tuxrules Linux - Newbie 2 07-17-2004 09:05 PM
Gentoo kernel config woes optimalprimer Linux - Newbie 5 11-21-2003 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration