Questions PDNA Sequence Lec 5
Questions PDNA Sequence Lec 5
a) 1970
b) 1985
c) 1960
d) 1995
7. Which operating system is known for its stability and low cost?
a) Windows
b) macOS
c) Linux
d) Solaris
a) Windows
b) macOS
c) Linux
d) Solaris
9. Which operating system is known for its multi-user and multi-tasking capabilities?
a) Windows
b) macOS
c) Linux
d) Solaris
a) Windows
b) macOS
c) Linux
d) Solaris
12. Which part of the Unix system is accessible via the Terminal?
b) Shell
b) A command-line interpreter
a) Bash
b) C Shell
c) Korn Shell
d) Zsh
b) Remove a directory
a) mkdir
b) rmdir
c) cd
d) ls
a) To create a directory
b) To remove a directory
b) Two files in the same directory can have the same name.
a) mkdir
b) rmdir
c) cd
d) ls
a) True
b) False
25. How can you get help for a command from the terminal in Unix?
a) man commandname
b) help commandname
c) info commandname
d) --help commandname
27. Which key combination is used to move the cursor to the beginning of the command line in Unix?
a) Ctrl+A
b) Ctrl+C
c) Ctrl+D
d) Tab
a) Ctrl+A
b) Ctrl+C
c) Ctrl+D
d) Ctrl+L
29. The command "cd" followed by nothing in Unix changes the working directory to:
a) ls
b) pwd
c) cd
d) mkdir
a) ls
b) pwd
c) cd
d) mkdir
a) To remove a directory
b) To create a directory
33. What happens if you try to remove a directory using the "rmdir" command, but the directory is not
empty?
34. Which file system hierarchy represents the path to the root directory in Unix?
a) Absolute path
b) Relative path
c) Home directory
d) Working directory
a) A path that describes the path to the file starting from the current working directory
b) A path that locates a given file in the system hierarchy from the root directory
37. Which command is used to display the absolute path of the current working directory in Unix?
a) ls
b) pwd
c) cd
d) mkdir
c) Only directories
Answer: True
2. True or False: There are many different versions of UNIX that share common similarities.
Answer: True
3. True or False: The most popular varieties of UNIX are Solaris, Linux, and MacOS.
Answer: True
4. True or False: UNIX systems have a graphical user interface (GUI) making them easier to use.
Answer:True
5. True or False: Linux is a clone of the original Unix and contains its code.
Answer: False
6. True or False: Linux is free and open source, while the original Unix is not.
Answer: True
7. True or False: All command lines work the same on both Linux and Unix.
Answer:True
8. True or False: Linux is free, and the most popular distributions are Ubuntu, Fedora/Red Hat,
Mandriva, etc.
Answer: True
Answer: True
10. True or False: Linux is the best multi-user and multitasking operating system.
Answer: True
Answer: True
Answer: True
Answer: True
14. True or False: A terminal in Unix refers to a wrapper program that runs a shell.
Answer: True
15. True or False: The most popular shell for interactive use in Unix is Bash.
Answer: True
16. True or False: The command "pwd" gives the absolute path of the working directory in Unix.
Answer: True
17. True or False: Every directory in Unix has two special subdirectories: "." (dot) and ".." (dot-dot).
Answer: True
18. True or False: The command "rmdir" removes a directory in Unix, even if it contains files or
subdirectories.
Answer: False
19. True or False: The command "ls -lh" in Unix lists the content of the current directory with sizes in a
more readable format.
Answer: True