Use Look Command To Search For Lines From Linux Terminal

If you want to search for lines that start with a specific string / words, then look command will be useful. (There are other useful Linux command line tools like aspell that can check for typos which are easy to use and quick.) Also unlike using grep to find instances of specific words, look is used only for finding lines that begin with a specified string or letters. Using it is simple, open...

Delete Files And Folders From Linux Mint Command Line Without Using rm

If the rm command when using Linux Mint Terminal is something that is scary (quite rightly so because of rm -rf), then there is a safer alternative to deleting files and folders without worrying about messing up the system. This is by using trash command. It works similar to recycle bin although from the command line. First, install it from Terminal in Linux Mint/Ubuntu : sudo apt install...

Type Less By Using The History Feature In Bash Shell To Recall Previous Linux Commands

Bash shell has a robust history feature which makes it easy to keep a track of previous commands that can be run again whenever needed. So if you spend a lot of time with Linux commands, this can save time by not entering same commands over and over. Seeing previously used commands: To get a list of previously used commands, from the shell/Terminal type: history This will show all the commands as...

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