LFCS: Red Hat 7 Essentials
INTRODUCING THE LINUX FOUNDATION AND LFCS
CERTIFICATION
Andrew Mallett
LINUX AUTHOR AND TRAINER
@theurbanpenguin web.theurbanpenguin.com
Gain Professional Linux Certifications
LFCS RHCSA
Linux Foundation Certified Red Hat Certified System
SysAdmin Administrator
Module
Overview Linux Foundation and LFCS Certification
Red Hat RHCSA
Lab Environment
Pluralsight Courses
Course Contents
Linux Foundation and LFCS
Linux Foundation LFCS
The Linux Foundation is a Linux Foundation Certified
non-profit consortium SysAdmin. Exam is a live exam
dedicated to fostering the taken on CentOS 7, openSUSE
growth of Linux and was 13.1 or Ubuntu 14.04. The exam
founded in 2000 lasts for 2 hours
Course uses CentOS
Maps also to RHCSA
Similarly exam style
Lab Environment
CentOS 7 Master
master
Host System Using
VirtualBox
CentOS 7 GUI
server1
CentOS 7 CLI
server2
LFCS: Linux Essentials
LFCS: Linux Operation Essentials
LFCS: Linux User and Groups Management
LFCS: Linux Storage Management
LFCS: Linux Networking
LFCS: Linux Service Management
LFCS: Linux Virtualization Management
LFCS: Linux Essentials
Using Vi
Working on CLI
Installing CentOS7 Piping and
Reading Files Redirection
Help and Permission and
SSH and Screen
Archiving root Access
Well, how will you learn!
Demo Partly by slides
The main points and summaries will be in
slide form
Mainly you will learn from demos and
hands-on practice
Let’s take a quick look at using the Linux
command line
Summary
Certifications Lab Environment How You Learn
What we cover and how VirtualBox and CentOS Lots of demos and work
you can be certified 7.2 along with them
Next up: Installing CentOS 7
Installing CentOS 7
Andrew Mallett
LINUX AUTHOR AND TRAINER
@theurbanpenguin web.theurbanpenguin.com
Downloading CentOS
Overview Media Types
VirtualBox Network
Installing from DVD
Installing from the Network
Adding the GUI
Exam Objectives
Install Linux from Install Linux from the Install Linux into a
Physical Media Network Virtual Disk
Answer files, kickstart and PXE
installations are covered in
LFCS: Red Hat 7 Service
Management
CentOS.org Downloads
Everything DVD DVD Minimal
All that CentOS can 4 GB Full Installation CD size at 600MB,
provide + 7GB DVD enough for a minimal
install
Downloading ISO files
VirtualBox networking
Demo Installing CentOS 7 from local media
Installing CentOS 7 from the network
- Local Web Server
- http://mirrors.sonic.net/centos/7.2.1511
Both minimal installs
Add X Server GUI to Server 1
Install VirtualBox Guest Additions
Centos.org
Everything
DVD
Minimal
Physical Media
Network
File Preferences
Networking
NAT
Add
NatNetwork
NatNetwork and
HostOnly
# yum install redhat-lsb-core net-tools epel-release kernel-headers kernel-devel
# yum groupinstall “Development Tools”
# yum update
# reboot
Installing Extra Software for VBoxAdditions
# yum groupinstall “X Window System” “MATE Desktop”
# systemctl set-default graphical.target
# systemctl isolate graphical.target
Install GUI
Next Up: Working at the
Command Line.
$ sudo yum install -y words
$ grep -E ‘[aeiou]{5} /usr/share/dict/words
$ function clean_file {
sed -i ‘/^#/d;/^$/d’ $1
}
$ diff ntp.conf /etc/ntp.conf
$ md5sum /usr/bin/passwd
$ rpm -V ntp
$ find /etc -maxdepth 1 -type l
$ find /boot -type f -size +10000k
$ find /usr/share -name ‘*.pdf’ -exec cp {} . \;
$ touch file1
$ > file1
$ touch -d ‘10 April 1983’ file1
$ sudo yum install -y nano
$ nano file1
set showmode nohlsearch nonumber
set ai ts=4 expandtab
abbr _sh #!/bin/bash
nmap <C-N> :set invnumber<CR>
$ > file1
$ ls > file1
$ ls 1> file1
$ ls 1>> file1
$ set -o noclobber
$ ls >| file1
find /etc -type l 2> /dev/null
find /etc -type l &> file1
df -hlT > diskfree
mail -s “Disk free” tux < diskfree
cat > newfile <<END
This is a new file
And is created on the
Command line or scripts
END
cut -f7 -d: /etc/passwd | sort | uniq
mkfifo mypipe
ls > mypipe
wc -l < mypipe
ls | tee file1
$ cp /boot/initramfs….img /tmp/
$ mkdir /tmp/work
$ cd !$
$ cpio -id < ../initramfs….img
$ dd if=/dev/sr0 of=/tmp/disk.iso
$ dd if=/dev/sda of=/tmp/sda.mbr count=1 bs=512
Accessing Command Line Help
Andrew Mallett
LINUX AUTHOR AND TRAINER
@theurbanpenguin web.theurbanpenguin.com
Exam
Objectives
Read, and use system documentation
Use version control tools
Demo Using simple help from the command line
Using man pages at the command line
Using info pages at the command line
Using RCS to maintain version control
Demo: Simple Help Options
Demo: Man Pages
Demo: Info Pages
Demo: Version Control with RCS
-h --help /?
man pages
Summary
sections 1, 5, and 8
info pages
RCS
- ci
- co
- rlog
Next Up: Understanding File
Permissions
Understanding File Permissions
Andrew Mallett
LINUX AUTHOR AND TRAINER
@theurbanpenguin web.theurbanpenguin.com
Exam
Objectives
List, set, and change standard file
permissions
Evaluate and compare the basic file
system features and options
Linux file systems
Demo
Listing permissions with ls and stat
Understanding umask and default
permissions
Setting permissions
Changing file ownership
Linux File Systems and Permissions
In general Linux file systems will support permissions;
however, FAT based file systems do not.
Linux ACLs
Additional permissions can be added via ACLs. In the
default XFS file system of CentOS 7 this is built-in. In
EXT based file systems the mount option acl needs to be
added.
Demo: Listing Permissions
Demo: The umask
Demo: Setting Permissions
Demo: Ownership
Permissions and ACLs
Default file 666
Default directory 777
Summary Umask can adjust defaults
List permissions
- ls -l
- stat -c %a
- stat -c %A
Chmod can be used symbolically or
octally
Ownership set with chown and chgrp
Next Up: Accessing the
Root Account