2.3 Using Directories and Listing Files - Part 1 Flashcards

1
Q

True or False: Filenames suffixes intrinsic meaning for Linux files.

(ex: document.txt, document.pdf, document.doc)

A

False - suffixes in Linux have no intrinsic value and only there for human understanding.

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

What does a tilde (~) represent in Linux?

A

Tildes (~) is a special chart yet that represents a user’s home directory.

( ex: ~/Documents/Reports )

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

Which command in Linux changes the users’ present working directory?

A

cd - which stands for “change directory”

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

Absolute paths in Linux always begin with which keyboard character?

A

“ / “ (backslash)

Ex:

/home/user/Documents/Reports

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

What does “.” And “..” represent in the Linux file directory system?

A

“.” - Indicates the user’s current location
“..” - Indicates the user’s parent directory

Both are hidden and only revealed with the “ls -a” command.

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

What does the “tree” command do and what are some common options for the tree command?

A

The tree command displays a hierarchical listing of a directory tree

Options:
-a shows hidden files including “.” & “..”
-f Lists the full path for each sub directory and file
-d shows only subdirectories
-L limits the subdirectory list (+2,3,4,etc)
-P display on files that match a subsequent pattern (-P cata*)
- -prune filters out empty directories
-p prints permissions of each file / directory
-u prints username owner of file
-g prints group ownership of files
-s prints size of each file
-h makes output more human readable

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