Tag: operating systems

Questions Related to operating systems

  1. function1()

  2. call function1

  3. function1

  4. ask function1


Correct Option: C
  1. filename=basename Mypath

  2. filename =file Mypath

  3. filename = ${Mypath#///}

  4. echo $Mypath | awk ‘ FS=”/” { print $4 } ‘


Correct Option: A,C,D

Which variable contains the return value of last executed command

  1. $!

  2. $?

  3. $#

  4. $@


Correct Option: B

ksh shell was developed by

  1. Korn Matt

  2. Karthick Subramanian

  3. David Korn

  4. Kandasamy


Correct Option: C

How can you append the output of a command to a file?

  1. command << file

  2. command > file

  3. command <> file

  4. command >> file


Correct Option: D