0% found this document useful (0 votes)
144 views

Quiz 1

This document appears to be a quiz for a UNIX system administration course. It contains 25 multiple choice and short answer questions covering topics like: - Commands for shutting down and rebooting Linux systems - Common Linux directory structures and their purposes - Managing jobs and processes using commands like jobs, fg, and kill - Partition naming and tools for checking and repairing filesystems like fsck - User account management with commands like chage, chown, and usermod - Compressing and archiving files with tar and gzip - Linux runlevels and the purpose of init scripts

Uploaded by

Duluth Markets
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views

Quiz 1

This document appears to be a quiz for a UNIX system administration course. It contains 25 multiple choice and short answer questions covering topics like: - Commands for shutting down and rebooting Linux systems - Common Linux directory structures and their purposes - Managing jobs and processes using commands like jobs, fg, and kill - Partition naming and tools for checking and repairing filesystems like fsck - User account management with commands like chage, chown, and usermod - Compressing and archiving files with tar and gzip - Linux runlevels and the purpose of init scripts

Uploaded by

Duluth Markets
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

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:
A. /usr
B. /etc
C. /home
D. /var
4) Which of the following directories is the primary location for LINUX system level runtime files:
A. /usr
B. /etc
C. /home
D. /var
5) Which of the following directories is the primary location for temporary user files:
11 A. /tmp
B. /etc
12 C. /home
13 D. /var
6) Which of the following directories is the primary location for permanent user files:
A. /usr
B. /etc
C. /home
D. /var
7) Which of the following directories is the primary location for local system modifications and
software:
A. /usr/local
B. /etc
C. /proc
D. /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 ones 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:
______________________.

You might also like