LPI-1 Administration 101 Objectives [] ALE - ATLANTA LINUX ENTHUSIASTS - http://ale.org/ - sign up for our email lists - General email list - ale - This Study Group list - ale-study - Meetup.com Group https://www.meetup.com/ALE-Atlanta-Linux-Enthusiasts/ - Objectives taken from LPI.org We are volunteers. This is our first attempt at this. 101.1 Determine and configure hardware settings DESCRIPTION: Candidates should be able to determine and configure fundamental system hardware. KEY KNOWLEDGE AREAS: - Tools and utilities to list various hardware information (e.g. lsusb, lspci, etc.) - Tools and utilities to manipulate USB devices - Conceptual understanding of sysfs, udev, dbus Partial list of the used files, terms and utilities: Chapter 5 pg 64 Tuxcademy 101 - /sys/ - /proc/ - /dev/ - modprobe - lsmod - lspci - lsusb 101.2 BOOT THE SYSTEM DESCRIPTION: Candidates should be able to guide the system through the booting process. KEY KNOWLEDGE AREAS: - Provide common commands to the boot loader and options to the kernel at boot time - Demonstrate knowledge of the boot sequence from BIOS to boot completion - Understanding of SysVinit and systemd - Awareness of Upstart - Check boot events in the log files Terms and Utilities: Chapter 8 pg 127 Tuxcademy 101 - grub, mbr/gpt, update-grub, grub-install, hacking in with init=/bin/bash - dmesg - BIOS - bootloader - kernel - initramfs - init - SysVinit - systemd 101.3 CHANGE RUNLEVELS / BOOT TARGETS AND SHUTDOWN OR REBOOT SYSTEM DESCRIPTION: Candidates should be able to manage the SysVinit runlevel or systemd boot target of the system. This objective includes changing to single user mode, shutdown or rebooting the system. Candidates should be able to alert users before switching runlevels / boot targets and properly terminate processes. This objective also includes setting the default SysVinit runlevel or systemd boot target. It also includes awareness of Upstart as an alternative to SysVinit or systemd. KEY KNOWLEDGE AREAS: - Set the default runlevel or boot target - Change between runlevels / boot targets including single user mode - Shutdown and reboot from the command line - Alert users before switching runlevels / boot targets or other major system events - Properly terminate processes Terms and Utilities: - /etc/inittab - shutdown - init - /etc/init.d/ - telinit - systemd - systemctl - /etc/systemd/ - /usr/lib/systemd/ - wall 102.1 DESIGN HARD DISK LAYOUT DESCRIPTION: Candidates should be able to design a disk partitioning scheme for a Linux system. KEY KNOWLEDGE AREAS: - Allocate filesystems and swap space to separate partitions or disks - Tailor the design to the intended use of the system - Ensure the /boot partition conforms to the hardware architecture requirements for booting - Knowledge of basic features of LVM Terms and Utilities: - / (root) filesystem - /var filesystem - /home filesystem - /boot filesystem - swap space - mount points - partitions 102.2 INSTALL A BOOT MANAGER DESCRIPTION: Candidates should be able to select, install and configure a boot manager. KEY KNOWLEDGE AREAS: - Providing alternative boot locations and backup boot options - Install and configure a boot loader such as GRUB Legacy - Perform basic configuration changes for GRUB 2 - Interact with the boot loader Partial list of the used files, terms and utilities: - menu.lst, grub.cfg and grub.conf - grub-install - grub-mkconfig - MBR 102.3 MANAGE SHARED LIBRARIES DESCRIPTION: Candidates should be able to determine the shared libraries that executable programs depend on and install them when necessary. KEY KNOWLEDGE AREAS: - Identify shared libraries - Identify the typical locations of system libraries - Load shared libraries Terms and Utilities: - ldd - ldconfig - /etc/ld.so.conf - LD_LIBRARY_PATH 102.4 USE DEBIAN PACKAGE MANAGEMENT DESCRIPTION: Candidates should be able to perform package management using the Debian package tools. KEY KNOWLEDGE AREAS: - Install, upgrade and uninstall Debian binary packages - Find packages containing specific files or libraries which may or may not be installed - Obtain package information like version, content, dependencies, package integrity and installation status (whether or not the package is installed) Terms and Utilities: - /etc/apt/sources.list - dpkg - dpkg-reconfigure - apt-get - apt-cache - aptitude 102.5 USE RPM AND YUM PACKAGE MANAGEMENT DESCRIPTION: Candidates should be able to perform package management using RPM and YUM tools. KEY KNOWLEDGE AREAS: - Install, re-install, upgrade and remove packages using RPM and YUM - Obtain information on RPM packages such as version, status, dependencies, integrity and signatures - Determine what files a package provides, as well as find which package a specific file comes from Terms and Utilities: - rpm - rpm2cpio - /etc/yum.conf - /etc/yum.repos.d/ - yum - yumdownloader 103.1 WORK ON THE COMMAND LINE DESCRIPTION: Candidates should be able to interact with shells and commands using the command line. The objective assumes the Bash shell. KEY KNOWLEDGE AREAS: - Use single shell commands and one line command sequences to perform basic tasks on the command line - Use and modify the shell environment including defining, referencing and exporting environment variables - Use and edit command history - Invoke commands inside and outside the defined path Terms and Utilities: - bash - echo - env - export - pwd - set / unset - man - uname - history - .bash & .history 103.2 PROCESS TEXT STREAMS USING FILTERS DESCRIPTION: Candidates should should be able to apply filters to text streams. KEY KNOWLEDGE AREAS: Send text files and output streams through text utility filters to modify the output using standard UNIX commands found in the GNU textutils package Terms and Utilities: - cat - cut - expand - fmt - head - join - less - nl - od - paste - pr - sed - sort - split - tail - tr - unexpand - uniq - wc 103.3 PERFORM BASIC FILE MANAGEMENT DESCRIPTION: Candidates should be able to use the basic Linux commands to manage files and directories. KEY KNOWLEDGE AREAS: - Copy, move and remove files and directories individually - Copy multiple files and directories recursively - Remove files and directories recursively - Use simple and advanced wildcard specifications in commands - Using find to locate and act on files based on type, size, or time - Usage of tar, cpio and dd Terms and Utilities: - cp - find - mkdir - mv - ls - rm - rmdir - touch - tar - cpio - dd - file - gzip - gunzip - bzip2 - xz - file globbing 103.4 USE STREAMS, PIPES AND REDIRECTS DESCRIPTION: Candidates should be able to redirect streams and connect them in order to efficiently process textual data. Tasks include redirecting standard input, standard output and standard error, piping the output of one command to the input of another command, using the output of one command as arguments to another command and sending output to both stdout and a file. KEY KNOWLEDGE AREAS: - Redirecting standard input, standard output and standard error - Pipe the output of one command to the input of another command - Use the output of one command as arguments to another command - Send output to both stdout and a file Terms and Utilities: - tee - xargs 103.5 CREATE, MONITOR AND KILL PROCESSES DESCRIPTION: Candidates should be able to perform basic process management. KEY KNOWLEDGE AREAS: - Run jobs in the foreground and background - Signal a program to continue running after logout - Monitor active processes - Select and sort processes for display - Send signals to processes Terms and Utilities: - & - bg - fg - jobs - kill - nohup - ps - top - free - uptime - pgrep - pkill - killall - screen 103.6 MODIFY PROCESS EXECUTION PRIORITIES DESCRIPTION: Candidates should should be able to manage process execution priorities. KEY KNOWLEDGE AREAS: - Know the default priority of a job that is created - Run a program with higher or lower priority than the default - Change the priority of a running process Terms and Utilities: - nice - ps - renice - top 103.7 SEARCH TEXT FILES USING REGULAR EXPRESSIONS DESCRIPTION: Candidates should be able to manipulate files and text data using regular expressions. This objective includes creating simple regular expressions containing several notational elements. It also includes using regular expression tools to perform searches through a filesystem or file content. KEY KNOWLEDGE AREAS: - Create simple regular expressions containing several notational elements - Use regular expression tools to perform searches through a filesystem or file content - Terms and Utilities: - grep - egrep - fgrep - sed - regex(7) 103.8 PERFORM BASIC FILE EDITING OPERATIONS USING VI DESCRIPTION: Candidates should be able to edit text files using vi. This objective includes vi navigation, basic vi modes, inserting, editing, deleting, copying and finding text. KEY KNOWLEDGE AREAS: - Navigate a document using vi - Use basic vi modes - Insert, edit, delete, copy and find text Terms and Utilities: - vi - /, ? - h,j,k,l - i, o, a - c, d, p, y, dd, yy - ZZ, :w[], :e!, :r FILE 104.1 CREATE PARTITIONS AND FILESYSTEMS DESCRIPTION: Candidates should be able to configure disk partitions and then create filesystems on media such as hard disks. This includes the handling of swap partitions. KEY KNOWLEDGE AREAS: - Manage MBR partition tables - Use various mkfs commands to create various filesystems such as: - ext2/ext3/ext4 - XFS - VFAT - Awareness of ReiserFS and Btrfs - Basic knowledge of gdisk and parted with GPT Terms and Utilities: - fdisk - gdisk - parted - mkfs - mkswap 104.2 MAINTAIN THE INTEGRITY OF FILESYSTEMS DESCRIPTION: Candidates should be able to maintain a standard filesystem, as well as the extra data associated with a journaling filesystem. KEY KNOWLEDGE AREAS: - Verify the integrity of filesystems - Monitor free space and inodes - Repair simple filesystem problems Terms and Utilities: - du - df - fsck - e2fsck - mke2fs - debugfs - dumpe2fs - tune2fs - XFS tools (such as xfs_metadump and xfs_info) 104.3 CONTROL MOUNTING AND UNMOUNTING OF FILESYSTEMS DESCRIPTION: Candidates should be able to configure the mounting of a filesystem. KEY KNOWLEDGE AREAS: - Manually mount and unmount filesystems - Configure filesystem mounting on bootup - Configure user mountable removable filesystems Terms and Utilities: - /etc/fstab - /media/ - mount - umount 104.4 MANAGE DISK QUOTAS DESCRIPTION: Candidates should be able to manage disk quotas for users. KEY KNOWLEDGE AREAS: - Set up a disk quota for a filesystem - Edit, check and generate user quota reports Terms and Utilities: - quota - edquota - repquota - quotaon 104.5 MANAGE FILE PERMISSIONS AND OWNERSHIP DESCRIPTION: Candidates should be able to control file access through the proper use of permissions and ownerships. KEY KNOWLEDGE AREAS: - Manage access permissions on regular and special files as well as directories - Use access modes such as suid, sgid and the sticky bit to maintain security - Know how to change the file creation mask - Use the group field to grant file access to group members Terms and Utilities: - chmod - umask - chown - chgrp 104.6 CREATE AND CHANGE HARD AND SYMBOLIC LINKS DESCRIPTION: Candidates should be able to create and manage hard and symbolic links to a file. KEY KNOWLEDGE AREAS: - Create links - Identify hard and/or soft links - Copying versus linking files - Use links to support system administration tasks Terms and Utilities: - ln - ls 104.7 FIND SYSTEM FILES AND PLACE FILES IN THE CORRECT LOCATION DESCRIPTION: Candidates should be thoroughly familiar with the Filesystem Hierarchy Standard (FHS), including typical file locations and directory classifications. KEY KNOWLEDGE AREAS: - Understand the correct locations of files under the FHS - Find files and commands on a Linux system - Know the location and purpose of important file and directories as defined in the FHS Terms and Utilities: - find - locate - updatedb - whereis - which - type - /etc/updatedb.conf