Q.1
Specific configuration files are installed in
  • /etc directory
  • /lib directory
  • /root directory
  • /bin directory
Q.2
We install a new package in linux system, then
  • all the files of the packages are installed in a single directory
  • different files are installed at different locations of the file system
  • package works just after extraction, installation is not required
  • none of the mentioned
Q.3
Option is used by sed to specify that the following string is an instruction or set of instructions?
  • -n
  • -e
  • -f
  • -i
Q.4
Command “sed -n ‘/mcqpoint/p’ old.txt” will
  • print the lines containing the word ‘sanfoundry’ in file oltxt
  • delete the lines containing the word ‘sanfoundry’ in file oltxt
  • will generate an error message
  • none of the mentioned
Q.5
Command will delete all the blank lines in file old.txt?
  • sed ‘/d’ oltxt
  • sed ‘/^/d’ oltxt
  • sed ‘/^$/d’ oltxt
  • sed ‘/^*/d’ oltxt
Q.6
The command to display the current date in the form dd/mm/yyyy.
  • date +%d/%m/%y
  • date +”%d/%m/%y”
  • date +/%d/%m/20%y
  • date +”/%d/%m/20%y”
Q.7
Option of rm command is used to remove a directory with all its subdirectories
  • –b
  • –o
  • –p
  • –r
Q.8
Command is used to display disk consumption of a specific directory
  • du
  • ds
  • dd
  • dds
Q.9
Command creates an empty file if file does not exist?
  • cat
  • touch
  • ed
  • read
Q.10
Command is used to perform backup in unix?
  • backup
  • cpio
  • zip
  • gzip
0 h : 0 m : 1 s