In the post we saw how to install and use whiptail. We can use whiptail to accept passwords from user too. The syntax to use the password i...Read more »
The Magician Of Linux
In the post we saw how to install and use whiptail. We can use whiptail to accept passwords from user too. The syntax to use the password i...Read more »
Break is used In scripting to stop the execution of a loop before its completion . For e.g. #!/bin/bash for((i=0;i In the above loop the...Read more »
The command read is used in scripting to accept a value for a variable from the user. The default operation of read is to wait infinetly fo...Read more »
Here is a script that can be used as a reaction timer on the terminal of linux. Reaction timers are used to calculate the time a user takes...Read more »
if we want to track the time a script takes to run, we can make use of the inbuilt BASH variable SECONDS. The value of SECONDS is always t...Read more »
The command read is used to accept values from the user or from files in scripting. The default operation of read is to echo the character...Read more »
Here are three scripts for finding the length of string using scripting 1. Using bash string operation #!/bin/bash echo "Enter the s...Read more »
Here is a script that crates a triangle of what ever character we choose. The triangle gets created right at the center in the terminal. ...Read more »
if we want to view more than one file at the same time in the same terminal, we can use the vi editor along with its command split For e....Read more »
Every user in linux is recognized by a unique user id. Here are a few ways you can find out the user id of a user. 1. Login as the user w...Read more »
We saw how we can have the terminal display a message when opened in the post " Making a message appear on opening a terminal " ...Read more »
Generally terminals open to the standard prompt, with no other frills with it. (Except in linux mint) In case you want to change this and wa...Read more »
There are situations when some executables or scripts are present in a certain forlder and we end up changing directory right up toll that f...Read more »
Here is a script that prints the RAM size of a system using the information from /proc/cpuinfo . I couldn't come across a command that g...Read more »
Very often while writing programs or text documents, we use a certain content in every file we write. For eg almost every "c" file...Read more »
The command cat is used to view the contents of a file with out opening it, the contents are displayes from top to bottom in the usual way. ...Read more »
Counting the number of blank lines in a file. Here are a few ways to count the number of blank lines in a file using shell scripting. As...Read more »
Disaplying specific number of lines from a file. The command cat displays the complete contents of the file at a time, but in case you want...Read more »
Looping in Scripts Let us say that we want to create 100 files, by the name file1,file2,file3...,file100. We could execute the command ...Read more »
Using conditional statements in scripting. Often in scripts we might want to certain things only if some other condition is satisfied For e....Read more »