System Files and Directories (2) Flashcards

Objective 104.7

1
Q

What is FHS?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following commands will show you a program’s absolute directory reference, if it is on the system?

  1. which
  2. find
  3. bash
  4. whereis
  5. type
A
  1. 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly