We can use an internal field separator (IFS) variable to parse an array. Let’s use an example script, where first…
Command SNAME=$(basename “$(test -L “$0” && readlink “$0” || echo “$0″)”) While running a bash script using Linux terminal the…
MX records in DNS are used to route emails to correct mail servers and properly send to correct destination server.…
Generally Ubuntu users used Synaptic Package Manager for GUI and apt package manager for command line for installing packages. But…
Command: md5sum myfile.php > myfile.php.md5 Above command will generate md5 checksum of file myfile.php and store in file myfile.php.md5. myfile.php.md5…
Linux, much like any other operating system, relies on processes for its operations. Occasionally, these processes may become unresponsive or…
We can easily get values passed in url query string using JavaScript or jQuery. Here is an simple examples of…
This tutorial will help you to redirect a webpage to another webpage using JavaScript. Here are 3 examples of redirecting…
The JavaScript indexOf() method search for the substring in string and returns the position of the first occurrence of a…
Command: echo <password> | passwd –stdin <username> Example: Use the following command to change password of user jack in a…