Shared Flashcard Set

Details

LPI Certification
LPI Certification Cram Sheet Questions 101 & 102
119
Computer Science
Undergraduate 2
04/21/2011

Additional Computer Science Flashcards

 


 

Cards

Term
What is the default install mode for Red Hat?
Definition
GUI
Term
Which command shows currently loaded kernel modules and their dependencies?
Definition
cat /proc/modules
lsmod
Term
What command causes a default install to boot directly to run level 2 after system initalization?
Definition
linux 2
Term
Need to create a boot disk on a running linux machine, what is the command?
Definition
dd
Term
During a Red Hat installation you decide to press Ctrl+Alt+F3, what do you see?
Definition
Installation messages
Term
What program is used to configure PNP devices
Definition
isapnp
Term
What command is used to show PNP information?
Definition
pnpdump
Term
What is the file used to set individual PNP devices?
Definition
/etc/isapnp.conf
Term
What are the printer ports?
Definition
Port IRQ Address
/dev/ls0 7 0x378
/dev/ls1 5 0x278
Term
Command that reads the hardware clock time
Definition
hwclock -r
Term
The command that sets the system clock to the hardware clock time.
Definition
hwclock --hctosys
Term
How many swap files can you have?
Definition
8
Term
Where is the GRUB configuration file?
Definition
/boot/grub/grub.conf
Term
Steps for making & installing software from source.
Definition
./configure
make
make install
Term
Were are the shared libraries located by default?
Definition
/lib
/usr/lib
/usr/x11/lib
Term
What command do you use when a library error occurs
Definition
ldconfig
Term
ldconfig reads what configuration for library locations
Definition
/etc/ld.so.conf
Term
ldd does what?
Definition
Reads a binary and reports its library dependencies.
Term
where does ldconfig write it's library cache to?
Definition
/etc/ld.so.cache
Term
Debian uses's what command to install, delete, and query packages?
Definition
dpkg
Term
What program is used for Debian automated updates?
Definition
apt-get
Term
Where is the Debian package database located?
Definition
var/lib/dpkg
Term
Red Hat uses what program to install, remove, and query packages
Definition
rpm
Term
where is the Red Hat package database located?
Definition
var/lib/rpm
Term
Show the command, with switch's, that shows the serial ports configuration
Definition
setserial -a /dev/ttys0
Term
How do you avoid problems with the 1024th cyclinder?
Definition
Use a small boot partition
Enable LBA in the boot manager
Term
If a system with two printer ports and a sound card has a conflict which IRQ do you check
Definition
IRQ 5
Term
What command do you use to configure a serial port
Definition
setserial
Term
The command that sets the serial ports baud rate
Definition
setserial /dev/ttys0 baud_rate 57600
Term
What command do you use to view IRQ's?
Definition
cat /proc/interrupts
Term
What command do you use to view DMA
Definition
cat /proc/dma
Term
What command do you use to view I/O?
Definition
cat /proc/ioports
Term
Command to view configuration information about IRQ, DMA, and I/O port usage?
Definition
lsdev
Term
What command do you use to view configuration information about the PCI bus?
Definition
lspci
Term
What are the serial ports, IRQ's and I/O addresses?
Definition
Port IRQ I/O address
/dev/ttys0 4 0x3f8
/dev/tty1 3 0x2f8
/dev/tty2 4 0x3e8
/dev/tty3 3 0x3e8
Term
GRUB boots to a prompt only, what command do you run to fix it?
Definition
grub-install with the boot disk as the argument.
Term
What is the correct command line structure format?
Definition
command option
command argument option
Term
What are the redirection prompts
Definition
> Write to a file
< Read from a file
Term
tr is used to do what?
Definition
Replace individual characters
Term
greps uses -i, -r, -n and -v for what?
Definition
-i insensitivity
-r recursive
-n line numbering
-v verbose
Term
Stream 0, stream 1, and stream 2 are what?
Definition
0 = stdin
1 = stdout
2 = stderr
Term
2>&1 does what
Definition
sends stderr and stdout to the same place
Term
What does an & mean after a command
Definition
Sends it to the background
Term
Ctrl-Z does what
Definition
Suspends a running command
Term
the command to send a program to the background
Definition
bg
Term
A job in the jobs command with a + means what?
Definition
the current job
Term
How is a previous job listed
Definition
with a minus (-) sign
Term
what command acts on the current job running in the background
Definition
fg or bg
Term
How do you kill a job in the background
Definition
kill %x where x is the job number to be ended
Term
nice command does what
Definition
raises or lowers the priority of a job
Term
Programs start with a priority of what
Definition
0 (zero)
Term
By default nice drops or increase a jobs priority and by how much
Definition
drops the priority by 10
Term
what are jobs priority from highest to lowest
Definition
-20 to 20
Term
What keyboard letter keys control cursor movements
Definition
h = left
j = down
k = up
l - right
Term
what are vi three modes
Definition
command, insert, lastline or ex mode
Term
mkfs is used for what
Definition
create file system on a new drive or partition
Term
command to make a ext2 file system on a new partition
Definition
mke2fs /dev/hdb
Term
what switch causes mkfs to create a ext3 journal file system
Definition
-j
Term
What is the command to check a file system
Definition
fsck
Term
to use fsck what is the status of the file system
Definition
mounted read only or unmounted
Term
how many columns in the fstab
Definition
6
Term
what are the column names in the fstab file
Definition
device, mount, point, file system type, options, dump type, and fsck
Term
what does user and users keywords in the mtab file mean
Definition
user= only the user who mounted the file can unmount it.
users = any user with proper permission can mount or unmount the file system
Term
what commands show the mounted file systems?
Definition
mount
cat /proc/mounts
cat /etc/mtab
Term
quotas are placed on file system how
Definition
file system by file system basis
Term
what are the names of the quota files and where are they located?
Definition
aquota.group and aquota.user
root of the file system
Term
What file do you edit to enable quotas and what commands are placed in the file?
Definition
/etc/fstab
usrquota, grpquota
Term
what command do you run to populate aquota.user and aquota.group
Definition
quotacheck
Term
what is the command and switch's to set a users quota?
Definition
edquota -u -t
Term
How do you start the quota subsystem
Definition
quotaon -a
quotaon filesystem
Term
what command do you use to check qoutas
Definition
users - quota
root - repquota
Term
how are file permissions arranged
Definition
user, group, other
Term
what command changes ownership
what command changes group owner
Definition
chown
chgrp
Term
SGID bit set on a files causes what to happen
Definition
group ownership of the directory cascades to all created objects
Term
What are hardlinks
Waht are softlinks
Definition
Multiple names pointing to the same inode and file data
Separate files with its own inode that points to another file
Term
Difference between hard and soft links when spanning file systems
Definition
symbolic links can span file systems hard links can not
Term
what is the difference between find command and locate command
Definition
find is a real time command, slower but more accurate
locate command is database driven, faster but returns hit for every instance of the search term
Term
what switch is used to execute a command with find
Definition
exec
Term
where is the locate configuration file at
Definition
/etc/updatedb.conf
Term
what are the x setup tools
Definition
xf86config
XF86Setup
Xconfigurator
Term
where are the X configuration files and were are they located
Definition
/etc/X11/XF86Config for version 3
/etc/X11/XF86Config-4 for version 4
Term
What command starts X
Definition
startx
Term
what is the start up sequence for X
Definition
xinit - .xinitrc or /etc/X11/xinitrc - Xresource or /etc/X11/xdm/Xresource
Term
What are the valid window managers
Definition
XFCE, AfterSetp, Window Maker, Blackbox, Sawfish, Sawmill, and Enlightenment
Term
what is the command to display a remote telent session?
Definition
export DISPLAY=yourhost:0.0
Term
Command to display client application on a second display
Definition
mozilla --display=0.1
Term
command to view loaded modules in the kernel
Definition
lsmod
Term
command to load single modules
Definition
insmod
Term
command to load or unload modules in groups
Definition
modprobe
Term
use ---- to view information about modules
Definition
modinfo
Term
to determine kernel version and architecture
Definition
uname -r
uname -m
Term
What does the kernel use to load modules
Definition
kmod
Term
what does kmod use to load/unload groups of modules
Definition
modprobe
Term
what does modprobe use to load modules
Definition
modules.dep file
Term
What program builds the modules.dep file
Definition
depmod program
Term
what program does the depmod program read
Definition
/etc/modules.conf
Term
what is the name of the kernel configuration file and where is it typically located
Definition
.config
/usr/src/linux
Term
what are the three kernel configuration files
Definition
make config, make menuconfig, and make xconfig
Term
where is the makefile located
Definition
/usr/src/linux
Term
typical targets for the makefile are
Definition
config, menuconfig, xconfig, oldconfig, modules, install, modules_install and depmod
Term
where is the system initialization log
Definition
/var/log/dmesg
Term
what program can read the dmesg
Definition
cat /var/log.dmesg
dmesg
Term
what are the lilo switches and what do they do
Definition
-R runs a command on next boot
-r changes root directory
-s saves the boot sector to a named file
-u restores a saved boot sector with a supplied file name
Term
Command to restore GRUB bootloader
Definition
grub-install /dev/hda for an ide drive
Term
command to boot a kernel from drives 1st partition
Definition
(hd0,0) /boot/vmlinuz
Term
What is init PID
Definition
1
Term
what and where is the default configuration for init
Definition
/etc/inittab
Term
What is the default runlevel in the inittab file
Definition
id:3:initdefault:
Term
What command can cause init to reread its configuration
Definition
init q
Term
command to shut down a system at 4 PM with a 20 second wait
Definition
shutdown -t 20 16:00
Term
how do you reboot the system immediately
Definition
shutdown -r now
Term
how do you halt a system shutdown
Definition
shutdown -c
Term
what are the linux printing commands
Definition
lpd - printer deamon
lpr - print job submission
lpq - printer query tool
lpc - printer configuration tool
lprm - remove a print job
Term
How do you print two jobs
Definition
-k 2
-# 2
Term
how do you work with a particular printer
Definition
-P printername
-Pprinter
Term
command to remove first job from the default queue
Definition
lprm
Term
Remove all print jobs from the default queue
Definition
lprm all
Term
How to remove first print jobs from all queues
Definition
lprm -a
Term
Remove all print jobs from all queues
Definition
lprm -a all
Supporting users have an ad free experience!