≡ Menu

Linux

Rsync is very powerful tool to take backups, or sync files and directories between two different locations (or servers). You know this already, as we presented you with practical examples on rsync earlier. In a typical backup situation, you might want to exclude one or more files (or directories) from the backup. You might also [...]

{ 34 comments }

iptables firewall is used to manage packet filtering and NAT rules. IPTables comes with all Linux distributions. Understanding how to setup and configure iptables will help you manage your Linux firewall effectively. iptables tool is used to manage the Linux firewall rules. At a first look, iptables might look complex (or even confusing). But, once [...]

{ 79 comments }

In our previous regular expression part 1 article, we reviewed basic reg-ex with practical examples. But we can do much more with the regular expressions. You can often accomplish complex tasks with a single regular expression instead of writing several lines of codes. When applying a regex to a string, the regex engine will start [...]

{ 21 comments }

To run various open source applications you might have to install Apache, MySQL, PHP, and Perl (or some combination of these). For those who have difficulties installing and configuring these separately, XAMPP might be helpful. XAMPP is Apache distribution that contains MySQL, PHP and Perl. You really don’t need to worry about configuring MySQL, PHP, [...]

{ 7 comments }

If you are running any web based open source application that is written in perl, you should be using mod_perl with Apache instead of running it as CGI. mod_perl is way faster than running a web application using CGI. This article explains how to install mod_perl on Apache 2. First, install Apache 2, if you [...]

{ 3 comments }

9 UNIX / Linux tput Examples: Control Your Terminal Color and Cursor

tput command is used to query the terminfo terminal database and check if that terminal supports a specific feature. tput command accepts the terminal commands and output the control code sequences for that terminal. Using tput you can control the color and cursor of your terminal as explained in this article. 1. Set the Cursor [...]

{ 9 comments }

Regular expressions are used to search and manipulate the text, based on the patterns. Most of the Linux commands and programming languages use regular expression. Grep command is used to search for a specific string in a file. Please refer our earlier article for 15 practical grep command examples. You can also use regular expressions [...]

{ 20 comments }

50 UNIX / Linux Sysadmin Tutorials

Merry Christmas and Happy Holidays to all TGS Readers. To wrap this year, I’ve collected 50 UNIX / Linux sysadmin related tutorials that we’ve posted so far. This is lot of reading. Bookmark this article for your future reference and read it whenever you get free time. Disk to disk backup using dd command: dd [...]

{ 35 comments }