In our previous post, we discussed using Linux commands on Windows. Have you ever noticed a special notation in such commands? Every language and every command has a specific element that denotes something. Similarly, we can see multiple signs with Linux commands before executing any action. Usually, people who prefer to use the Linux operating system have some basic knowledge. Nevertheless, there is still one notation that users want to know.
I mean, a special notation “./” is used frequently throughout the entire Linux command. However, even though people understand Linux, most users skip the “./” notation. Moreover, here comes the problem: if you do not know about the “./” command in Linux, you might lose your grip. For such a scenario, we have tried to figure out all the relevant things about the “./” sign. So, without further ado, let us see exactly “./”.
What Does “./” Mean on the Linux Command Line?
The most potent attraction of Linux commands is their faster response compared to GUIs. In addition to that, these command lines can be used in any environment, even on servers. Furthermore, Linux commands can also be scripted. It is a surprise! I know the answer to your question. Scripting is a particular benefit of Linux, which means arranging commands in a specific manner. For that, while arranging them in a particular order, we need to specify the path of the file, meaning to which place such a script belongs.
Since, under the Linux Terminal, we can write different commands for different directories, it is essential to remember the current directory. Linux developers initiated “./” to indicate the current directory. No matter which file you use “./” for, it shows that it is stored in your current directory. Meanwhile, “./” means a notation that represents the current directory path. If any command does not have this sign, it is a program listed in one of the local directories.
Notation Meaning 1s To list the content of the directory alias To instruct for conditional formatting unalias To remove an alias pwd To show the absolute path of the directory where you are cd To change a directory rm To remove files and directories mv To move files across the directory mkdir To create folders in the shell man To display the manual page of any other command
We use this notation to clarify the ambiguity of file location. I hope you understand what “./” means on the Linux command line. Note that in Linux, before running a command, you should give it proper permission; otherwise, it will not work. Apart from the “./” notation, the Linux command line has more hidden notations that people still do not know. We are sharing a few basic notations under the Linux command line in the table below for your reference.
In conclusion, Linux commands cover a broad spectrum of space where plenty of commands work separately. I hope we have contributed to your understanding of the “./” query. Additionally, we have mentioned all the standard Linux command-line notations and their meanings to make you more independent. You can get a basic idea of how to execute a Linux command; this is all about what “./” means on the Linux command line. Even after this, if any user has a query, ask them below.
Frequently Asked Questions
Q1. What is the meaning of /?
Ans. It is the path to the beginning of a directory.
Q2. What does ‘#’ mean in Linux?
Ans. It indicates the start and end of a command.
Q3. What are $* and $# in Linux?
Ans., $# represents the number of arguments, whereas $* represents the number of strings.
Q4. What is $0 in Linux?
Ans. It is a particular variable used to print the currently executed file.