System Files and Directories (2) Flashcards
Objective 104.7
What is FHS?
Filesystem Hierarchy Standard, FHS, is a reference describing the conventions used for the layout of Unix-like systems. It names directories and what they should contain.
Which of the following commands will show you a program’s absolute directory reference, if it is on the system?
- which
- find
- bash
- whereis
- type
- which, 2. find, 4. whereis AND 5. type
The which command only shows the absolute directory reference of a command if it is on the system. The find command will show you all the file’s that have the program’s name, which includes the program, if you use the find / -name command. The whereis command will show you the absolute directory reference of a program, along additional associated files, such as the program’s man page file(s). If the program is not built-into the Bash shell, the type command also will show you the absolute directory reference of a program.