Often you may want to loop through each line from a file and do something to each line. Yes, you can use Python or other programming language to do that. However, a simple bash script can be extremely useful in looping through lines in a file. Here is how to loop through lines in a […]
Basic Linux Commands
10 Easy Bash Shell Aliases
Aliases are great way to simplify the terminal experience. Basically an alias is a command line shortcut that allows one personalize the way one interact with Linux commands. The basic idea is to come with a simple version of your favorite command and add it to .bashrc file so that you can reuse the simple […]
11 Ways to Use find Command in Linux to Search Files/Directory
The find command is Linux is one of the most useful commands for searching files and directories. At first the find command syntax might look a bit daunting, but once we get a hang of it, the find command is a great asset. How to print all files and directories in current directory? find . […]
How to Find Where Linux/Mac OS X Commands Are Physically Located?
If you are a beginner it is a good thing to learn about the director/file structures of Linux/Mac OS. It is even better to start learning where the actually commands are located in your machine. You may roughly know that the commands are in some “bin” directory, but not the exact location. The command “type” […]
Tips to Get Started with Screen, the Terminal Multiplexer
The more you feel comfortable with terminal, the higher the number of terminals that will be open. For sure you will many things to keep a tab, one for your email, one for the code, one for executing the code, and so on. And one might easily get annoyed, rightly so, recreating your multiple sessions […]