Q. How do the user gets the help about the command “cp”?

  • (A) help cp
  • (B) cd ?
  • (C) man cp
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) man cp

Q. UNIX/Linux kernel is?

  • (A) nano
  • (B) Exo
  • (C) micro
  • (D) Monolithic
πŸ’¬ Discuss
βœ… Correct Answer: (D) Monolithic

Q. To increase the response time and throughput, the kernel minimises the frequency of disk access by keeping a pool of internal data buffer called

  • (A) Swapping
  • (B) Buffer cache
  • (C) Spooling
  • (D) Pooling
πŸ’¬ Discuss
βœ… Correct Answer: (B) Buffer cache

Q. Which option of the command ‘cd’ use the actual filesystem path for cd..and the value of pwd?

  • (A) -P
  • (B) -p
  • (C) -L
  • (D) -l
πŸ’¬ Discuss
βœ… Correct Answer: (A) -P

Q. Which command generates possible completions for string according to the and write it to standard output?

  • (A) continue
  • (B) compgen
  • (C) complete
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) compgen

Q. Which command executes ‘command’ in place of the current process instead of creating a new process?

  • (A) command
  • (B) trap
  • (C) exec
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) exec

Q. Which of the following is not a iterative construct in "bash"?

  • (A) While
  • (B) Until
  • (C) For
  • (D) If
πŸ’¬ Discuss
βœ… Correct Answer: (B) Until

Q. Assuming the files fileA, fileB, fileAB, fileBC and fileABC, exist in a directory, which files match with the pattern file[ABC]?

  • (A) fileAB, fileBC and fileABC
  • (B) fileA and fileB
  • (C) fileABC
  • (D) fileA, fileB and fileABC
πŸ’¬ Discuss
βœ… Correct Answer: (B) fileA and fileB

Q. What will be printed for the command below?

Code:
$ grep –c “^echo” abc
  • (A) The count of lines that do not contain the pattern echo in file abc
  • (B) The count of lines which begin with the pattern echo in file abc
  • (C) The count of lines that ends with the pattern echo in file abc
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) The count of lines which begin with the pattern echo in file abc

Q. Which one is used to select only one copy of the repeated lines?

  • (A) uniq –I
  • (B) uniq -c
  • (C) uniq -d
  • (D) uniq -u
πŸ’¬ Discuss
βœ… Correct Answer: (D) uniq -u