Tag: operating systems

Questions Related to operating systems

Command which can be used to copy the contents to file and also display on screen

  1. tee

  2. > (Redirection operator)

  3. Redirection operator (>) and Standard Ouput ($1)

  4. All


Correct Option: A
  1. du | sort -r | head -5

  2. du | sort -nr | head -5

  3. du | sort -n | head -5

  4. du


Correct Option: B
  1. $$

  2. $

  3. Process ID of the current session.

  4. Process ID of the parent session


Correct Option: C

Display only files with ".zip" extension from the current directory

  1. ls -ltr *.zip

  2. ls -ltr | grep "zip$"

  3. 1 and 2

  4. None


Correct Option: C
  1. ps -ef | grep argon

  2. ps -ef | grep "argon"

  3. 1 and 2

  4. None


Correct Option: C
  1. ps

  2. kill PID

  3. kill ps

  4. kill -9 "PID"


Correct Option: D

What is the command to see the number of fork in Linux system ?

  1. cat /proc/meminfo

  2. vmstat

  3. vmstat -f

  4. ls


Correct Option: C