70-410 Notes
70-410 Notes
70-410 Notes
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
master
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
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
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