Archive for the 'Linux/Unix' Category

How to open/uncompress a .tar.bz2 file

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

How to install a FTP server on Linux in 30 seconds

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 [...]

Click here to read the full post

How to append string/data to a file in Linux

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 [...]

Click here to read the full post

How to install,upgrade, and uninstall a Linux RPM package

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 [...]

Click here to read the full post

How to find all installed RPMs in Linux

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 [...]

Click here to read the full post

Using ‘tail’ to output updates/appendings to a file in Linux

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

How to create/delete symbolic links in Linux

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

Find amount of physical memory (RAM) under Linux

This article will show you how to find the amount of RAM memory on a Linux machine.  To find this information you will need to login to the Linux command-line shell and and enter the following command at the $ (or #) prompt: $ cat /proc/meminfo Sample Output MemTotal:      1031960 kB MemFree:        391172 kB Buffers:         [...]

Click here to read the full post

Find the CPU (processor) speed and model under Linux

This article will show you how to find CPU (processor) type, speed, cache size, and much more under Linux. To find this information you will need to login to the Linux command-line shell and and enter the following command at the $ (or #) prompt: $ cat /proc/cpuinfo Sample Output processor : 0 vendor_id : [...]

Click here to read the full post

How to use tar to archive and extract files

This article will explain how to use the tar command in Linux to create, list, and extract files. 1. Creating a .tar file To tar the contents of a single folder: tar -cvf filename.tar /folder1 To tar the contents of a multiple folders: tar -cvf filename.tar /folder1 /folder2 /folder3 To tar multiple files tar -cvf [...]

Click here to read the full post