Home > HowTo, Linux > LPI 102

LPI 102

October 24th, 2012 Leave a comment Go to comments

I passed my Exam today, 650/800

My Notes:
xwininfo – shows X11 color depth
GPG send a encrypt file – use the user publick key to encrypt
locale – Get locale-specific information, dont display Timezone
gok – on-screen keyboard
echo $? – prints exit status of last cmd
echo $! – PID of last job
echo $$ – PID of the script/process itself
~/.forward – forward files for SMTP

seq – will display sequence of numbers, can take 1 arg or 3(start,increment,total)
mailq – displays list o emais in the queue
ln -s /usr/share/zoneinfo/UTC /etc/localtime – will set timezone to UTC
netstat – does not provide information about broadcast
dhcpcd,pump,dhclient – are DHCP clients for linux
ghostscript – a printer filter converts PostScript to non-PostScript
/etc/nsswitch.conf – tells the lookup programs where to look for dns file and order of what to call
pwconv – creates shadow from passwd file
/etc/noglogin – if this files exists only root can SSH into the server
~/.gnupg/ – if where GPG config and key ring for GPG
TCP wrapers works for: SSH,finger,ftp,tftp,exec,talk,rsh,rlogin,comstat
/etc/shadow – is readable only by root user
job to run every 11min for 7min, 10/* * * *
hosts.allow – used by tcpd
/etc/issue – is displayed when a user login into the system
/etc/hosts.allow ,deny acess to particular domain do: in.ftp: .bad.guy.com : twist /bin/echo “Go Away”
ntpdate – shows clock set by NTP
Internet Super Server = inetd , ssh can not work thru it
useradd – has default values in /etc/default/useradd
newaliases – will recreate the alias from /etc/aliases
declare -f – shows available functions in the system
syslog.conf – local2.* /dev/xconsole
logger – provides shell cmds to create syslog messags
xinetd.conf – uses the bind argument to set IP it will listen on
/usr/share/zoneinfo – timezone set by linking /etc/localtime
env – can be used for an alternative enviroment set
route del – removes current default gateway
/etc/cron.allow – controls who can use cron
xwininfo -metric – display screen information
bash -r or rbash – starts bash in restric mode
/etc/mail/local-host-names – list domains that the sendmail is responbile
atq – display at jobs queues
newaliases – update all alias DB
/var/run/utmp – contains who information
/var/run/wtmp – contains last information
ifconfig eth0 10.10.10.23 netmask 255.0.0.0 – will configure the interface ip
/var/spool/mqueue – has emails not sent
dig doma.com mx – will get MX records
tcpdchk – verify /etc/inetd.conf
/etc/gdm/custom.conf – allows custom msg in GNOME
find -name [.]*

–PRINTING–
cupsdisable – cancel prints jobs -c and send reson msg -r
lpr – submits files for printing and can delete a queued document( -r )
lpr -l – bypass printing filters
lpc – configure printing without CUPS, manage printing queues
lprm – removes jobs from printer queue, ex.: lprm -a all
lpadmin – configure printing with CUPS
/etc/hosts.lpd – control hosts allowed to print
/etc/printcap – defines a printer queue
/var/spool/lpd – is where queue’s are found

–X11–
XF86Config – to config Fonts parameter is under the Files section
XDM – uses /etc/X11/xdm/Xsetup to setup the screen
FontPath “unix/:7100” – in XF86Config to point to a font server

Hosts Bits for IPv6 should be 64

“How many IP addresses were left for other hosts to be connected” is changed cidr notation 192.168.112.64/26 to /29, be carefully because the answer isn’t 61, CIDR /29 permits only 6 hosts less router address, the correct answer is: 5

Fill in:
/etc/inetd.conf
/var/spool/mail
/var/run/utmp
/var/spool/lpd
/etc/sendmail.cf
/usr/share/zoneinfo
/etc/localtime
/var/log/boot.log
/etc/nsswitch.conf
/etc/printcap
/var/log/wtmp
/etc/xinetd.conf

——-New Questions ( Oct. 2012 )
– Basic feature knowledge of systemd and Upstart
– Basic feature knowledge of IPv6
– Basic feature knowledge of LVM
– Explicit coverage of the ext4 filesystem
– Basic configuration level of GRUB 2
– Adding Environmental Variable TZ to list of terms

Categories: HowTo, Linux Tags: , , , ,
  1. Marcin EF
    July 26th, 2013 at 21:40 | #1

    Nice

  2. Marco
    January 29th, 2014 at 14:10 | #2

    Good notes 🙂 it’s almost all the answers of the 102 chapter.

  1. No trackbacks yet.

VAMOVE *

*