This site is 100% ad supported. Please add an exception to adblock for this site.

Linux Set 6

Terms

undefined, object
copy deck
What command is used to change permissions?
chmod
What command will show all the jobs in a print queue?
lpq
What command will remove a jobid from a print queue?
lprm <jobid>
What command is used to control a print queue (reset spooler, etc.)?
lpc
What security risk does Telnet pose?
password is sent in cleartext
Logins from the console on a non-X environment are supported by what program in Linux?
getty
How is a locked terminal closed?
by switching to another virtual terminal and killing the locked terminal
What two methods can be used to uninstall LILO?
restore the original boot sector with dd; or use a DOS disk to run fdisk /mbr
How does Linux mark shadow passwords?
with an 'x' in the second field of every line in the passwd file
What does the 'P' command in Fdisk do?
prints the current partition table
What does the 'N' command in Fdisk do?
creates a new partition
What does the 'w' command in Fdisk do?
writes work to disk (removes existing partitions)
What does the 't' command in Fdisk do?
changes the partition type
What is partition type 82?
swap partition
What is partition type 83?
regular filesystems
What does the 'd' command in Fdisk do?
deletes a partition
What has to be done after a partition is created?
it must be formatted with mkfs
What should be done before running fsck on an active filesystem?
unmount the partition
What command is used to unmount a drive?
umount
What program can be used to schedule commands?
cron
What daemon handles scheduling?
crond
What format does crontab use to set date and time?
6 columns: minute hour day month weekday command
What line will cause the output of a cron job to go to someone other than the owner of the crontab?
MAILTO=<username>
What command can be used to determine what program created a core dump?
file
What is a PID?
process identifer
What is a PPID?
parent process ID
What is the parent of all processes? What is its PID?
init; PID=1
What command can be used to list processes?
ps
When a program crashes, what is usually left behind?
a core dump
What command can be used if a normal "kill" command is ineffective?
kill -9
Where are general system messages stored?
/var/log/messages
Where are mail transfer messages stored?
/var/log/maillog
Where are security-related messages stored?
/var/log/secure
Where are status reports from the cron daemon stored?
/var/log/cron
What two files are historical data about logins stored in?
/var/log/lastlog and /var/log/wtmp
What two methods can be used to create backups?
tarball and dump/restore

Deck Info

36

permalink