Command howto

Craig White craigwhite at azapple.com
Tue Oct 7 17:32:17 UTC 2008


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




More information about the fedora-list mailing list