0

operating systems Online Quiz - 1

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

How do you find out the current directory you’re in?

  1. $dir

  2. pwd

  3. currdir

  4. none


Correct Option: B

What are the default umask values

  1. 000

  2. 022

  3. 033

  4. 222


Correct Option: B

Which is the inner most layer in unix operating system

  1. Hardware

  2. Kernel

  3. Shell

  4. Application Programs


Correct Option: B

Which command is used to modify the modification time and access times of a file

  1. modify

  2. touch

  3. cat

  4. Not possible


Correct Option: B

Which command is used to create a zero size file?

  1. cat

  2. create

  3. touch

  4. new


Correct Option: C

Which command gives the time of last inode modification?

  1. ls -i

  2. ls -l

  3. ls -li

  4. ls-lc


Correct Option: D

AI Explanation

To answer this question, you need to understand the options given and their purpose in the context of file management.

Option A) ls -i - This option displays the inode number of each file or directory. It does not provide information about the time of last inode modification.

Option B) ls -l - This option displays detailed information about files and directories, including permissions, owner, group, size, and modification time. However, it does not specifically provide the time of last inode modification.

Option C) ls -li - This option combines the functionalities of options A and B. It displays the inode number along with detailed information such as permissions, owner, group, size, and modification time. However, it does not specifically provide the time of last inode modification.

Option D) ls -lc - This option displays the time of last modification of the file or directory in the long format. It does not specifically mention the term "inode modification," but it provides the relevant information.

Based on the given options, the correct answer is D) ls -lc. This option provides the time of last modification, which can be considered as the time of last inode modification.

Which command can be used to view the current users login name?

  1. logname

  2. who

  3. whos

  4. ps


Correct Option: A

UNIX is a single user operating environment

  1. True

  2. False


Correct Option: B

Whats the command used when the terminal settings are disrupted and we see garbage in our terminal

  1. stty -d

  2. tput clear

  3. stty sane

  4. stty clear


Correct Option: C

Which of the following commands can compress a file and as well as archive it?

  1. tar

  2. gzip

  3. xr

  4. zip


Correct Option: D

Which environment variable can be used to change the shell prompt?

  1. TERM

  2. PROMPT

  3. PS1

  4. PS2


Correct Option: C

Unix treats the main memory(RAM) of a PC as a file.

  1. True

  2. False


Correct Option: A

Which command is used to ensure that background jobs continue to run even after logginf off.

  1. noexit

  2. nokill

  3. xlog

  4. nohup


Correct Option: D

Whats the procedure to ensure that the output of a command is not displayed on the terminal?

  1. command >

  2. command > /dev/null

  3. command | cat *

  4. command < /dev/null


Correct Option: B

What is the command to invoke unix's command line calculator?

  1. calc

  2. calculator

  3. cc

  4. bc


Correct Option: D

which of the following is not the unix command to send email

  1. mail

  2. mailx

  3. Mail

  4. email


Correct Option: D

which command helpful to chat with other users in unix

  1. talk

  2. chat

  3. meet

  4. ping


Correct Option: A

which command displays the disk space in unix

  1. dl -k

  2. ls -k

  3. df -k

  4. dz -k


Correct Option: C

by which expression we can schedule jobs in unix

  1. bron

  2. cron

  3. crop

  4. drop


Correct Option: B

which command is used to move files from one location to other

  1. ph

  2. jp

  3. mp

  4. mv


Correct Option: D

AI Explanation

To answer this question, you need to understand the command used to move files from one location to another.

The correct answer is:

D. mv

The mv command is used to move files from one location to another in a Unix-like operating system. It is short for "move" and allows you to relocate files and directories to a different location on the same file system or to a different file system altogether.

- Hide questions