Links, FHS and Search Flashcards

(34 cards)

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)

17
Q

Virtual filesystem that holds information on running processes.

18
Q

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

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.

21
Q

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

22
Q

System log directory

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
Abbreviation: bin
Binary program files.
26
Abbreviation: spool
A directory of files waiting to be processed.
27
Abbreviation: cache
A directory of files saved to speed up time consuming processes
28
Abbreviation: include
Standard code included into other programs
29
Abbreviation: man
Manual files.
30
Abbreviation: lock
Lock files used to coordinate access to shared resources.
31
What type of system is linux?
A unified system
32
What does the find command search for?
It searches for meta data for files
33
What does the grep command search for?
It searches for the contents of a file
34
What are some options to use with find?
- 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