Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz_03

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.
  • Ls is used for

a)
  • Change directory

b)
  • Format listing with hidden files

c)
  • Directory listing

2.

Ls -al is used for

a)

Create or update file

b)

Change directory

c)

Formatted listing with hidden files

3.

Pwd is used for

a)

Create or update file

b)

Show current directory

c)

delete files

4.

Cd dir is used for

a)

Change directory to dir

b)

Rename file

c)

Make directory

5.

Mkdir dir is used for

a)

Change directory to dir

b)

Create directory dir

c)

create file

6.

Rm file is used for

a)

Move File

b)

Delete File

c)

Update file

7.

Rm -r dir is used for

a)

Update directory

b)

Delete File

c)

Delete directory dir

8.

cp file1 file2 is used for

a)

Move file1 to file2

b)

Delete file1 to file2

c)

Copy file1 to file2

9.

  • cp -r dir1 dir2 is used for

a)

Copy file 1 to file 2

b)

Delete file1 to file2

c)

Copy dir1 to dir 2, create dir 2 if it doesn't exist

10.

  • mv file1 file2 is used for

a)

Copy file 1 to file 2

b)

Rename or move file 1 to file 2

c)

Delete file 1 and file 2

11.
  • more file in linux is used for

a)

Show top 10 lines

b)

Show bottom 10 lines

c)

Show contents of files

12.
  • head file in linux is used for

a)

Show top 10 lines

b)

Show bottom 10 lines

c)

Show contents of files

13.
  • (Linux) What would the permissions be after running command "chmod 754 file"?

a)

 -r-x r-x r--

b)
  • -rwx r-x r--

c)
  • -rwx rwx rw-

d)

-rwx r-- r--

14.
  • Which command will set the permission of a file to read only for all users?

a)

Chmod 111

b)

Chmod 222

c)

Chmod 777

d)

Chmod 444

15.

Which command will copy a file?

a)

mv orig.txt copy.txt

b)

Cd orig.txt copy.txt

c)


Cp orig.txt copy.txt

d)


Rm orig.txt copy.txt