Find and Delete log files on a linux system. Think before you act.
1 |
find / -name '*bash_history*' -name '*.bash_logout' -name '*log*' -name '*ksh_history*' -name '*bash_logout*' -name '*utmp*' -name '*wtmp*' -name '*adm*' |
Find and Delete log files on a linux system. Think before you act.
1 |
find / -name '*bash_history*' -name '*.bash_logout' -name '*log*' -name '*ksh_history*' -name '*bash_logout*' -name '*utmp*' -name '*wtmp*' -name '*adm*' |
Central log server using rsyslog is an asset of your sysadmin life! It may get you on the surface on really critical failures when you manage xyz number of servers and some of them go down. In my case raspberry pi 2 with rasbian (debian wheezy for arm processors) does the job very well, without […]
1 2 3 4 |
Almost all logfiles are located under /var/log directory (and subdirectory). You can change to this directory using cdcommand but you need to be the root user. You can use less, more, cat or tail command to see the logs. First you should "wear" your root clothes by typing: [crayon-672964f1ecacf905318536 lang="bash" ]sudo su |
And Then you should go to /var/logs directory:
1 |
cd /var/logs |
and view common log file /var/log/messages using any one of the following command:
1 2 3 4 |
tail -f /var/log/messages less /var/log/messages more -f /var/log/messages vi /var/log/messages |
thnx for reading, @specktator[/crayon]