Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

USP Module III

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which command is explicitly listed for displaying detailed file information?

a)

ls -l

b)

cat -n

c)

grep -r

d)

pwd

2.

Which option is mentioned alongside the ls command for handling directories?

a)

-a option

b)

-d option

c)

-h option

d)

-R option

3.

Which utility is named for modifying permissions?

a)

chmod

b)

chown

c)

touch

d)

cp

4.

There are 3 different modes of the vi editor. Which pair best matches typical vi modes?

a)

Insert and visual

b)

Command and input

c)

Debug and compile

d)

Search and replace

5.

Which vi mode’s commands are typically used for saving and quitting ?

a)

Input mode commands

b)

Command mode commands

c)

ex-mode commands

d)

Repeat command

6.

When using ls -l , which information is typically included in first column?

a)

Only file names

b)

File type and permissions details

c)

Process IDs and memory usage

d)

Network socket states

7.

Which would be most relevant mode for moving the cursor and issuing editor operations?

a)

Command mode commands

b)

Input mode commands

c)

Changing file ownership

d)

ls -l

8.

In ls -l , which column shows the owner of each file?

a)

First column

b)

Third column

c)

Fourth column

d)

Fifth column

9.

A file listing shows a size of 300 bytes. Which explanation best accounts for why the disk space used could be larger than 300 bytes?

a)

Size includes hidden metadata, inflating the byte count shown

b)

The listed size is a character count; files are stored on disk in fixed blocks such as 512 or 1024 bytes, so allocation rounds up

c)

Group ownership adds extra storage overhead to every file

d)

The modification time is stored as a 1024-byte field, increasing the disk space

10.

You want to view attributes of a directory itself (type, permissions, owner, group, size, timestamp) rather than listing its contents. Which command accomplishes this for a directory named progs?

a)

ls progs

b)

ls -l progs

c)

ls -ld progs

d)

ls -a progs

11.

A file’s contents are unchanged, but you run chmod to alter its permissions and chown to switch its owner. What happens to the file’s last modification time shown in the ls listing, and why does this matter when auditing changes?

a)

It updates because any filesystem change resets the modification time, making permission changes traceable to content edits.

b)

It remains unchanged because modification time reflects only content changes, helping auditors distinguish edits from administrative actions.

c)

It updates only if the file is less than a year old, since the timestamp field behaves differently for recent files.

d)

It is replaced by the year whenever ownership changes, indicating a security-related modification.

12.

In relative mode, which abbreviation refers to the category that includes user, group, and others all together when using chmod?

a)

u

b)

g

c)

o

d)

a

13.

After running chmod ugo+x chap1 on a file that previously lacked execute permission for all categories, which statement best explains the resulting permission change?

a)

Only the owner gains execute permission; group and others remain unchanged.

b)

All three categories—user, group, and others—gain execute permission while existing read/write bits stay as they were.

c)

Execute permission is removed for all categories and replaced with read permission.

d)

The command sets absolute permissions, overwriting all previous read and write bits.

14.

You need to remove read permission from both group and others on file chap1 using a single symbolic chmod expression. Which command accomplishes this?

a)

chmod go-r chap1

b)

chmod g,o-r chap1

c)

chmod a-r chap1

d)

chmod ugo-r chap1

15.

Starting from permissions shown as "-rwxr-xr-x" for chap1, you want to achieve user=rwx, group=rw, others=rw while leaving group and others unchanged by using an absolute assignment for only the user. Which single symbolic chmod command fits this requirement?

a)

chmod a=rwx chap1

b)

chmod u=rwx chap1

c)

chmod ug=rwx chap1

d)

chmod o=rwx chap1

16.

Recall the octal values used to represent basic permissions in chmod. Which mapping is correct for a single category (user, group, or others)?

a)

read = 4, write = 2, execute = 1

b)

read = 1, write = 2, execute = 4

c)

read = 2, write = 4, execute = 1

d)

read = 7, write = 5, execute = 3

17.

What is the command to save the complete listing of all files and directories?

a)

$ ls –l > filename

b)

$ls –lF> filename

c)

$ ls  > filename

d)

None of the above

18.

Show the octal representation for the permission string rwxr-xrw-

a)

756

b)

765

c)

777

d)

766

19.

What will the permissions string look like for the octal value 567?

a)

rwxrwxrwx

b)

rw-rwxrwx

c)

r-xrw-rwx

d)

rw-rw-r--

20.

Where are the UID and GID of a file stored?

a)

/etc/passwd

b)

/passwd

c)

/etc/password

d)

All of the above