Tag: operating systems

Questions Related to operating systems

  1. . filename

  2. ./

  3. . \

  4. / filename


Correct Option: B

Which comman can be used to find the user with which you are logged in the UNIX session

  1. "who am I" and "id"

  2. "who" and "who am I"

  3. "who" and "id"

  4. "who", "who am I", "id"


Correct Option: D
  1. find / -name "UniVar" $1>list

  2. find / -name "UniVar" $0>list

  3. find . -name "UniVar" $1>list

  4. find . -name "UniVar"


Correct Option: A
  1. cat test1 | tr ' ' '|' > test2

  2. cat test1 | cut-d ' ' ' |' > test2

  3. cat test1 | tr '|' ' ' > test2

  4. cat test1


Correct Option: A
  1. cat test | cut ' '

  2. cat test | tr -s ' '

  3. cat test | tr ' ' ''

  4. cat test > test 1


Correct Option: B

Why is VI not recommended for viewing log files ?

  1. Complex

  2. Occupies more memory

  3. Not available in all UNIX servers

  4. Too many commands to remember


Correct Option: B

Command used to display the contents of the file in reverse order.

  1. tac

  2. cat

  3. tail -f

  4. head


Correct Option: A
  1. ls -d

  2. ls -l | grep "$d"

  3. ls -l | grep "^d"

  4. ls -ltr | grep -d


Correct Option: C