0

operating systems Online Quiz - 41

Description: operating systems Online Quiz - 41
Number of Questions: 20
Created by:
Tags: operating systems
Attempted 0/20 Correct 0 Score 0

What does the pwd command do?

  1. It changes the password of user

  2. It shows the current path where the user is

  3. It shows the passwd file

  4. It shows information about Linux architecture


Correct Option: B

What is the use of touch command?

  1. It makes a new empty file

  2. It displays the contents of a file

  3. It updates the pre existing file

  4. It makes a new directory


Correct Option: A

The user's current path is /root/Desktop/abc. If he runs $ cd ../../../ what will be the user's HIS current path?

  1. /

  2. /root/

  3. /root/Desktop

  4. /root/Desktop/abc


Correct Option: A

From where can the passwd file be accessed?

  1. /usr/bin

  2. /etc/passwd

  3. /sbin/passwd

  4. /root/Desktop


Correct Option: B

What is the correct syntax of 'find the passwd file'?

  1. Find-name /etc

  2. Find/-name passwd

  3. Find -uid root -gid root -name passwd

  4. Find passwd


Correct Option: A

If umask is 0022, what is the by default permission of a file?

  1. 644

  2. 655

  3. 666

  4. 777


Correct Option: A

What is the name of the file where groups are added?

  1. /etc/grp

  2. /etc/groups

  3. /etc/group

  4. /usr/bin/group


Correct Option: C

What is the correct format to open the file /etc/test into the vi editor?

  1. /etc/test vi

  2. vi /etc/test

  3. edit /etc/test

  4. None of these


Correct Option: B

Which of the following options delete a current line in vi editor?

  1. Del

  2. Dd

  3. DD

  4. Delete


Correct Option: A

Which of the following syntax creates a softlink?

  1. $ ln -s /etc/test test

  2. $ ln -softlink /etc/test test

  3. $ ln /etc/test test

  4. $ ln -slink /etc/test test


Correct Option: A

What does the head command do?

  1. It shows the first 20 lines

  2. It shows the first 10 lines

  3. It shows the first 50 lines

  4. It shows the first 5 lines


Correct Option: B

Command for custom oriented output on PS command is?

  1. ps -o

  2. ps -l

  3. ps -c

  4. ps -u


Correct Option: A

Command for creating and displaying short files?

  1. cat

  2. chmod

  3. cd

  4. cp


Correct Option: A

Command for Changing permision.

  1. cat

  2. chmod

  3. cd

  4. cp


Correct Option: B

Command for changing directory?

  1. mv

  2. cp

  3. more

  4. cd


Correct Option: D

Command for copying files?

  1. ls

  2. cd

  3. mv

  4. cp


Correct Option: D

Command for display date?

  1. echo

  2. date

  3. head

  4. grep


Correct Option: B

Command to connect to a remote machine to download or upload files?

  1. ftp

  2. print

  3. more

  4. wc


Correct Option: A

Command for display first part of file?

  1. tail

  2. tar

  3. head

  4. telnet


Correct Option: C

Command to create a new directory.?

  1. mode

  2. lh

  3. md

  4. more


Correct Option: C
- Hide questions