Quickly Make Sequential Directories In Bulk From Linux Terminal

Directories in an alphabetical or numbered sequence can be created directly from Linux Terminal in bulk. So for example, if a list of directories corresponding to years starting from say 2017 to 2020 need to be created, they can be done all through a single command. Here is how : From the Linux terminal, type : mkdir {2017..2020} The curly braces will contain the first and last entries while...

List All Built-In Bash Commands In Ubuntu / Linux Mint

Using the help feature to know more about a specific Bash command
With so many commands available at disposal from the Ubuntu / Linux Mint terminal, it can be useful to get a list of built-in commands supported by the Bash shell. (To get and idea about what a Linux shell is, refer to this brief overview of different shells in Linux  and to know how to use  various commands, refer to the Linux command line tutorial series). For getting the list of Bash commands,...

A Simple Linux Shell Script To Export WordPress MySQL Database

WordPress logo
One of the earlier posts explained how to backup WordPress databases directly through the Linux Terminal. Here is an example of a simple shell script that will ask for the password of MySQL user that has access to the particular WordPress MySQL database to be exported and  dump it into the the directory specified . (To know what are Linux shell scripts and how to make them, please refer to the...

Quickly Find Out List Of Open Files By Specific User Through Linux Mint / Ubuntu Terminal

Output of lsof for given user
It can be useful to get a list of all open files per user basis for a given Linux Mint / Ubuntu system. To do this quickly, open Terminal and type : lsof -u username This will generate an output of all open files by the user name specified. Run it as root to get a list of open files for any user.To make it more readable and stop scrolling through the screen, use the ‘less’ parameter : lsof...

Quickly Find Out DNS Server IP Addresses From Linux Mint / Ubuntu Command Line

Listing DNS servers IP addresses from Linux command line
It is useful to know what DNS server IP addresses are being used by the system for troubleshooting as well as for reference. Here is how to quickly get this information using the Linux Mint/Ubuntu terminal : Open Terminal and type : cat /etc/resolv.conf This will display the IP addresses of DNS servers that are being used. What the above command does is really just list the contents of a file named...