Unix/Linux Commands and Operations

Test your knowledge of Unix/Linux command-line operations including file management, process control, and system utilities

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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

  1. $dir
  2. pwd
  3. currdir
  4. none
Question 2 Multiple Choice (Single Answer)

What are the default umask values

  1. 000
  2. 022
  3. 033
  4. 222
Question 3 Multiple Choice (Single Answer)

Which is the inner most layer in unix operating system

  1. Hardware
  2. Kernel
  3. Shell
  4. Application Programs
Question 4 Multiple Choice (Single Answer)

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

  1. modify
  2. touch
  3. cat
  4. Not possible
Question 5 Multiple Choice (Single Answer)

Which command is used to create a zero size file?

  1. cat
  2. create
  3. touch
  4. new
Question 6 Multiple Choice (Single Answer)

Which command gives the time of last inode modification?

  1. ls -i
  2. ls -l
  3. ls -li
  4. ls-lc
Question 7 Multiple Choice (Single Answer)

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

  1. logname
  2. who
  3. whos
  4. ps
Question 8 True/False

UNIX is a single user operating environment

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

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
Question 10 Multiple Choice (Single Answer)

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

  1. tar
  2. gzip
  3. xr
  4. zip
Question 11 Multiple Choice (Single Answer)

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

  1. TERM
  2. PROMPT
  3. PS1
  4. PS2
Question 12 True/False

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

  1. True
  2. False
Question 13 Multiple Choice (Single Answer)

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

  1. noexit
  2. nokill
  3. xlog
  4. nohup
Question 14 Multiple Choice (Single Answer)

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
Question 15 Multiple Choice (Single Answer)

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

  1. calc
  2. calculator
  3. cc
  4. bc
Question 16 Multiple Choice (Single Answer)

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

  1. mail
  2. mailx
  3. Mail
  4. email
Question 17 Multiple Choice (Single Answer)

which command helpful to chat with other users in unix

  1. talk
  2. chat
  3. meet
  4. ping
Question 18 Multiple Choice (Single Answer)

which command displays the disk space in unix

  1. dl -k
  2. ls -k
  3. df -k
  4. dz -k
Question 19 Multiple Choice (Single Answer)

by which expression we can schedule jobs in unix

  1. bron
  2. cron
  3. crop
  4. drop
Question 20 Multiple Choice (Single Answer)

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

  1. ph
  2. jp
  3. mp
  4. mv