Results 1 to 10 of 22
Hello good day to all, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-07-2007 #1
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
- 02-07-2007 #2
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?
- 02-08-2007 #6
what if i would like to search for a specific file like log files of Saturday between 2 to 3am server time?
- 02-08-2007 #7
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.
- 02-08-2007 #8
- 02-08-2007 #9
... 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
- 02-08-2007 #10