Linux Module 4 Flashcards

1
Q

A symbolic link is also known as a soft link and is depicted by an @ symbol appearing at the beginning of the filename when viewed using the ls -l command. True of False?

A

False

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

What was created to define a standard directory structure and common location for Linux?

A

FHS

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

There is no real difference between the ‘S’ and the ‘s’ special permissions when displayed using the ls -l command. One just means it is on a file and other that it is on a directory. True of False?

A

False

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

The default permissions given by the system prior to analyzing the umask are known as what for directories, and referred to as what for files?

A

rwxrwxrwx and rw-rw-rw-

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

What must a user do to run cp or mv interactively and be asked if she wants to overwrite an existing file?

A

Just type cp or mv as they run in interactive mode by default.

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

The root user user utilizes the chgrp command to give ownership of a file to another user. What must the root use do to regain ownership of the file?

A

chown user1:root file1

Bitch Im your Uh -XxXtenTacion

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

After typing the ls -F command, you see the following line in the output:

-rw-r-xr- 1user1 root

What does this mean?

A

User 1 has read and write permission, members of the group have read and execute permissions, and all other have read permissions to the file.

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

After typing the command umask731 the permissions on all subsequently created files and directories will be effected. In this case, what will permissions on all new files be?

A
    • -r–rw
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

You noticed a file in your home directory that has a + symbol appended to the mode. What does this indicate?

A

Additional entries exist within the ACL of that file that can be viewd using the getfacl command.

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

When you change the data in a file that is hard-linked to three others:

A

The data in the file you modified as well as the data in all hard-linked files are modified, as they all share the same data and all have the same inode and file size.

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

The command chmod317file1 would produce which of the following lines in the ls command?

A

–wx–xrwx 1 user root ‘date’

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

Which of the following commands will change the user ownership and group ownership of file1 to user 1 and root respectively?

A

chown user1:root file1

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

What does the /var directory contain?

A

spools and log files

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

What does the mv command do?

A

It moves a file.

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

A file has the following permissions r—-x-w-. The command chmod 143 would have the same effect as the command:

A

chmod u=x,g=r,o=wx file1

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

The which command does what?

A

Searches for a file only in directories that are in the PATH variable.

17
Q

Hard links need to reside on the same filesystem as the target, whereas symblic links need to be on the same filesystem as the target. True of False?

A

True

18
Q

What does the SGID special permission do when applied to a directory?

A

causes all new files created in the directory to have the same group membership as the directory, and not the entity that created them.

19
Q

Which command do you use to rename files and directories?

A

mv

20
Q

What are the three standard Linux permissions?

A

Execute, read ,write

21
Q

Only the root user can modify a file that has the immutable attribute set. True or False?

A

False