We use hashtags all over in Twitter. They are excellent for discovering and tagging long text. A # in the shell is used to comment a line. Hashtags can also make our workflow more productive. Let's see how this happens.
We normally type very long commands in our Bash shell and it becomes difficult to search for the same command from History. Here is a simple trick that will make searching easier. All you need to do is to append a hashtag at the end of every command you type. And later search for the hashtag in reverse-i-search (Ctrl + R). Adding a # at the end of the command will not affect the execution of the command since anything that follows # is treated as a comment in Bash - the text is silently ignored after #.
Let us understand the above procedure using an example.
Let us assume that I run the following command on my Bash shell:
$ tar xzvf filename #untar
Now, just press Ctrl + R in the terminal window and type untar; you will get the above command from the Bash history of commands.