wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSE493_QUIZ 1

Total questions: 20

Worksheet time: 30mins

Name
Class
Date
1.

The part of the command line that adjusts the behavior of a command

a)

option

b)

command

c)

argument

d)

terminal

2.

Display the current time in the following format : HH : MM : SS AM/P M

a)

date +%r

b)

date+%h%m%s 

c)

date

d)

date /h/m/r

3.

Regular user commands and utilities are located at:

a)

/etc

b)

/usr/home

c)

/root

d)

/usr/bin

4.

Which command is used to print the current working directory?

a)

pwd

b)

echo $PWD

c)

only - pwd

d)

both pwd and echo $PWD

5.

Which command is used to copy entire directory?

a)

cp -r [directory_to_be_copied] [new_directory]

b)

cp -i [directory_to_be_copied] [new_directory]

c)

cp -p [directory_to_be_copied] [new_directory]

d)

none of these

6.

Suppose you are in your home directory, /home/raf as in diagram above. What is the relative path for the file called "save" in the Email subdirectory?

a)

/raf/email/save

b)

/email/save

c)

/home/raf/email/save

d)

email/save

7.

How to append string 'INDIA' to file country.txt

(a)  

8.

Given a file, count the number of lines containing the word "ABC" in file 'alphabets.txt'

(a)  

9.

How to assign the user defined timestamp that is "23 Jan 11:00" for newly created file "f1.txt"?

(a)  

10.

How to display the date and time of "Coming Sunday"?

(a)  

11.

How to create three folders with one command?

a)

mkdir d1 d2 d3

b)

mkdir d{1,2,3}

c)

mkdir d{1..3}

d)

All of the above

12.

rm -d can delete only non-empty directories.

a)

TRUE

b)

FALSE

13.

Which statement describe the benefits of Linux?

a)

Linux is developed entirely by volunteers, which makes it a low-cost operating system.

b)

Linux is locked in a known state for a minimum of one year for each release, so it is easier to develop custom software.

c)

Linux includes a powerful and scriptable command-line interface, which enables easier automation and provisioning.

d)

Linux provides sensitive portions of code are protected and available only to the original developer.

14.

Which term describes the visual cue that indicates that an interactive shell is waiting for the user to type a command?

a)

Argument

b)

Command

c)

Option

d)

Prompt

15.

Which command is used to count number of lines of file "/etc/passwd" ?

(a)  

16.


Which Bash shortcut or command re-executes a specific command in the history list?

a)

Pressing Tab

b)


!number

c)

history

d)


Pressing Esc+.

17.

Display the current time in 24-hour clock time (for example, 13:57).

(a)  

18.

Which command creates an empty file called helloworld.py in the user home directory, assuming that your current directory is /home?

a)
c)
d)

touch ../helloworld.py

19.

Which pattern matches only file names with at least three characters?

a)

\3*

b)

???*

c)

???

d)

...*

20.

Create the my_bestseller directory under the Documents directory. Create the chapters directory under the my_bestseller directory.

(a)