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
Q

Directory Structure

contains info about connected devices

A

/sys

26
Q

Directory Structure

temp files not preserved between rboots

A

/tmp

27
Q

Directory Structure

secondary hierarchy for read-only user data

A

/usr

28
Q

Directory Structure

Non-essential command binaries for all users

A

/usr/bin

29
Q

Directory Structure

Standard include files (C/C++ .h files ie)

A

/usr/include

30
Q

Directory Structure

libraries for binaries in /usr/bin and /usr/sbin

A

/usr/lib

31
Q

Directory Structure

alt format libraries - 64 bit

A

/usr/lib[qual]

32
Q

Directory Structure

tertiary hierarchy for local data, specific to host

A

/usr/local

33
Q

Directory Structure

non-essential system binaries

A

/usr/sbin

34
Q

Directory Structure

architecture independent shared data

A

/usr/share

35
Q

Directory Structure

source code - kernel

A

/usr/src

36
Q

Directory Structure

older X Windows config - optional

A

/usr/X11R6

37
Q

Directory Structure

var files whos content is expected to change during normal system use and operation

A

/var

38
Q

Directory Structure

app cache data used as a result of time-consuming I/O or calculations and can be deleted without data loss

A

/var/cache

39
Q

Directory Structure

state information

A

/var/lib

40
Q

Directory Structure

lock files that keep track of resources in use

A

/var/lock

41
Q

Directory Structure

log files

A

/var/log

42
Q

Directory Structure

mailbox files

A

/var/mail

43
Q

Directory Structure

var data from add-on packages stored in /opt

A

/var/opt

44
Q

Directory Structure

run-time var data (replaced by run in 3.0)

A

/var/run

45
Q

Directory Structure

spool for tasks waiting to be processed

A

/var/spool

46
Q

Directory Structure

temp files to be preserved between resparts

A

/var/tmp

47
Q

Find

find files by name returning results for the indicated string in any portion of the path or filename string exists in

A

locate

important

48
Q

locate

use regular expressions but often used to locate a known filename or partial name including

A

globbing

49
Q

locate

ignore case on the file being searched for

A

locate -i [string]

50
Q

locate

config file for updatedb command managing locate database and contains full or partial filenames and extensions to ignore or prunt from database updates

A

/etc/updatedb.conf

51
Q

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

A

which

52
Q

which

display all matches in PATH in the order they would run/appear

A

which -a [command]

53
Q

wheris

provides more info about a command than which only provides the first matching path for it

A

whereis

name of command
all locations in PATH
associated man pages

54
Q

wheris

searches for binaries

A

wheris -b

55
Q

whereis

searches for manual entries in man pages

A

whereis -m

56
Q

whereis

searches for sources

A

whereis -s

57
Q

whereis

unusual or undocumented entries

A

whereis -u

58
Q

type

will indicate whether a command has been extended

A

type

59
Q

type

list all variants of indicated command

A

type -a

60
Q

find

previously discussed the best method of finding files in the system

A

find

61
Q

find

find matching files by indicating permission

A

find -perm -[####]