Results 1 to 10 of 22
Thread: need help on command [logs]
Enjoy an ad free experience by logging in. Not a member yet? Register.
need help on command [logs]
im new here on these forum, i would like to ask help on commands, i would like to view a log file located at /var/log/audit.d what command i need to let me execute or view the log file?
thanks in advance
I'm not positive, but I think thats a directory.
If that doesn't work then try
02-07-2007 #3Originally Posted by MikeTbob
thanks, it show me a lot files named save.0 to save.999 i would like to check or let say read file save.999? what would be that command? and or is it possible?
02-07-2007 #4Originally Posted by xMoDxCode:
02-07-2007 #5Originally Posted by devils_casper
thanks it worked.. =) by the way what if i would like to search for a specific file like log files of Saturday between 2 to 3am server time?
what if i would like to search for a specific file like log files of Saturday between 2 to 3am server time?
It all depends on your logs formatting. You can use "grep" to search through one or multiple files. For example,
$ grep 12-02-2007 /var/log/audit.d/save.*
This will show you lines corresponding with 12-02-2007 in all save.0 to save.999 files in your /var/log/audit.d folder. If you have a lot of results, pipe the output to less:
$ grep 12-02-2007 /var/log/audit.d/save.* | less
Oh, and by the way, using tail to view log files could be useful. It will show you the last lines of your log files.
Hope this helps.
... and since you are asking to know more commands, try that one out: "man". That one will surely proove to be useful to you
Try this if you are curious:
$ man man