Archive for the ‘Redhat’ Category

How to null logs in Linux

To null out log  /var/tmp/mond.log

Run:  cp /dev/null /var/tmp/mond.log

All the content of the log file will be removed

 

If log is in use.. you can do this:

Send a SIGSTOP signal to the process which you want to pause/stop, copy the log files to target directory and finally issue a SIGCONT signal to the same process.

linux load over 4 (with 4 processors)

Redhat asked for the below 3 reports to help resolve:

  • top -n 500 -b -d 1 > /tmp/top.txt&      (top)
  • vmstat 1 500 > /tmp/vm.txt&              (vm info)
  • iostat -x 1 500 > /tmp/io.txt&               (io)

How to get Linux CPU statistics

less /proc/cpuinfo

What is my Redhat Version?

cat /etc/red*

Archives
Web Hosting
Web Hosting made easy D2-Host
Categories