Links, FHS and Search Flashcards

1
Q

What command would you use to create a hard link for a file?

A

ln filename linkfilename

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

Does the hardlink create an a identical document with a different inode or the same inode?

A

The hard link will have the same inode as the original file

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

What command would you use to create a Symbolic Link

A

ln -s

ln -s filename newfilename

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

Does the Symbolic Link create a link with the same inode as the original file.

A

It creates a link that has a different inode

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

If the original file is moved what happens to the symbolic link?

A

It breaks, called a dangling symbolic link

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

Will change to the original file also be made is a symbolic link and hardline?

A

yes

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

Top level root directory

A

/

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

Temporary files, writable by all users

A

tmp

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

Binary (program files) needed to boot the system.

A

bin

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

System binaries needed to boot the system. Used by root user.

A

sbin

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

Files used to boot the system. Location of kernel files.

A

boot

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

Device files that represent hardware

A

dev

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

Configuration files

A

etc

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

Holds home directories for all users except the root user.

A

home

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

Home directory for the root user

A

root

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

System libraries (like dll files)

A

lib

17
Q

Virtual filesystem that holds information on running processes.

A

proc

18
Q

___ and its subdirectories hold most system files and programs. System must not normally write into this hierarchy.

A

usr

19
Q

Binaries (programs) that are not needed to boot the system.

A

/usr/bin and /usr/sbin

20
Q

Area for local additions to the system files.

A

/usr/local

21
Q

Writable area used for data files, spools, caches and other types of changing data.

A

var

22
Q

System log directory

A

/var/log

23
Q

Abbreviation: lib

A

Library files. Used as shared code by programs (like dll files in Windows)

24
Q

Abbreviation: rc

A

Run commands. Some type of startup file.

25
Q

Abbreviation: bin

A

Binary program files.

26
Q

Abbreviation: spool

A

A directory of files waiting to be processed.

27
Q

Abbreviation: cache

A

A directory of files saved to speed up time consuming processes

28
Q

Abbreviation: include

A

Standard code included into other programs

29
Q

Abbreviation: man

A

Manual files.

30
Q

Abbreviation: lock

A

Lock files used to coordinate access to shared resources.

31
Q

What type of system is linux?

A

A unified system

32
Q

What does the find command search for?

A

It searches for meta data for files

33
Q

What does the grep command search for?

A

It searches for the contents of a file

34
Q

What are some options to use with find?

A
  • name looks for name of a file or folder
  • type looks for the type of file or folder
  • size looks for a specified size of file or folder
  • mtime specifies frame in which so search for file or folders