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” […]
Linux Tips
Understanding Variables in Shell Scripting
A number of beautiful and powerful programming languages, like Python, Ruby, and Perl are available for scripting needs. Even then you may find the old school unix shell scripting very useful tool to learn and use. For sure, shell scripts looks crazy and hard to read/understand. Once you get a hang of it, you might […]
How to Get a Specific Line or Lines From a Big File? Hint: Use One Liner AWK
If you are working with a huge text file with millions of lines and want to know the content of a specific line, there are a few tricks you can play to get the line you want. The naive approach of reading the file line by line (say in python) and keeping a count on […]
Two Most Useful Commands, If You Live On The Linux/MacOS Terminal
Do you use the linux/Mac OS X terminal a lot? If yes, you must have a few most useful commands. The commands that help you move around terminal fast and gives you the super power to look up your history real fast will be handy on every day use. Calling them as the “Most Useful […]
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 […]