A command can be one of four distinct things:
1. An executable program like every one of those documents we saw. Inside this class, projects can be assembled binaries, for example, programs are written in C and C++, or projects sent in scripting dialects, the shell, Perl, python, ruby, and so forth.
2. A command incorporated with the shell itself. Bash supports various commands inside called shell built-ins. The “cd” option, for instance, is a shell built-in.
3. A shell function. These are smaller than standard shell contents added to the environment.
4. An alias, the commands that we can define ourselves, built from other commands.
It is frequently valuable to know precisely which of the four sorts of commands was utilized, and Linux gives a few different ways to discover it.
Ex: (kali@kali:~/Downloads$ type ls)
Ex: (kali@kali:~/Downloads$ help dir)
Numerous executable projects bolster a “- -help” option that shows a description of the command’s upheld syntax and choices.
Ex: (kali@kali:~/Downloads$ ls – -help)
Ex: (kali@kali:~/Downloads$ man ls)
Ex: (kali@kali:~/Downloads$ info cat)
Ex: (kali@kali:~/Downloads$ which ls)
Ex: (kali@kali:~/Downloads$ alias my_super_duper_calendar=cal)
To remove the alias you created, use the “unalias” command, and specify the alias name.
Ex: (kali@kali:~/Downloads$ unalias my_super_duper_calendar)