Commands are names of programs installed on the system. Before proceeding with the basic command operation, let's have a look at the two types of path traversal in Linux:
- Absolute path: This method specifies the full path of a file, regardless of your current location. This path always begins with a leading / (root directory) and specifies each subdirectory traversed in order to uniquely represent a single file in the filesystem. This removes any ambiguity whatsoever in the pathname. One directory is separated from another by a forward slash (/) in the pathname. While creating shell scripts, this type of naming convention should be used to refer to a file. Absolute pathnames are long to type in comparison to relative pathnames, which are used frequently when working on the command line to refer to a file or directory.
- Relative path...