Title: CIS235-exam1-questions
Course: TAACCCT - Open Source Server Admin.- CIS 235 > Section: Course Content

Open Source Server Administration

Exam 1

1. Which of the following is a definition a Linux shell?

1. something used interprets commands
2. something used to install the Linux operating system
3. describes a virtual computer that does not have an operating system
4. is a command to check the status of the system

2. Of the following, which operating system has been around the longest?

1. UNIX  Linux
2. MINIX FreeBSD
3. OpenBSD

3. The part of the operating system that is loaded into RAM, and controls the physical hardware is called the ________.

1. kernel
2. shell BIOS
3. /etc directory
4. root

4. Including the root directory, and given the path /app/ban/cor/dat/eg and if “eg” is a directory, the total number of directories in the path is:

1. 0
2. 1
3. 2
4. 3
5. 4
6. 5
7. 6
8. 7

5. The ability to run more than one program (or process) at the same time is called ______.

1. multitasking
2. multiuser
3. multimode
4. extended mode
5. enhanced mode

6. The terms KDE and GNOME refer to ______.

1. operating systems
2. desktop environments
3. types of boot disks
4. distributions
5. motherboards

7. Which of the following is used in terms of describing how Linux is “licensed.”

1. open source
2. proprietary shareware
3. closed source
4. commercial

8. In a Linux path, what character is used to separate the directory from the filename?

1. /
2. \
3. ?
4. :
5. ,
6. ;

9. Which of the following is considered the root directory?

1. /
2. /etc
3. /opt
4. /sbin
5. /home
6. /bin

10. The ability to run one operating system within another is one example of _______.

1. virtualization
2. piggybacking
3. extended mode
4. enhanced mode
5. EPIC

11. A single file that comprised the contents of an entire CD or DVD sometimes goes by the acronym _____.

1. ISO
2. SAN
3. NAS
4. BIOS
5. EFCI
6. HURD

12. What command is used to execute another (single) command as the system administrator?

1. sudo
2. bash
3. ksh
4. tcsh
5. expect
6. putty vim

13. What software (or protocol) is used to remotely connect to the command-line interface of a Linux system?

1. ssh
2. X-win
3. GNOME
4. KDE
5. sudo
6. bash

14. Which of the following directories would contain common (normal user) commands in Linux?

1. /bin
2. /sbin
3. /etc
4. /root
5. /opt
6. /home
7. /proc

15. Each user of Linux is given a separate directory within the ______ directory.

/home

/usr

/root

/user

/opt

/srv

16. If you are logged in as the user “reilley”, where does the command “cd ~” go to?

1. /home
2. /reilley
3. /~reilley
4. /home /user /user/reilley
5. /usr/reilley

17. What command shows you what directory you are in?

1. cd
2. pwd
3. echo
4. display
5. ~who

18. Absolute paths must begin with ______.

1. /
2. .
3. ?
4. ..
5. :
6. $
7. %
8. a lowercase letter
9. an uppercase letter

19. Which directory will you be in, if you start in the directory /abl/bak/can and type “cd ..” ?

1. /abl/bak/
2. /abl/bak/can
3. /abl  /..
4. /abl/bak/..

20. In Linux, the top-level directory is also called the _____ directory.

1. root
2. king
3. boot
4. home
5. star
6. hub
7. backbone

21. In Linux, options to commands typically begin with the ______ character.

1. -
2. /
3. \
4. ?
5. :
6. $
7. %
8. <
9. >

22. What does the option”-a” do in the command “ls -a”?

1. includes hidden files   displays the contents of all subdirectories
2. shows both the files and subdirectories
3. displays additional information such as when the file was last modified
4. shows additional help with the ls command

23. What does the option “-l” do in the command “ls -l”?

1. displays the contents of all subdirectories
2. shows both the files and subdirectories
3. displays additional information such as when the file was last modified
4. shows additional help with the ls command
5. includes hidden files

24. Which of the following is NOT a part of a files permission?

1. group
2. user
3. other
4. system

25. Which of the following is a command to learn more about how to use another command?

1. man
2. help
3. query
4. ask
5. ls
6. mv
7. tac
8. cat

26. Which of the following would show you all of the files in the current directory that begin with the letter “a” and end with the letter “z”?

1. ls a*z
2. ls a?z
3. ls a.z
4. ls
5. ls [a-z]

27. How do you rename the file “abc” to become “def”?

1. mv abc def
2. cp abc def
3. ren abc def
4. rename abc def
5. ln abc def
6. ln –s abc def

28. What command creates an empty file (if the file does not already exist)?

1. touch
2. cp
3. ln
4. echo
5. mv
6. creat
7. create
8. zero

29. Two directory entries that (directly) point to the same inode (and the same blocks of data) is an example of a (an) _____.

1. hard link
2. symbolic link
3. soft link
4. relative link
5. relative path
6. absolute path

30. One directory entry that points to another directory entry (even one on a different file system) is an example of a (an) _______.

1. hard link
2. symbolic link
3. relative link
4. relative path
5. absolute path
6. hidden path

31. Which of the following is a text editor that you can use in a Terminal window (or on the system’s console)?

1. vi
2. KWrite
3. GEdit
4. cat
5. tac
6. notepad

32. What command is used to label as file as being executable?

1. chmod
2. chown
3. chgrp
4. chexe mv
5. ln

33. What allows a file to be able to be ran as an executable or a script?

1. the filename ends with .exe
2. the filename ends with .bat
3. the file has execute privilege
4. the file is located in /bin or /sbin

34. After a “ls” command, you see a line beginning with “-rwxr-x---“  This means that anyone who is not the owner nor is in the “correct” group, can _______.

1. run the file
2. read and run the file
3. read and write to the file
4. do anything to the file
5. cannot access the file at all
6. only write to the file

35. After a “ls” command, you see a line beginning with “-rwxr-x---“  This means that anyone who is not the owner but  is in the “correct” group, can _______.

1. run the file
2. read and run the file
3. read and write to the file
4. do anything to the file
5. cannot access the file at all
6. only write to the file

36. After a “ls” command, you see a line beginning with “-rwxr-x-w-“  This means that anyone who is not the owner nor is in the “correct” group, can _______.

1. run the file
2. read and write to the file
3. do anything to the file
4. cannot access the file at all
5. only write to the file

37. Using the command “chmod a+x” on a file, will make it so ________ can execute the file.

1. everyone
2. people in the “correct” group
3. the owner of the file
4. the system administrator

38. Using the command “chmod g-w” on a file, will ______.

1. allow people in the “correct” group to modify the file
2. disallow people in the “correct” group from modifying the file
3. sets it so the people in the “correct” group can only write to the file

39. The first line in a script _______.

1. indicates what interpreter runs the script
2. what user the script with execute as
3. contains the name of the script
4. indicates the permissions for the script

40. Which of the following a (bash) shell environment variable?

1. $OLDFILE
2. %old
3. .list
4. (list)

40. How are command-line arguments used in a bash script?

1. By using variables such as $1 $2 and $3
2. By using the arg() routine
3. By using the echo command
4. By using the cat command

41. Which of the following can be used in bash scripts?

1. while loops
2. if statements
3. case statements
4. all of the above
5. none of the above

42. What command shows (only) the last few lines of a file?

1. tail
2. last
3. cat
4. cp
5. echo
6. mv

43. What command shows the whole content of a file, but stops every “page full” and waits for the user to respond before continuing?

1. tail
2. last
3. cat
4. echo
5. cp
6. more head

44. Linux permissions can be changed _________.

1. using numbers
2. using symbols like u,x,and -
3. using both numbers and symbols
4. using different commands for each permission

45. Linux permissions can be set on ______.

1. files only
2. directories only
3. both files and directories on devices only

46. In terms of Linux file permissions, which is not a valid category?

1. user
2. group
3. other
4. admin

Attached Files: | - cis235-exam1-questions(1).docx