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

Re: Command howto



On Tue, 2008-10-07 at 13:23 -0400, Jim wrote:
> What command can I use to get all the lines in /var/log/messages that 
> have messages on "bluetoothd" copied into a file called
> "mess" in /home/user/mess  ??
----
grep bluetoothd /var/log/messages > /home/USER/mess.txt
chown USER:users /home/user/mess.txt

(note - only superuser can read /var/log/messages but having superuser
own the file that it creates in your $HOME directory is painful)

Craig


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