Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

50 Questions on the UNIX Administration - Midterm Examination | CIS 228, Exams of Computer Science

Material Type: Exam; Professor: Taylor; Class: UNIX Administration; Subject: Computer Information Systems; University: Oakton Community College; Term: Unknown 1989;

Typology: Exams

Pre 2010

Uploaded on 08/04/2009

koofers-user-o7h
koofers-user-o7h 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CIS 228 – UNIX System Administration Midterm Name: _______ _________________________
1) To power off a Linux computer, Which of the line com mands will cause his system
to shut down and stop? (Choose the BEST Answer)
A. shutdown
B. halt
C. reboot
D. All of the above
2) The /proc directory contains i nformation about: ______ _________________
3) Which of the followin g directories is the primary repository for Linux configuration informatio n:
A. /usr
B. /etc
C. /home
D. /var
4) Which par titions at a minimu m should be install ed on a machine configured for use as an end-user workst ations?
(Mark all that apply) .
A. /
B. /boot
C. /swap
D. /var
E. /tmp
F. swap
5) What com mand will change the runlevel of a standard LINUX installation from “GUI” to command lin e mode on
the console ______________?
6) Which of the followin g directories is the primary location for system level run time file s:
A. /usr
B. /etc
C. /home
D. /var
7) Which com mands will adda proper ly secured user ID to a UNIX/LINUX syst em?
(Mark all that apply) .
A. ADDACCOUNT.
B. USERADD
C. NEWUSER
D. PASSWORD
E. PASSWD
8) Which of the followin g are true about "c p" and "ln". Why?
A. Both create new directo ry entries in the same disk drive volume .
B. Both create new direct ory entries, but with ln the same file
gets modified- -no matter which direct ory entry is used.
C. The "ln -s" command is the same the cp command since it
creates both a directory and a file entry.
D. both a an d b.
9) Now that you’ve added a user, you need to add them to a special group on the system. Which file do you edit to
do this?
A. /etc/shadow
B. /etc/passwd.
C. /etc/groups
D. /etc/us ers
E. /etc/quota
F. None of the above
pf3
pf4

Partial preview of the text

Download 50 Questions on the UNIX Administration - Midterm Examination | CIS 228 and more Exams Computer Science in PDF only on Docsity!

  1. To power off a Linux computer, Which of the line commands will cause his system to shut down and stop? (Choose the BEST Answer) A. shutdown 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 repository for Linux configuration information: A. /usr B. /etc C. /home D. /var
  4. Which partitions at a minimum should be installed on a machine configured for use as an end-user workstations? (Mark all that apply). A. / B. /boot C. /swap D. /var E. /tmp F. swap
  5. What command will change the runlevel of a standard LINUX installation from “GUI” to command line mode on the console ______________?
  6. Which of the following directories is the primary location for system level runtime files: A. /usr B. /etc C. /home D. /var
  7. Which commands will adda properly secured user ID to a UNIX/LINUX system? (Mark all that apply). A. ADDACCOUNT. B. USERADD C. NEWUSER D. PASSWORD E. PASSWD
  8. Which of the following are true about "cp" and "ln". Why? A. Both create new directory entries in the same disk drive volume. B. Both create new directory entries, but with ln the same file gets modified--no matter which directory entry is used. C. The "ln -s" command is the same the cp command since it creates both a directory and a file entry. D. both a and b.
  9. Now that you’ve added a user, you need to add them to a special group on the system. Which file do you edit to do this? A. /etc/shadow B. /etc/passwd. C. /etc/groups D. /etc/users E. /etc/quota F. None of the above
  1. Assume the system administrator, mounted "/dev/hda1" at "/", and "/dev/hda2" at "/var". Now she wishes to mount "/dev/hda2" against "/users". Which of the following is true? A. She can do this; it is just like having the same file under two different directories. B. She cannot do this since one can mount a files system only once. C. She can do this since one can mount a file system twice, as long as the second mount point is not beneath the first. D. both A and C.
  2. Which of the following directories is the primary location for temporary user files: 11 A. /tmp B. /etc 12 C. /home 13 D. /var
  3. 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 his inodes are exhausted means his disk is full. B. It is possible that he 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 13): Given conventional placement of files, which of the following directories is the most appropriate place for commands such as : ls, cat, ps? Why? A. /usr/bin; this is where all files that users have access to are placed B. /bin; this directory, by convention, is always on the root partition and available for use. C. /opt/bin; these programs are for optimization purposes. D. /etc; by convention, these programs assist in system configuration.
  4. Which of the following directories is the primary location for permanent user files: A. /usr B. /tmp C. /home D. /var
  5. The names of files run when entering run level 3 are in this directory on a LINUX system:
  6. Which of the following directories is the primary location for temporary user files: A. /usr B. /tmp C. /home D. /var
  7. Which of the following directories is the primary location for local system modifications and software: E. /usr/local F. /etc G. /usr H. /var
  8. The _________________ entry in the ____________ file specifies the default run level on a UNIX/LINUX system.
  9. Due to BIOS restrictions, best practice for a LINUX installation is to have the MBR point to this partition containing the LINUX kernel within the first 1023 cylinders ___________________
  10. How many partitions can created on a LINUX hardrive device (by default) in a workstation install of LINUX?

33) 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.

34) Write the command to compile C programs A, B and C generating executable program D.

35) What commands would you issue to find all installed products in the X windows group and remove

all dependent products simultaneously. (feel free to use variables).

36) This library contains the standard "include" header libraries like <stdio.h> for compiling "C"

programs: __________________________.

37) If the second field in the PASSWD file is "x", then this file is also being used for LOGIN security:

__________________________.

38) The proper way for removing LILO from the MBR and re-applying the DOS/WINDOWS MBR is to

use this command: ____________________.

39) The command "init 1" puts the system into this mode: __________________ which is also known as

_______________________ mode and is usually used to perform system _____________________.

40) If the system administrator were to add a local modification to the bootup of a BSD boot style UNIX

system, (s)he would modify this file: _________________________, on a pure System V boot style

system (s)he would probably modify this file: _________________________________.

41-50) Define what a filesystem is. With the complete sequence of commands that would create a new

HOME directory for users on the first partition of a the second hardrive of the first IDE chain, copy over

the contents and force the system to mount the new HOME directory at next reboot.