104.7 Find System Files and Place Files in Correct Location Flashcards

1
Q

Filesystem Hierarch Standard (FHS)

defines directory structure and contents in Unix-like OS

A

FHS

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

FHS

standard maintained by Linux Foundation and as of March 2017 is on version

A

3.0

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

FHS

most distributions voluntarily choose to follow it and remain in compliance as updates are released

A

however some distributions deviate slightly

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

Directory Structure

The primary specification is that all files and directories appear under the ‘root’ directory (/),
even if stored on different physical or virtual devices (although some directories do not have to
exist at all if the dependent subsystems do not exist, such as X Windows)

A

Directory Structure

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

Directory Structure

root and root directory in FHS

A

/

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

Directory Structure

command binaries intended for all users and must be available in single user mode

A

/bin

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

Directory Structure

boot loader files (kernel, initrd, etc)

A

/boot

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

Directory Structure

Device files

A

/dev

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

Directory Structure

Host-specific config files - no binaries

A

/etc

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

Directory Structure

config files for packages stored in /opt

A

/etc/opt

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

Directory Structure

config files for software that processes SGML

A

/etc/sgml

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

Directory Structure

config files for X Windows

A

/etc/X11

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

Directory Structure

config files for software that processes XML

A

/etc/XML

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

Directory Structure

users home directory

A

/home

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

Directory Structure

libaries essential for binaries in /bin and /sbin

A

/lib

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

Directory Structure

alt format libraries - 64 bit

A

/lib[qual]

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

Directory Structure

mount point(s) for removable media - CD DVD

A

/media

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

Directory Structure

temp mounted files

A

/mnt

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

Directory Structure

options app s/w often 3rd party

A

/opt

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

Directory Structure

virtual filesystem providing process and kernel info as files and corresponds to procfs

A

/proc

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

Directory Structure

root user home directory

A

/root

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

Directory Structure

run-time var data and info about the running system since last boot

A

/run

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

Directory Structure

essential system binaries

A

/sbin

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

Directory Structure

site specific data server by the local system

A

/srv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Directory Structure contains info about connected devices
/sys
26
Directory Structure temp files not preserved between rboots
/tmp
27
Directory Structure secondary hierarchy for read-only user data
/usr
28
Directory Structure Non-essential command binaries for all users
/usr/bin
29
Directory Structure Standard include files (C/C++ .h files ie)
/usr/include
30
Directory Structure libraries for binaries in /usr/bin and /usr/sbin
/usr/lib
31
Directory Structure alt format libraries - 64 bit
/usr/lib[qual]
32
Directory Structure tertiary hierarchy for local data, specific to host
/usr/local
33
Directory Structure non-essential system binaries
/usr/sbin
34
Directory Structure architecture independent shared data
/usr/share
35
Directory Structure source code - kernel
/usr/src
36
Directory Structure older X Windows config - optional
/usr/X11R6
37
Directory Structure var files whos content is expected to change during normal system use and operation
/var
38
Directory Structure app cache data used as a result of time-consuming I/O or calculations and can be deleted without data loss
/var/cache
39
Directory Structure state information
/var/lib
40
Directory Structure lock files that keep track of resources in use
/var/lock
41
Directory Structure log files
/var/log
42
Directory Structure mailbox files
/var/mail
43
Directory Structure var data from add-on packages stored in /opt
/var/opt
44
Directory Structure run-time var data (replaced by run in 3.0)
/var/run
45
Directory Structure spool for tasks waiting to be processed
/var/spool
46
Directory Structure temp files to be preserved between resparts
/var/tmp
47
Find find files by name returning results for the indicated string in any portion of the path or filename string exists in
locate important
48
locate use regular expressions but often used to locate a known filename or partial name including
globbing
49
locate ignore case on the file being searched for
locate -i [string]
50
locate config file for updatedb command managing locate database and contains full or partial filenames and extensions to ignore or prunt from database updates
/etc/updatedb.conf
51
which will locate which command - including path - will run if indicated command is run without absolute path provided and can be important if there are multiple potential versions of an app as this will display which path contains the program FIRST in the PATH var
which
52
which display all matches in PATH in the order they would run/appear
which -a [command]
53
wheris provides more info about a command than which only provides the first matching path for it
whereis name of command all locations in PATH associated man pages
54
wheris searches for binaries
wheris -b
55
whereis searches for manual entries in man pages
whereis -m
56
whereis searches for sources
whereis -s
57
whereis unusual or undocumented entries
whereis -u
58
type will indicate whether a command has been extended
type
59
type list all variants of indicated command
type -a
60
find previously discussed the best method of finding files in the system
find
61
find find matching files by indicating permission
find -perm -[####]