CIS 228 – UNIX System Administration
Quiz 1
Name: ______
1) To power off a Linux computer, which of the line commands is the recommended method to cause the system to shut down and stop? (Choose the BEST Answer)
A. shutdown –h now
B. halt
C. reboot
D. All of the above
2)The /proc directory contains information about: ______
3)Which of the following directories is the primary location for Linux configuration files:
- /usr
- /etc
- /home
- /var
4)Which of the following directories is the primary location for LINUX system level runtime files:
- /usr
- /etc
- /home
- /var
5)Which of the following directories is the primary location for temporary user files:
A. /tmp
B. /etc
C. /home
D. /var
6)Which of the following directories is the primary location for permanent user files:
- /usr
- /etc
- /home
- /var
7)Which of the following directories is the primary location for local system modifications and software:
- /usr/local
- /etc
- /proc
- /var
8)Assume a file system created on "/dev/hda3" with 4,096 inodes and the total disk space is 1 GB. Also
assume that all of the inodes are used. Which of the following is true?
A. The fact that inodes are exhausted means his disk is full.
B. It is possible the partition has a lot of disk space left despite exhausting all of the inodes.
C. No new files can be created or existing one’s expanded.
D. None of the above
9)Explain the difference between a softlink and a hard link. Explain the limitations of one versus the other.
10)What is the maximum # of physical partitions on a hardrive under LINUX in an IBM PC Architecture machine?
CIS 228 – UNIX System Administration
Quiz 1
11) jobs -l
[1] 5110 Running kedit &
[2]- 5382 Stopped (signal) pine
[3]+ 5457 Stopped (tty output) vi
Given the 'jobs' display in the exhibit, which command could you use to switch display focus to the application 'vi'?
A. bg %3
B. fg %3
C. top -p 5457
D. switch %5457
12)jobs -l
[1] 5110 Running kedit &
[2]- 5382 Stopped (signal) pine
[3]+ 5457 Stopped (tty output) vi
Given the 'jobs' display in the exhibit, which command could you use to terminate the application 'vi'?
A. bg %3
B. kill -9 5457
C. term -i %3
D. fg 5457
13)Based on Linux' partition naming system, which of the following device names point to "logical" partitions (assuming the corresponding partitions exist at all on the system in question)?
A. /dev/sda3
B. /dev/fd0
C. /dev/hdb7
D. /dev/hda4
E. /dev/fd7
F. /dev/sdc11
14)Which Linux command can be used to repair improperly shutdown, or otherwise potentially corrupt partitions?
A. chkdsk
B. scandisk
C. fsck
D. fdisk
15)Which Linux command is used to assign privileges over a particular file to a designated user
A. chroot
B. chown
C. assign
D. chgrp
16)Which of the following Linux command lines can be used to examine kernel bootup messages after boot time?
A. dmesg | less
B. less /proc/kmsg
C. bootlog -v
D. vi /var/log/messages
CIS 228 – UNIX System Administration
Quiz 1
17)Which of the following Linux commands can be used to set an expiration date for a user's password?
A. chage
B. vipw
C. passwd
D. usermod
18)Which Linux file can be used to configure the default bash shell behavior for EVERY users on a system?
A. /etc/skel/.bashrc
B. /home/.bash_profile
C. /etc/profile
D. /etc/passwd
19)What is the purpose of the '/etc/skel' directory?
20)Which of the following Linux commands can be used to create backups of filesystems and directories?
A. backup
B. gzip
C. tar
D. archive
21)The area to which data is written when memory is full is called the ______.
22)The command "init 5" will do what? ______.
23)Write the command(s) to "tar" directory /usr/local/bin/myproject into myproject.tar and compress it into a gzip file such that when the tarball is unwrapped it can be placed in any directory the user wants.
24)The command "init 1" puts the system into this mode: ______which is also known as ______mode and is usually used to perform ______.
25)In a SYSV startup sequence, startup scripts are executed out of this directory at runlevel 3: ______.