Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Server I Week 5

Total questions: 48

Worksheet time: 24mins

Name
Class
Date
1.

What is the name of a Linux command used for renaming files and directories?

a)

rm

b)

ps

c)

mv

d)

ls

2.

Which of the following commands allows for moving one

level up in Linux directory tree?

a)

cd -

b)

cd ..

c)

cd /

d)

cd .

3.

when creating soft link ,if the original file has been removed it won`t be useful any more ?

a)

True

b)

False

4.

what is the Linux command segment used to append data to the "s.txt" file ?

a)

echo "Hey Ubuntu "

b)

echo "Hey Ubuntu " > s.txt

c)

ls >> s.txt

d)

echo "Hello " > s.txt

5.

What is the name of a Linux command used for count the number of lines in a file ?

a)

wc a.txt

b)

count -l a.txt

c)

wc -l a.txt

d)

wc -w a.txt

6.

Which Command Shows Permissions in Files

a)

ls -l

b)

ls -a

c)

ls -h

d)

ls -r

7.

What single character can be used to refer to the active user's home directory?

a)

^

b)

$

c)

~

d)

there is none

8.

If I am in the /home/tator directory and run the command cp Desktop/file1.txt Desktop/file2.txt I am using what type of path for the files?

a)

Parent

b)

Absolute

c)

Relative

d)

Cousin

9.

What is the command to list hidden files & directory?

a)

ls -l

b)

ls -a

c)

ls

d)

None of these

10.

Which of the following commands allows for moving one level up in Linux directory tree?

a)

cd -

b)

cd /

c)

cd --

d)

cd ~

11.

Which permission amongst the following allows only groups to read and execute the file and denies all user as well as others to read, write and execute ?

a)

rwxrwx---

b)

rw-r-x--x

c)

---r-x---

d)

r-x-w-rwx

12.

How to make a file executable the right way?

a)

chmod 777

b)

chmod a-x

c)

chmod +x

d)

chmod 400

13.

Moves to the root directory

a)

cd ~

b)

cd \

c)

cd /

d)

cd ..

14.

The following command can list out all the current active logins.

a)

A - whoami

b)

B - who am i

c)

C - who

d)

D - None of the above.

15.

The mv command changes

a)

Only the directory entry

b)

Only the directory entry and i-node

c)

Only the i-node number

d)

None of the above

16.

change permission of a file to rw-r--r-x?

a)

chmod 546 file

b)

chmod 642 file

c)

chmod 645 file

d)

chmod 655 file

17.
Which meta character takes output of first command as input of second command?
a)
Multiple Choice
b)
;
c)
|
d)
||
18.

which of the following command deletes directory along with its subdirectory and files?

a)

rm -a

b)

rm -rf

c)

rmdir

d)

rm

19.

use of CAT command

a)

allows you to create single

b)

multiple files, view contents of file

c)

redirect output in terminal or files

d)

All Of the Above

20.

chmod 744 ?

a)

The first number stands for the user who is associated with the file

b)

The second number is for the group associated with the file

c)

The third number is associated with everyone else who is not a part of the user or group

d)

All of these

21.

System root directory

a)

/root

b)

/

22.

Root users home directory

a)

/

b)

/root

23.

Displays the current month with current month highlighted

a)

calendar

b)

cal

c)

month

24.

Waits a number of seconds Sometimes used in scripts

a)

time

b)

wait

c)

sleep

25.

Displays how long it takes to execute a command

a)

time

b)

date

c)

sleep

26.

The command which helps to travel inside in the system, change and switch directory

a)

pwd

b)

cd

c)

ls

27.

Print name of current working directory, shows where you at at the moment

a)

ls

b)

pwd

c)

ls -l

28.

Listing of files and directory's of current directory, short listing

a)

ll

b)

ls

c)

ls -l

29.

How do you clear your screen

a)

ctrl C

b)

ctrl D

c)

ctrl L

30.

How do you switch user, change user, change into users home directory

a)

su

b)

su -

c)

switch user

31.

How do you exit or log out of a user

a)

exit

b)

log out

32.

User manual where definitions of many commands can be found

a)

man string

b)

man page

33.

How do you exit from man pages, which key you can use on your keyboard

a)

a

b)

d

c)

q

34.

This command displays date and time

a)

time

b)

date

35.

This command takes you to the start of the line

a)

ctrl u

b)

ctrl e

c)

ctrl a

36.

This command takes you to the end of the line

a)

ctrl a

b)

ctrl e

c)

ctrl k

37.

With this command bring you to Home directory

a)

cd

b)

cd ~

c)

cd /

38.

this command let you go to previous directory

a)

cd -

b)

cd ..

c)

cd

39.

This command let you go to parent directory

a)

cd

b)

cd ..

c)

cd .

40.

Path which start with "/"

a)

Absolute

b)

Relative

41.

Path which starts without "/"

a)

Relative Path

b)

Absolute Path

42.

List all hidden files

a)

ls -l

b)

ll

c)

ls -a

43.

Binary directory location of executable command files that all users can use

a)

sbin

b)

bin

44.

system binary directory location of executable command files that ONLY superuser can use

a)

sbin

b)

bin

c)

etc

45.

Edible Text Configuration Directory, configuration file for the system

a)

bin

b)

etc

c)

boot

46.

user home directory are located under this directory

a)

root

b)

home

c)

bin

47.

Systems short-term memory

a)

Hard Drive

b)

ROM

c)

RAM

48.

Long-term storage, is where your software,documents and other files are located

a)

RAM

b)

Hard drive

c)

CPU