Q. Which Linux command with vi Editor is used to delete a single character?

  • (A) d
  • (B) r
  • (C) x
  • (D) c
πŸ’¬ Discuss
βœ… Correct Answer: (C) x

Q. Which Linux command is used to know which directory you are in?

  • (A) know
  • (B) help
  • (C) cwd
  • (D) pwd
πŸ’¬ Discuss
βœ… Correct Answer: (D) pwd

Q. Which Linux command is used to see all the hidden files?

  • (A) ls
  • (B) ls -h
  • (C) ls -a
  • (D) dir -a
πŸ’¬ Discuss
βœ… Correct Answer: (C) ls -a

Q. Which Linux command is used to go back from a folder to the folder before that?

  • (A) cd..
  • (B) cd
  • (C) cd/
  • (D) chdir
πŸ’¬ Discuss
βœ… Correct Answer: (A) cd..

Q. If you want to create a new directory named XYZ, which command will be used for this purpose?

  • (A) cd XYZ
  • (B) chdir XYZ
  • (C) mkdir XYZ
  • (D) md XYZ
πŸ’¬ Discuss
βœ… Correct Answer: (C) mkdir XYZ

Q. Which Linux command is used to create a new file?

  • (A) create
  • (B) file
  • (C) tch
  • (D) touch
πŸ’¬ Discuss
βœ… Correct Answer: (D) touch

Q. Which Linux command is used to copy files through the command line?

  • (A) cp
  • (B) copy
  • (C) fcp
  • (D) filecopy
πŸ’¬ Discuss
βœ… Correct Answer: (A) cp

Q. Which Linux command is used to move files through the command line?

  • (A) move
  • (B) mv
  • (C) ren
  • (D) loc
πŸ’¬ Discuss
βœ… Correct Answer: (B) mv

Q. Which is the correct command syntax to rename a file "abc.txt" to "pqr.txt"?

  • (A) mv abc.txt pqr.txt
  • (B) mv pqr.txt abc.txt
  • (C) mv -a pqr.txt abc.txt
  • (D) mv -all pqr.txt abc.txt
πŸ’¬ Discuss
βœ… Correct Answer: (A) mv abc.txt pqr.txt

Q. Just like the Windows Search command, which command is used in Linux

  • (A) search
  • (B) find
  • (C) findall
  • (D) locate
πŸ’¬ Discuss
βœ… Correct Answer: (D) locate