LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2014, 06:01 AM   #1
FooIsFood
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Rep: Reputation: Disabled
tail: cannot open ‘/var/log/messages’ for reading: No such file or directory


I'm trying to look at the log entries when I insert a USB memory stick, I read that the file to look at is:
/var/log/messages
so I perform a tail -f /var/log/messages and get
tail: cannot open ‘/var/log/messages’ for reading: No such file or directory
I'm running Fedora 20 using the su - in the shell
thanks
 
Old 03-18-2014, 01:49 PM   #2
kkoene
Member
 
Registered: May 2008
Location: Wisconsin
Distribution: Fedora, Ubuntu, RHEL, AIX6
Posts: 33

Rep: Reputation: 0
The reason you are getting that error is because that file no longer exists in Fedora 20.

systemd does the logging in F20 using journals.

You will want to use the command journalctl

I recommend you check out man journalctl to find out how to use the command as I am not as familiar with it as I'd like.

Searching fedoraforum.org for this will also yield you some more details.

Good luck!
 
Old 03-18-2014, 04:12 PM   #3
FooIsFood
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
thanks - if I do a journctl -f -o cat (-f to follow -o cat to print a little shorter information) and it works just fine. I can watch /dev/sdc activity and do what I need to do.
Thanks again!
 
Old 03-19-2014, 12:25 AM   #4
ilesterg
Member
 
Registered: Jul 2012
Distribution: Arch, Debian, and CentOS/RHEL
Posts: 539

Rep: Reputation: 56
You might also want to mark this thread as solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
tail /var/log/messages casperdaghost Linux - Newbie 1 12-10-2011 05:11 PM
Howto tail -f /var/log/messages | grep isdninfo Mopp Programming 4 07-22-2011 10:00 AM
tail : cannot open `+43' for reading : No such file or directory twwwater Linux - Newbie 8 01-21-2010 06:40 AM
tail: cannot open `+5' for reading: No such file or directory mcgao07 Linux - Newbie 7 10-22-2008 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration