The File System Flashcards

1
Q

What are the 2 types of files

A
  1. Ordinary Files – people just call these files, but the most technical term is Directory Entries
  2. Directory Files – or just Directories; AKA folders
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do you call a folder within a folder and vice versa

A

A child or subdirectory; a parent

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

What is the most typical max length of characters for a filename

A

255

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

What is the max length for pathnames from the root

A

4096

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

How is a file hidden

A

If the filename starts with . or ..

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

What are the user preferences files called and where are they located

A

Startup Files; they are in your home directory hidden

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

What is a pathname called when its from the root

A

Absolute Pathnames

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

How do you reference the parent directory

A

../

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

What is the /bin

A

Holds essential command binaries

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

Where are the booting files

A

/boot

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

Where are the files for devices

A

/dev

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

What is the /etc

A

Machine-local system configuration files

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

What are the 3 file permission user types

A
  1. Owner
  2. Group
  3. Other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the 3 file permissions

A
  1. Read
  2. Write
  3. Execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the 2 types of arguments for permission changes

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

What is the syntax of numeric permission changes

A

UGO
Where U is for the permissions of the owner of the file
Where G is for the permissions of the group set for the file
Where O is for the permissions of everyone else
Where each letter is an octal number 0 - 7
Where each octal number is calculated as X + Y + Z
Where X represents READ access and is 4 if true or 0 if false
Where Y represents WRITE access and is 2 if true or 0 if false
Where Z represents EXECUTE access and is 1 if true or 0 if false

17
Q

What is the syntax of symbolic permission changes

A

USP
Where U is either ‘a’ for all users or 1 or more of the characters ‘u’ for the owner, ‘g’ for the group, and ‘o’ for everyone else
Where S is either ‘+’ to give permissions or ‘-‘ to take away permissions
Where P is 1 or more of the characters ‘r’ for read access, ‘w’ for write access, and ‘x’ for execute access

18
Q

What are the execute permissions for directories

A

Basically permission to enter into it to do stuff with the files inside it, but if you dont have read permissions then you cannot see whats inside of it (but having the execute permission allows you to do anything within your permissions of the files inside it, you would just need to know exact filepaths)

You can make sure a file exists in an execute-only directory by using “ls” with the filepath as an argument, but you cannot list all contents without an argument

19
Q

How can you manage permissions in a more advanced way

A

Using Access Control Lists (ACLs)

20
Q

What is a shortcut called

A

link

21
Q

What is the difference between hard and soft links

A

Hard links point specifically to a file, whereas soft links only contain a pathname (which means the actual file you end up to may differ)

22
Q
A