Paths Flashcards

OBJ 1.5 (5 cards)

1
Q

Root Directory (/)

A

The top-most directory in the Linux filesystem

	● Every file and directory originates from /

	● Paths that start with / are absolute paths
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Root Example

A

○ /usr/local/bin → This means

			■ Start at / (root)

			■ Go into the usr directory

			■ Then into local

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

Home Directory (~)

A

● A shortcut to the logged-in user’s personal home directory

	● Each user has a unique home directory inside /home/
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Home Directory Example

A

If the user is sam

	■ ~ = /home/sam

	■ cd ~ takes sam to /home/sam
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Home shortcut usage

A

○ ~/Documents → The user’s Documents folder

	○ ~/scripts/myscript.sh → The myscript.sh file inside scripts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly