wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

UNIX Commands2

Total questions: 10

Worksheet time: 19mins

Name
Class
Date
1.

To Display line of text/string that are passed as an argument with a command

a)

cat

b)

echo

c)

ls

d)

none of the above

2.

Which option is used to removes all the spaces in between the text in echo command

a)

\d

b)

\c

c)

\b

d)

\a

3.

To display the given string, number or any other format specifier on the terminal window

a)

echo

b)

printf

c)

sort

d)

cat

4.

which format specifier is a output of lowercase hexadecimal values for integers and for padding the output.

a)

%s

b)

%b

c)

%f

d)

%x

5.

Unix shell command that lists directory contents of files and directories with hidden files.

a)

ls -d

b)

ls -F

c)

ls -a

d)

ls -l

6.

Which command is used to get information about currently logged in user on to system

a)

who am i

b)

who

c)

who i am

d)

None of the above

7.

Date command is used to support format specifier

a)

True

b)

False

8.

Which command in UNIX is used to change the user account passwords.

a)

pwd

b)

password

c)

passwd

d)

none of the above

9.

In Unix, Combining commands are

a)

& %

b)

&& %

c)

; &&

d)

; &

10.

which command is used to see the calendar of any specific month or a complete year

a)

calendar

b)

cal

c)

none of the above