Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The Following questions pertain to Linux QUESTION 1 Select the mode below that c

ID: 3878333 • Letter: T

Question

The Following questions pertain to Linux

QUESTION 1

Select the mode below that corresponds to setting r-x:

a.

2

b.

1

c.

6

d.

5

1 points   

QUESTION 2

What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?

a.

write

b.

execute

c.

sticky bit

d.

read

1 points   

QUESTION 3

What two commands below will work recursively if specified with the -R option?

a.

cp

b.

mkdir

c.

mv

d.

rm

1 points   

QUESTION 4

What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file?

a.

sticky bit

b.

SGID

c.

SQUID

d.

SUID

1 points   

QUESTION 5

If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?

a.

read

b.

move

c.

execute

d.

write

1 points   

QUESTION 6

In a file’s mode, a permission that is unavailable is represented by what character?

a.

*

b.

?

c.

+

d.

-

1 points   

QUESTION 7

In order to create a hard link, what command must be used?

a.

link

b.

ln

c.

lnk

d.

lk

1 points   

QUESTION 8

In order to quickly create an empty file, what command can be used?

a.

vim file1

b.

touch file1

c.

create file1

d.

echo file1

1 points   

QUESTION 9

In order to set all of the special permissions on a certain file or directory, which command below should be used on a file named filename?

a.

chmod 6666 filename

b.

chmod 777 filename

c.

chmod 0000 filename

d.

chmod 7777 filename

1 points   

QUESTION 10

Shell scripts do not require the execute permission in order to be run the same way binary programs are run.

True

False

1 points   

QUESTION 11

The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?

a.

/mnt

b.

/load

c.

/bin

d.

/boot

1 points   

QUESTION 12

The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?

a.

/home/root

b.

/root

c.

/bin

d.

/boot

1 points   

QUESTION 13

The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.

True

False

1 points   

QUESTION 14

The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?

a.

#

b.

$

c.

&

d.

*

1 points   

QUESTION 15

The rmdir command automatically removes a directory and all of its subdirectories and files.

True

False

1 points   

QUESTION 16

To copy a directory full of files in Linux, you must tell the cp command that the copy will be ____________________ (involve files and subdirectories too) by using the -r option

1 points   

QUESTION 17

What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?

a.

o+r-w

b.

u+r+w

c.

g-r+w

d.

g+r-w

1 points   

QUESTION 18

What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?

a.

remove

b.

del

c.

delete

d.

rm

1 points   

QUESTION 19

What command can be used to copy files?

a.

mv

b.

copy

c.

cpy

d.

cp

1 points   

QUESTION 20

What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?

a.

read

b.

sticky bit

c.

write

d.

execute

1 points   

QUESTION 21

What section of a filesystem contains information about the filesystem in general?

a.

superblock

b.

inode

c.

data blocks

d.

inode table

1 points   

QUESTION 22

When a user creates a file or directory, that user’s name and ____________________ becomes the owner and group owner of the file, respectively.

1 points   

QUESTION 23

When using the chmod command, the mode rwx can be represented by which number?

a.

0

b.

1

c.

7

d.

8

1 points   

QUESTION 24

____________________ defines a standard set of directories for use by all Linux and UNIX systems, as well as the file and subdirectory contents of each directory.

1 points   

QUESTION 25

What two commands below will grant only the execute permission to username bob on file1, assuming that bob is the file's owner?

a.

chmod 777 file1

b.

chmod 0100 file1

c.

chmod a+rwx file1

d.

chmod u=x file1

a.

2

b.

1

c.

6

d.

5

Explanation / Answer

[1] 5

[2] write

Write allows you to communicate with other users, by copying lines from your terminal to theirs.

[3] rm and cp commands

rm : deletes a file without confirmation (by default).

cp = copies files from one location to another

[4] SGID and SUID

Using SUID : a non-root user can change his own password when he does not have write permission to the /etc/shadow file

SGID permission is similar to the SUID permission, only difference is – when the script or command with SGID on is run, it runs as if it were a member of the same group in which the file is a member.

[5] write and read

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote