≡ Menu

Linux

When you execute a unix shell-script or command that takes a long time, you can run it as a background job. In this article, let us review how to execute a job in the background, bring a job to the foreground, view all background jobs, and kill a background job. 1. Executing a background job [...]

{ 27 comments }

This article is part of our on-going bash tutorial series. Like any other programming languages, Bash also provides variables. Bash variables provide temporary storage for information that will be needed during the lifespan of the program. Syntax: VARNAME=VALUE Note: There should not be any space around “=” sign in variable assignment. When you use VAR=VALUE, [...]

{ 5 comments }

How To Fix Offending key in ~/.ssh/known_hosts file

As we discussed earlier in our basic ssh client commands article, when you do ssh to a machine for the 1st time (or whenever there is a key change in the remote machine), you will be prompted to say ‘yes’ for authenticity of host. This feature is controlled using StrictHostKeyChecking ssh parameter. By default StrictHostKeyChecking [...]

{ 35 comments }

In this article, let us review how to install MySQL on CentOS using yum. Instead of searching and installing mysql and related packages one-by-one, it is better to install MySQL using yum groups. If you are interested in installing the full LAMP stack, refer to our earlier article on how to install/upgrade LAMP using yum. [...]

{ 26 comments }

On Unix platform, tar command is the primary archiving utility. Understanding various tar command options will help you master the archive file manipulation. In this article, let us review various tar examples including how to create tar archives (with gzip and bzip compression), extract a single file or directory, view tar archive contents, validate the [...]

{ 60 comments }

Question: How do I uncompress a *.7z file ( 7zip file ) in UNIX / Linux ? Can you explain with a simple example? Answer: Use 7za command to unzip a 7z file ( 7zip file ) on Unix platform as shown below. Verify whether you have 7za command on your system. # whereis 7za [...]

{ 17 comments }

Bash shell functions are a way to group several UNIX / Linux commands for later execution using a single name for the group. Bash shell function can be executed just like a regular Unix command. Shell functions are executed in the current shell context without creating any new process to interpret them. Both bash aliases [...]

{ 14 comments }

Question: How do I view or extract the files that are bundled inside the packages of various operating system. For example, I would like to know how to view (and extract) the content of a rpm, or deb, or depot, or msi file. Answer: You can use tools like rpm, rpm2cpio, ar, dpkg, tar, swlist, [...]

{ 10 comments }