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 basic...

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...

How To Monitor File System Changes In Linux In Real Time

Monitor File System Changes In Linux In Real Time
Here’s how to monitor file system changes in Linux in real time: 1. Issue the following command at the terminal – watch -d -n 1 ‘df; ls -FIAt;’ The above command will monitor your file system for any changes and will refresh the information every second. If you want to change the interval of information refresh, change to value after ‘n’ to some other number. For...

How To List Windows PCs On The Local Network Using Linux Command Line

smbtree command in Linux
Here’s how to list Windows PCs on the local network using Linux command line: 1. Issue the following command at the terminal – smbtree When prompted enter your user password.   You will soon be presented with a list of Windows PCs on the local network after the command is run.