Skip to main content

Posts

Showing posts from December, 2014

BUG: system-config-firewall-tui won't start in Centos 6.6

As reported in BUG 1123919 in Red Hat Bugzilla, system-config-firewall-tui (text user interface to configure firewall in RH family) also won't start in Centos 6.6 (complaining about python module): # system-config-firewall-tui Traceback (most recent call last): File "/usr/bin/system-config-firewall-tui", line 29, in <module> import fw_tui File "/usr/share/system-config-firewall/fw_tui.py", line 34, in <module> import fw_nm ImportError: No module named fw_nm  And, here is easy way to fix this bug: Install system-config-firewall yum -y install system-config-firewall copy file started with fw_n from /usr/share/system-config-firewall to temporary location (we use our home dir) cp /usr/share/system-config-firewall/fw_n* ~ Remove system-config-firewall yum -y remove system-config-firewall Move file started with  fw_n back to /usr/share/system-config-firewall mv fw_n* /usr/share/system-config-firewall/

List file / directory and show the size

Easy way to list file and sub directory within a directory and show the size, we can use du command combined with ls command. For example, in above screenshoot we know that there are 3 sub directories and 1 file under /var/www. du command will show estimate disk space usage in current directory. Above screenshoot show that the size of /var/www is 5,4 GB. Option -s (summarize) will display only a total for each argument, -h will print the result in human readable format (5,4G instead of 5559480). Now, we combine two commands ( du and ls ): Now, we know that the size of temp subdir  is 5,3G