For some application we need to make two dimensional array which means we need an array of arrays. An example of such application is array of strings, because, as we know, string is defined as array of characters. Continue reading
This article will show how to create symbolic link and how to unlink it. Symbolic link also know as symlink or soft link is a special type of file which contains a reference to another file or directory in the form of relative or absolute path and act as pointer to other file.
Many scripts, require input from the user, or give output to the user as the script is running. This article describe how to pass arguments to script and make it non interactively, when we already know answers and we want to go thru script faster. Continue reading
This article describe simpler shorter way how to safe time when you need very often make and open directory. Continue reading
How can we refresh the current line or lines printed in the console using C programming? Answer in hidden behind VT100 escape codes. Continue reading
Finding CPU and memory utilization is one of the important tasks. Linux comes with various utilities for reporting. Following article contain shell script which will help you to find it out how much CPU or Memory is consuming every user. Continue reading
When filesystem is growing up, we need to analyse what is going on and why is our filesystem running out of space. The best for checking usage is combination of commands like df, du or find. to have it all in one place I wrote very simple and useful script which show largest files, largest directories or last attached/modified files.
As a administrators we often use commands with options and arguments which are too long and we have to user them on regular basis. For that we can use alias which will help us type shorter commands. This article will describe How to set alias in linux.
If is needed to execute command or script on a remote UNIX based machine using ssh program is the best way how to do it. Ssh provides secure encrypted communications between two untrusted hosts over an insecure network.
In shell scripting we often need to check if file or directory exists and take appropriate action. This post show you how to check it and how this check use in your script.
For checking we will use file test operators -f for file and -d for directory, which return TRUE if file or directory exists.