Question: Please answer the multiple choice questions 6. Which of the following is not a valid option of uname? a) -a b) -s c) -v d)

Please answer the multiple choice questions

6. Which of the following is not a valid option of uname?

a) -a

b) -s

c) -v

d) -z

Answer:

.

7. How can we specify more than one command in the command line at the same time?

a) using ;

b) using >

c) using ==

d) not possible

Answer:

8. Which command is used to display the documentation of commands in UNIX?

a) help

b) search

c) whatis

d) man

Answer:

9. Which command is used for displaying date and calendar in UNIX?

a) date and cal

b) DATE and CAL

c) date and calendar

d) dt and cl

Answer:

10. What is the output of who command?

a) display information about users who are currently logged in.

b) display file hierarchy

c) display administrator information

d) display processes

Answer:

11. What are meta-characters?

a) special characters having predefined meaning to the shell

b) special symbols

c) shell symbols

d) command symbols

Answer:

12. Which command is used for displaying date in the format dd/mm/yyyy ?

a) date +%m

b) date +%h

c) date +%d/%m/%Y

d) date +%h %m

Answer:

PROBLEM 3: General Purpose Commands - 1

1. echo command is used for _________

a) displaying errors

b) displaying operating system details

c) displaying diagnostic messages

d) displaying date and time

Answer:

2. What are escape sequences?

a) special characters beginning with a \ (backslash)

b) special commands

c) special utilities

d) a sequence of characters

Answer:

3. Which of the following is not a valid escape sequence in UNIX?

a)

b) \t

c) \v

d) \d

Answer:

4. Which command is used as an alternative to echo command?

a) ls

b) printf

c) wc

d) ps

Answer:

5. For what purpose bc command is used?

a) as a calculator

b) as an editor

c) as a process table viewer

d) for copying files

Answer:

6. script command is used for___________

a) recording history

b) recording our session

c) recording passwords

d) recording scripts

Answer:

7. Which of the following is a valid option with script command?

a) -b

b) -a

c) -d

d) -x

Answer:

8. mailx command is used for sending and receiving emails.

a) True

b) False

Answer:

9. Which of the following function cannot be performed by mailx command?

a) sending and receiving emails

b) reply to the sender

c) forward, delete and print mails

d) un-send mails

Answer:

10. Which of the following is not an internal command used by mailx?

a) N

b) d

c) q

d) a

Answer:

11. -h option is used with who command for what purpose?

a) display output with header information

b) display output with a more detailed version

c) display output with trailer information

d) display output in columnar form

Answer:

12. Two or more users can have same login name in the output of who command.

a) True

b) False

Answer:

PROBLEM 4: General Purpose Commands - 2

1. history command displays the log of recently used commands.

a) True

b) False

Answer:

2. Which command is used by the user to change their login password in UNIX?

a) man

b) reset

c) passwd

d) cp

Answer:

3. Which command handles a character stream by duplicating its input?

a) tree

b) tee

c) tty

d) ls

Answer: .

4. We can use man command for displaying the documentation of man itself.

a) True

b) False

Answer:

5. When backspace doesnt work to erase characters, we can use _____

a) ctrl-f

b) ctrl-h

c) ctrl-c

d) ctrl-u

Answer:

6. For interrupting a command, we can use _____

a) ctrl-f

b) esc

c) ctrl-h

d) ctrl-c

Answer:

7. Ctrl-S stops scrolling of screen output and ________

a) locks terminal

b) delete a character

c) locks keyboard

d) delete a line

Answer:

8. Which control unlocks the keyboard?

a) ctrl-u

b) ctrl-c

c) ctrl-z

d) ctrl-q

Answer:

9. Which command is used for killing a line?

a) ctrl-k

b) del

c) esc

d) ctrl-u

Answer:

PROBLEM 5: UNIX Editor

1. Which one of the following statement is not true?

a) vim editor is the improved version of vi editor

b) vi editor commands are not case sensitive

c) vi editor has two modes of operation: command mode and insert mode

d) vi stands for visual editor

Answer:

2. Which command is used to close the vi editor?

a) q

b) wq

c) both q and wq

d) none of the mentioned

Answer:

3. In vi editor, the key combination CTRL+f

a) moves screen down one page

b) moves screen up one page

c) moves screen up one line

d) moves screen down one line

Answer:

4. Which vi editor command copies the current line of the file?

a) yy

b) yw

c) yc

d) none of the mentioned

Answer:

5. Which command is used to delete the character before the cursor location in vi editor?

a) X

b) x

c) D

d) d

Answer:

6. Which one of the following statement is true?

a) autoindentation is not possible in vi editor

b) autoindentation can be set using the command :set ai

c) autoindentation can be set using the command :set noai

d) autoindentation is set by default in vi editor

Answer:

7. Which command searches the string in file opened in vi editor?

a) / or ?

b) f or F

c) t or T

d) none of the mentioned

Answer:

8. In vi editor, which command reads the content of another file?

a) read

b) r

c) ex

d) none of the mentioned

Answer:

9. Which command shows all the abbreviations in vi editor?

a) ab

b) abb

c) show

d) none of the mentioned

Answer:

10. Which command sets the number for all lines?

a) :set li

b) :set ln

c) :set nu

d) :set nl

Answer:

:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!