Last active
January 20, 2016 00:59
-
-
Save vpack/ca0cd75dfe81bcb42a04 to your computer and use it in GitHub Desktop.
Tips and Tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove non-ascii character from a file. | |
tr -cd '\11\12\15\40-\176' < file-with-binary-chars > clean-file | |
== | |
yum install sysstat | |
mpstat -P ALL | |
sar -u 2 5 | |
nohup sar -o output.file 12 8 >/dev/null 2>&1 & | |
iostat -xtc 5 3 | |
iostat | |
== | |
# Monitors http://lintut.com/best-command-line-tools-for-linux-performance-monitring/ | |
yum -y install ps_mem htop atop # Process monitors | |
yum -y install nethogs iptraf # Network monitors | |
yum install -y yum-utils # Yum repoingo tool | |
yum install inxi # Server Info | |
yum -y install ncdu # Disk usage | |
inxi -G | |
inxi -ni | |
inxi -n | |
inxi -D | |
# Web log analyzer - http://goaccess.io | |
yum install ncurses-devel glib2-devel geoip | |
# Colourize - | |
yum install ccze -y | |
tail /var/log/syslog | ccze -A | |
cat /var/log/syslog | ccze -h > ~/Desktop/syslog.html | |
References: | |
- http://lintut.com/colorize-log-files-on-linux-using-ccze-tool/ | |
- http://lintut.com/best-command-line-tools-for-linux-performance-monitring/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment