Synchronize panes in tmux

So, you want to run the same command over different terminals? By the end of this blog, hopefully you will know about this neat trick/hack to solve this problem. Hopefully, you’re familiar with tmux. If not, basically it is a tool that is used as terminal multiplexer. You can create, access, control multiple terminals from a single screen(and many more things). So, we will be using it to run the same command in different terminals....

May 9, 2021 · 2 min

Using watch to monitor output change for a command

This is one of the things I wish I knew earlier. There have been a lot of times, where I needed to constantly monitor the output of a command and all I would do is use the up(arrow) and enter key to constantly run the previous command. If you, too, have been in this situation, I hope you do what is required in a more optimized manner after reading this post....

August 21, 2021 · 2 min

Find your files using the locate command on Linux

If you love doing things using the command-line interface(CLI) or automating stuff, you would love to know about the usage of the locate command. It helps to find files by their names. You may use different kinds of options as per your need. Here we are going to list some of the possible use cases. Basic use locate foo This will try to match the name foo against the whole name of the file(this includes the path from the current directory)....

July 26, 2021 · 2 min

The best of ls command

The ls command lists the files in the current directory in alphabetical order, if no directory is specified. This command is extremely useful in gathering information about the details of the files present in a directory. Many other useful information can be displayed using this command. In this article, we would learn about the different options available alongside the ls command. Simple Listing ls This displays the files inside the directory in an alphabetically sorted order in a column format....

July 6, 2021 · 4 min

Search through files using the grep command in linux

The grep command is one of the most powerful commands in Linux. It is used for searching a pattern inside files. The pattern can range from a simple alphabet to a complex regular expression. There are various scenarios where grep can be useful. I will try to list some of them in this post. List all the lines in a file that contain the word grep -i 'hello world' main.txt The -i option is used to ignore case distinctions i....

June 1, 2021 · 3 min