Advertisement

Linux Basic Quiz for Beginners: Part 1

Linux Basic Quiz for Beginners

1. What is the default shell used in most Linux distributions?

  • a) Korn Shell
  • b) Bash
  • c) Zsh
  • d) Tcsh
    Answer: b) Bash

2. Which command is used to list the contents of a directory in Linux?

  • a) list
  • b) dir
  • c) ls
  • d) show
    Answer: c) ls

3. How do you display the current working directory in Linux?

  • a) pwd
  • b) cd
  • c) home
  • d) loc
    Answer: a) pwd

4. Which command is used to change file permissions in Linux?

  • a) chmod
  • b) chperm
  • c) permmod
  • d) chown
    Answer: a) chmod

5. How do you copy a file in Linux?

  • a) copy
  • b) cp
  • c) mv
  • d) scp
    Answer: b) cp

6. Which command is used to display the content of a file?

  • a) view
  • b) display
  • c) cat
  • d) read
    Answer: c) cat

7. What does the rm command do in Linux?

  • a) Renames a file
  • b) Removes a file
  • c) Moves a file
  • d) Reads a file
    Answer: b) Removes a file

8. What is the command to move a file in Linux?

  • a) move
  • b) mv
  • c) cp
  • d) shift
    Answer: b) mv

9. How do you create a new directory in Linux?

  • a) mkdir
  • b) dircreate
  • c) newdir
  • d) createdir
    Answer: a) mkdir

10. Which command is used to rename a file in Linux?

  • a) rename
  • b) mv
  • c) rn
  • d) namechange
    Answer: b) mv

Post a Comment

0 Comments