Posts under Linux

CentOS 7: How to setup TUI Firewall settings?

advertisement

centos-logoFor clean minimum CentOS 7 installation, have to manually install the system-config-firewall-tui. Bad news is that after you install this TUI firewall settings you still can’t execute it instantly, you need to do a little bit more in order for system-config-firewall-tui to be executable.

centos-7-tui-firewall-settings

To setup TUI Firewall settings in CentOS 7, follow the steps below:-

Continue reading CentOS 7: How to setup TUI Firewall settings? »

How to block all file access except one using .htaccess

advertisement

htaccessIf you use .htaccess to control the file access, i guess u might came to a situation where you want to block all the files but except one. For an example, you might want to block all the php file access in WordPress wp-content folder using .htaccess. however some of the plugins need to have direct file access (and this is php file too). To solve this problem, you can use htaccess to allow the access for only one file.

To block all access except one file using .htaccess, follow the steps below:-

Continue reading How to block all file access except one using .htaccess »

How to split compressed file into smaller files in Linux / Mac

advertisement

mac linux I’ve written a script to compressed some files and upload to my online cloud storage as a backup daily. Due to memory limitation, i’ve to split the large compressed file into smaller files and upload each of them one at a time. While i’m writing the script, i notice to split the compressed file into smaller files, you need to use another command “split” which i covered many years ago but seldom use it. :p

Continue reading How to split compressed file into smaller files in Linux / Mac »