Tag: unix

Questions Related to unix

  1. cd .

  2. cd ..

  3. cd ~

  4. cd


Correct Option: B
  1. mv filename

  2. cp filename

  3. rm filename

  4. rm -rf *


Correct Option: C
  1. rm directory

  2. mv directory

  3. cd directory

  4. rmdir directory


Correct Option: D
  1. mv oldfilename newfilename

  2. touch oldfilename newfilename

  3. cp oldfilename newfilename

  4. rm -rf *


Correct Option: A

Which command is used to make all files and sub-directories in the directory (progs) executable by all users?

  1. chmod -R a+x progs

  2. chmod -R 222 progs

  3. chmod -1 a+x progs

  4. None of the above


Correct Option: A
  1. standard input file

  2. standard output file

  3. both input and output file

  4. neither standard input nor standard output file


Correct Option: D

Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?

  1. -m.n

  2. +m.n

    • n.m+1
  3. None of the above


Correct Option: B