Linux zip Command Tutorial with Examples

Linux zip Command Tutorial with Examples

Zip is a compression algorithm and format used to package given files and folders to use less disk space. The zip files have generally the *.zip extension and different tools that can be used to create, add, remove or extract zip files. But the most prolific tool and command is the zip command in Linux … Read more

“ip route add” – Add Route In Linux

"ip route add" - Add Route In Linux

Linux provides the ip route command in order to manage the routing table. The routing table is used to set routes for different destination IP addresses. Even there is a default route in most of the cases which are used to sent IP packets to the other networks we may need to add new routes … Read more

How To Check Free and Used Disk Space In Ubuntu?

How To Check Free and Used Disk Space In Ubuntu?

The disk is an important resource for Ubuntu distributions and servers. Especially SSD disks are more expensive than other mechanical disks. So it is important to check free and used disk space regularly and take required actions to empty unnecessary data. Ubuntu provides different ways, commands to check free and used disk space. In this … Read more

How To Unzip/Extract Gz File In Linux?

How To Unzip/Extract Gz File In Linux?

Gzip is a popular compression algorithm and tool used to compress files to reduce file sizes? The gzip compression is very popular in Linux and Unix-based operating systems and distributions. The gzip files generally have the *.gz or *.z extension. In this tutorial, we explain how to extract or unzip the gzip files by using … Read more

How To Add Comment To Dockerfile?

How To Add Comment To Dockerfile?

Dockerfile is used to configure docker images and specify commands to be executed before the image creation. Dockerfile contains instructions to read by the docker engine and executed properly. Even the Dockerfile may contain a lot of commands, configuration, etc. which should be explained and described for later use. Comments can be added into a … Read more

Bash Shell Script Comment

Bash Shell Script Comment

Linux Bash Shell Script Comments can be used to add some information about the script of specific command or line in a script file. Comments are not interpreted as a shell script command. Single line or multiline comments can be created in a shell script. Bash Shell Script Singleline Comment The hash mark (#) is … Read more

Linux Bash Comment Tutorial

Linux Bash Comment Tutorial

Bash comments are used to provide descriptions and explanations for the bash script. Bash comments can be used to add description and explanation for a variable, function, code block, or for the complete script. Comments can be used later used to understand the bash script and related code blocks easily and make changes or updates … Read more

How To “mkdir” Only If Directory Not Exist In Linux?

How To "mkdir" Only If Directory Not Exist In Linux?

Linux mkdir command is used to create directories. The mkdir command creates directories that don’t exist. But in some cases, the directory may already exist where we do not want to create or recreate the directory. You may ask how can I accomplish this if the directory exists does not run mkdir command? Directory Existince … Read more