Clarification on the command "who"
Title
Question
You said that I have to type in lower case only. But I typed in uppercase "WHO", but it works. Can you explain?
Linux-New Basic-Commands-in-Linux 01-02 min 10-20 sec
Answers:
I am giving this answer on behalf of Bhavi. It is always a good idea to type the commands exactly as shown in the Spoken Tutorial. It is possible that some commands may also work with uppercase, but not all commands may work. This will be especially true for flags, about which you will learn later.
Answering on behalf of Ambika: This is explained in a subsequent spoken tutorial. For example, it is explained in the spoken tutorial Redirecting Streams and Pipes.
In Linux, commands are generally case-sensitive, meaning lowercase and uppercase are treated differently.
The command "who" works in lowercase because it is the actual command name. When you type "WHO" and it still works, it may be because your shell or system is interpreting it the same way or using an alias.
However, in most cases, Linux commands should be typed in lowercase to avoid errors. It is always recommended to use the standard lowercase form.

Login to add comment