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

Re: Returning to /var/log/boot.log and Greg Wooledge`s reply



On Fri 25 Sep 2020 at 11:19:40 (+0100), anthony gennard wrote:
> My email has gone haywire and I cannot reply to two of the messages.
> Fortunately, I had made copies of them.
> Greg Wooledge said to me
> >"How are you `looking at ` the file?
> >I would suggest using less.
> 
> >You get out of less by pressing p

No, q, not p. You get out of less with q.
But Ctrl-C can be useful if you do something like search for
a string in a huge file and want to interrupt it because it's
taking too long.

> Greg, I was using less.
> What I did was:- Open  a terminal by ctrl + alt + F1
> `cd  /var/log` then `ls` and I could see boot.log amongst the list of files
> then I did `sudo less boot.log` and got the list of start ups.
> At this point I was stuck and asked the list for help.
> I was such a fool because I did not look up the man page for less.
> I went through the process and pressed p and low and behold and was back to
> the `root@??? /var/log`.
> Thank you.
> Now I have to try and print a copy of the first 100 or so lines which
> will give me the last boot up details.

If you make yourself a member of the adm group, you can read your logs
as a normal user. You'd need to type into any terminal

$ sudo addgroup myloginname adm

replacing myloginname as appropriate, but you will need to login again
before the addgroup command will have any effect.

Cheers,
David.


Reply to: