Section 6: Directories and files Flashcards

Learning manipulate and navigate the file system with in Linux

1
Q
A

multi users can use the same system.

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

General user and super user

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

What is a superuser?

A

a superuser can access all parts of the system to execute admin tasks.

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

What are home directories?

A

Each user ( incl superuser) has their own home directory to store their photos/ downloads, bookmarks etc..

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

What are system directories?

A

Hold center config files and executable files. Can only be controlled by the super user.

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

what does / represented in the file tree?

A

root directory

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

What is mount and unmount?

A

Partitions and drives have to be mounted onto the tree in Linux, they do not have their own separate trees.

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

Can you access unmounted partitions or devices?

A

Data from unmounted partition or device is inaccessible.

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

What is important to not about naming conventions in Linux file system.

A

Linux file system names are case sensitive.

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

Do files in Linux need extensions?

A

Files in Linux do not need to have file extensions, it only matter what the format it was saved as.

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

How do you hidden files in Linux?

A

by putting . infront of the file name

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

T/F: Only the owner and root user of a file or directory can grant access?

A

true

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

What are the three type of permissions?

A

read, write and execute

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

Where can you change access permissions for files?

A

shell or GUI file manager

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

What does FHS stand for?

A

Filesystem Hierarchy Standard

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

What does FHS mean?

A

Distinguishes between shareable and unshareable files, static and variable files.

18
Q

What are static files?

A

Static files can not be changed.

19
Q

What are variable files?

A

Files that can be changed by users

20
Q

What does ls- l show?

A

lists everything in the long view ( for example shows permissions)

21
Q

What is the difference between / and \

A

The second is the escape character for ‘quoting’ the first in the separator of directories when navigating the file system in the shell

22
Q

Absolute pathname

A

Files relative to the root directory /home/user/documents/test.txt

23
Q

What does ~ represents ?

A

tilde represent the home directory ~/test.txt

24
Q

What is the relative pathname?

A

It is relative to the current directory using two hidden subdirectory . parent directory and .. one directory above parent directory.

25
What are scratch files?
Empty files to practice navigation
26
What does cp command do?
copies files
27
What is a hard link?
A duplicate directory entry where both entries point to the same file.
28
How to use ln command?
ln > origin name > linkname
29
What is the ln command?
a command to create links
30
What is a symbolic link?
also known as a soft link, . A file that refers to another file by name. Refers you back to the original file
31
How to create a soft link?
ln -s
32
What is a wildcard?
a symbol or set of symbols that stands in for other characters
33
What does '?' stand for as a wildcard?
It stands in for characters ex: b??l could be bowl, ball etc..
34
What does the wildcard '*' stand for?
match a set of characters or no characters at all b*l could be matched to bowl, bull, ball, bbll or brawl.
35
What does the wildcard [] stand for?
match any character that is exposed inside the brackets ex: b[ao][lw]l match things like bowl, ball but not bull.
36
Will BASH always be case sensitive ?
yes
37
What does rmdir do?
deletes the directory but only if its empty
38
How can you delete directories that have files in them?
rm -r
39
What is the stipulation when using the cp to copy a directory?
Must use -r ( recursive) or - a switches
40
T/F Can you use hard links or directories?
False, only ln -s can be used to create symbolic links to a directory.
41