From the category archives:

Bash Shell

Today, I will show you simple bash script I’m using to backup data in CentOS server. Before We beginning, please ensure you have “rsync” package installed.

{ 0 comments }

This guide will show you how to establish a secure connection for browsing the web through a tunnel between your computer and your server. With this method, you will set up a tunnel between your computer and your server. All your web traffic will be encrypted and forwarded from your server on to its final […]

{ 0 comments }

I need to find and list all hidden files including directories on a Linux server (CentOS). How can I recursively list all hidden files and directories? How do I save result in a text file? And How do I delete all hidden files/directories ?

{ 0 comments }

10 Linux Find Command Examples

by lifeLinux on September 8, 2011

The Linux find command is very powerful. It can search the entire filesystem to find files or directories according to the search criteria that you specify. In this article, I’ll show 10 examples of Linux find command that will be very useful to both newbies and experts.

{ 0 comments }

Auto Backup Server Files & MySQL To FTP Server

by lifeLinux on August 23, 2011

This is a simple script take to daily backup server files and MySQL databases to FTP server. Make sure you have lftp client installed. Type the following command if you are using Centos/Fedora/RedHat # yum install lftp

{ 2 comments }

How To Clear Shell History On Centos / RedHat

by lifeLinux on August 22, 2011

To clear shell history, type the following command: $ history -c Or remove .bash_history file $ rm -rf ~/.bash_history

{ 1 comment }

Displaying line numbers in vi/vim can be very useful for debugging code errors and to improve overall readability of a program. For example, if we are writing C program or Shell script and want to check coding mistakes after running or compiling it, turning on or off this feature may help a lot to identify […]

{ 0 comments }