[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Welcome to emergency mode!



On Tue, Feb 09, 2016 at 10:54:30PM +0000, Brian wrote:
> On Tue 09 Feb 2016 at 14:50:40 -0700, Bob Holtzman wrote:
> 
> > On Mon, Feb 08, 2016 at 05:52:27PM -0600, John Hasler wrote:
> > > Bob Holtzman writes:
> > > > As root journalctl produces a long list, tail journalctl produces 
> > > 
> > > > "tail: cannot open ‘journalctl’ for reading: No such file or directory".
> > > 
> > > > Now I'm really confused. Any explanation?
> > > 
> > > journalctl is a program for querying the systemd journal.  tail is a
> > > tool to output the last part of a file.
> > > 
> > > man journalctl
> > > 
> > > man tail
> > 
> > Of course. What's your point?
> 
> The tail *command* operates *on files*. It opens the file and displays
> the last 10 lines of it. (I think we both agree on that because we have
> read the same manual).
> 
>   tail journalctl
> 
> attempts to open a file with the name journalctl in your home directory.
> (As the output tells you - it does not exist).
> 
> If the file is not in your home directory you have to inform tail where
> it is by giving the full path. Like so:
> 
>   tail /bin/journalctl

Ouch. I missed that. It raises a new question. I've read that *spit*
systemd doesn't write logs that are human readable, however, "tail
journalctl" as root does. As user the output is unreadable (binary?).

-- 

Bob Holtzman


Reply to: