Week 4 Comprehension Flashcards

1
Q

What does the following command do?

setfacl -m u:user1:rwx file1

  • Assign user1 a faculty role on file1
  • Assign user1 to become the sole owner of file1
  • Allow user1 to become an additional owner of file1
  • Allow user1 to become an additional group member of file1
A
  • Allow user1 to become an additional owner of file1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What can user1 do to “file1”? (Select two)

-rw-r—x. 1 user1 user1 5494 Oct 2 12:57 file1

  • Open and read the content of the file
  • Open, read, and edit the content of the file
  • Execute the file
  • Nothing
A
  • Open and read the content of the file
  • Open, read, and edit the content of the file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which one is NOT a part of the file system structure?

  • Superblock
  • Cylinder
  • Data block
  • Inode table
A
  • Cylinder
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which command should you use to rename a file?

  • cp
  • mv
  • rn
  • rename
A
  • mv
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which command is used to find the location of a file? (Select three)

  • find
  • locate
  • which
  • where
A
  • find
  • locate
  • which
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Find the match.
/etc
/var
/dev
/usr/bin

Linux commands used by all users

log files and spool

configuration files

device files

A

/etc = configuration files

/var = log files and spool

/dev = device files

/usr/bin = Linux commands used by all users

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

What can you say about the file below given you belong to “other”. (Select three)

-rwsr-xr-x. 1 root root 50152 Jul 16 2018 /usr/bin/mount

  • If will allow you to become the root user during its execution
  • It will allow you to edit the file
  • It has the execution bit set
  • It is an executable file
A
  • If will allow you to become the root user during its execution
  • It has the execution bit set
  • It is an executable file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which command is used to find the directories under user1’s home directory?

  • find ~user1 -name directories
  • find directories ~user1
  • find -type d ~user1
  • find ~user1 -type d
A
  • find ~user1 -type d
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Directories have inodes, but they do not have their own data blocks.

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

rmdir deletes the specified directory only if the directory is empty.

  • True
  • False
A

-True

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