11 simple rsync examples that you can use to be more productive

rsync examples in linux

If you have been working with Linux for any amount of time, you must be familiar with the rsync command utility. rsync is a very powerful tool that allows you to synchronize files between two locations, even remote locations over the network. It is a very powerful file transfer tool with definite advantages over any other copy programs. The generic…

12 useful bash aliases that can make you more productive in linux

bash aliases in linux

Aliases is one of the most useful features of Linux command shells. You probably end up using the same commands over and over on a daily basis. This is true if you use the command line for almost everything. You can use bash aliases (if you use bash) or shell aliases to make these every day tasks easier to execute. Most of…

how to show or display hidden files in linux

midnight commander files options

In Linux, as you should already know, there is the concept of hidden files and hidden folders. It is not exactly hidden in the literal sense, but all that means is that the file managers and file system utilities will not display these types of files (or folders) by default. The hidden file concept is not a security feature and it…

how to schedule and run a command without cron in linux

while sleep job

In Linux and Unix systems, you can schedule any command or program to run at definite intervals (or at pre-defined times) using the job scheduler framework. The most popular job-scheduling utility is cron, and the jobs run are commonly referred to as the cron jobs. Sometimes, you want to run the job only for a small amount of time (or just for…

how to split a file into multiple files in linux

split files in linux

Quite often you encounter files, usually text files that are just too big to handle. Various file operations such as even opening these files in a text editor can eat into the memory of the machine making it sluggish. It also makes searching and other text processing inside the files even more time and resource consuming. A good example of…

how to show line numbers in gedit text editor

gedit line numbers linux

There are many graphical editors in Linux, many with specific or unique features for text editing. GEdit and Kate are probably the most popular of these, mostly because they are tied to desktop environments such as Gnome and KDE respectively. There are several more that you could try such as Cream, JEdit, Kwrite and Scribes. GEdit has been quite popular…

how to call shell script (.sh) file from another shell script

Reload shell profile environment in linux

When writing or developing shell scripts in Linux, you might want to call or execute another script file from with in the current script. There are three different ways you can do this, and which method you want to use will depend on what your requirements are. Firstly, you need to know how exactly you want the other script to…

how to make shell script executable from anywhere in linux

Example of Shell Script File

In Linux, shell scripts are the standard staple of everyday life. Most programs or software in Linux and Unix use some script file to start or run. It is roughly equivalent to executable files in Windows. You will also be able to create custom shell scripts to automate many of the everyday tasks as well. It is not uncommon to end…

10 most popular command line text editors and viewers in linux and unix

Nano editor in linux

The command line interface (CLI) is a very important feature in Linux and Unix environments that you should master to get the most out of these systems. Almost all functions/features that you can perform in a desktop environment can be done using a command line. This function can be highly beneficial when you are working remotely using ssh or something similar. One…

how to rename files and folders in linux using the command line

rename files in linux

One of the common operations that you will perform repeatedly is renaming files and folders. Most often you will rename files directly from the command line. Sometimes you might also have to do it from within a shell script. Well, you could do it with a file manager as well, but what fun is that? In Linux, all folders are…

what are shell scripts in linux and why you need them

Example of Shell Script File

A Shell Script is nothing but a text file which contains a series of commands that can be executed by the shell or the underlying operating system. Some of the commands that you enter in the command line might actually be shell scripts that execute a set of other lower level commands. Also many software in Linux use shell scripts…

what is a command shell in linux

Reload shell profile environment in linux

Many posts on this site deals exclusively with how to get things done in Linux using just a command shell. We use the terms shell, command shell, command prompt, command line, console and terminal interchangeably most of the times. In most cases, it does not matter and it all means the same but there is some subtle differences between shell…