Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-18-2014, 06:01 AM   #1
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:
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
Old 03-18-2014, 01:49 PM   #2
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 for this will also yield you some more details.

Good luck!
Old 03-18-2014, 04:12 PM   #3
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
Registered: Jul 2012
Location: Kuala Lumpur
Distribution: Debian, CentOS/RHEL
Posts: 582

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:19 PM.

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