Part 2 - Navigation Flashcards

How the shell treats the directory structure of the system. Absolute and relative pathnames. Basic commands that are used to move about the structure.

1
Q

What does the command pwd do?

A

Print name of current working directory

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

What does the cd command do?

A

change directory

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

What does the ls command do?

A

List directory contents

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

How files organized in Linux?

A

A Hierarchical Directory Structure

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

What is the first directory in a file system called?

A

The root directory

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

How many file system trees does linux have?

A

Always a single file system tree

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

How are storage devices mounted?

A

at various points on the tree
according to the whims of a system admin.

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

What does an ‘upended’ tree mean?

A

The root directory is at the top and the various branches are descending below.

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

What is the way to imagine the Linux file system.

A

An upside down tree, we can see the path directly above us (parent directory) and the directory we are standing in is called the current directory.

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

What is file path directly above you called ?

A

Parent directory

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

What is the directory you are currently in called?

A

Current working directory

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

In what two ways can pathnames be specified?

A

absolute pathnames and relative pathnames

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

What is an absolute pathname?

A

Begins with root directory and follows the tree branch by branch until the path to the desired directory or file is completed.

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

What is a relative pathname?

A

starts from the root directory and leads to its destination by using special symbols of . and ..

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

What does ‘.’ in a relative pathname refer to?

A

the working directory

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

What does ‘..’ refer to?

A

the directory’s parent directory.

17
Q

What is the difference between ‘ cd /usr’ and ‘ cd ..’ ?

A

The first is the absolute pathname and the second is the relative pathname

18
Q

What is the difference between ‘cd ./bin’ and ‘cd /usr/bin’ ?

A

The first is the relative pathname and it is more efficient to use, the second is the absolute pathname.

19
Q

Can you omit the ./ cause it is implied?

A

true, it can be ‘cd bin’ instead of ‘cd ./bin’

20
Q

What is the difference between cd, cd - and cd ~user_name ?

A

cd changes the directory, cd - changes the working directory to the previous directory and cd ~username changes the working directory to the home directory of that user.

21
Q

T/F Are filenames and commands case sensitive in Linux?

A

True

22
Q

What should you limit your punctuation to when creating filenames?

A

period . dash - and underscore _

23
Q

What should you avoid using entirely in filenames?

A

spaces, instead use underscores _