Archive for the 'Linux/Unix' Category
This article will show you how to parse a decimal number (such as a software release number) into individual parts. For example, you can do this if you need to compare the the minor release number of two versions. There are numerous ways to accomplish the same thing using Linux and I will show you [...]
Click here to read the full post
April 2nd, 2009 | Posted in Databases, Linux/Unix | No Comments
This article will introduce you to the diff command on Linux which is used to compare two files and display the “differences” between the two. I will also provide you with a Bash shell script to compare two files and simply output if they are the same or not. Lets begin with the basic usage [...]
Click here to read the full post
April 2nd, 2009 | Posted in Linux/Unix | No Comments
This article will explain how to generate a MD5 Checksum on a file or list of filesa and also how to validate a file against a known MD5 Checksum. For those of you that are not familiar with MD5 Checksums, the purpose is to validate the integrity of a file that may have been corrupted [...]
Click here to read the full post
March 25th, 2009 | Posted in Linux/Unix | No Comments
This article will show you how to open/uncompress/unarchive a .tar.bz2 file in Linux. First a little background… bz2 or BZIP2, is a more efficient compression format than ZIP, however it takes longer to comrpess the file. Another difference is that a BZIP2 can only be used to compress a single file, not a directory of [...]
Click here to read the full post
March 16th, 2009 | Posted in Linux/Unix | No Comments
This article will show you how to install a FTP server (vsftpd) on Linux in under 30 seconds.
Installing a FTP Server on Linux
yum -y install vsftpd
After the installation is complete, you must start the FTP server by running the command:
service start vsftpd
Thats all there is to it! A couple things to note:
The default username [...]
Click here to read the full post
February 25th, 2009 | Posted in Databases, Linux/Unix | 2 Comments
This article will show you how to append a string (or any data) to the end of a file under Linux/Unix. Appending is done very simply by using the append redirect operator >>. Simply use the operator in the format data_to_append >> filename and you’re done. Below are several examples:
Examples to Append Data to a [...]
Click here to read the full post
February 23rd, 2009 | Posted in Linux/Unix | No Comments
This article will show you to how install,upgrade, and uninstall a RPM package on Linux. For additional RPM commands such as listing all installed RPMs on the box and detailed package information such as version, date created, file listing, etc. check out How to Find All Installed RPMs in Linux.
To install a RPM
rpm -ivh [package [...]
Click here to read the full post
February 17th, 2009 | Posted in Databases, Linux/Unix | 1 Comment
This article will show you to how show a list of all RPMs installed on a Linux machine, view detailed package information and all files installed by the package. To learn how to install/uninstall/upgrade an RPM, check out: How to install, upgrade, and uninstall a Linux RPM package.
List All Installed RPMs
To show a complete list [...]
Click here to read the full post
February 16th, 2009 | Posted in Linux/Unix | 1 Comment
This article will show you how to use the tail command to automatically view data that is appended to a file. This is particularly useful when you want to view the progress of some process from a log file. For example, if you want to see when the Apache server has finished loading, instead of [...]
Click here to read the full post
February 16th, 2009 | Posted in Linux/Unix | No Comments
This article will show you how to create and delete symbolic links on a Linux system. A symbolic link is basically a file that points to another file. Note that there is only 1 copy of the actual file on the hard disk, thus saving valuable hard disk space by simply creating a link to [...]
Click here to read the full post
February 2nd, 2009 | Posted in Linux/Unix | 1 Comment