Iptables see specific table rules

See specific table rules for iptables — otherwise filter table is used. Add -v for more info.

iptables --table nat --list

Yum update only security-related packages

yum -y install yum-plugin-security

# To display all updates that are security relevant, and get a reutrn code on whether there are security updates enter:
yum --security check-update

# To upgrade packages that have security errata (upgrades to the latest available package) use:
yum --security update

# To upgrade packages that have security errata (upgrades to the last security errata package) use:
yum --security update-minimal

# See yum-security man page for more information:
man 8 yum-security

thanks, cyberciti

Get directory sizes via command-line

For Linux and Mac etc:

du -sh *

Linux memory usage command

cat /proc/meminfo

particularly useful in cases where you can’t use top.

more see: cyberciti.biz/faq/ram-size-linux/

TrueType fonts install on CentOS 6/RHEL

Fonts used for a PhantomJS project installed locally on server with this method. Required some css tweaks that were slightly different from desktop browser.

yum install ttmkfdir.x86_64 xorg-x11-font-utils.x86_64
 
mkdir /usr/share/fonts/default/TrueType
cp *.otf /usr/share/fonts/default/TrueType
cd /usr/share/fonts/default/TrueType
ttmkfdir
mkfontdir
fc-cache
 
# view installed fonts:
/usr/bin/fc-list

« Previous Entries