Course Content
-
What is Linux, Open Source Software, and a Distribution?
-
Introduction to the Shell
2.1 Prompt$
: normal user
2.2 Prompt#
: root user
2.3ls
: list directory contents 2.4ls -a
2.5ls -all
2.6ls --all
2.7ls -l file1 dirA
2.8crontab
: maintains crontab files for individual users -
Kernel and User Spaces,
kernel
is the heart of Linux operation system
3.1 Process with unique IDUser process
associate with a particular user,fg
andbg
Daemon process
eg, network services or other house keeping tasks to keep the system runningKernel threads
part of the kernel that are running as if they were regular user processes or system daemon, but are not associated with the terminal, they are part of the kernel, but they are still scheduled as if there were regular processesps
: get process informationps -ef
: show all process information with detail
-
Orientation to the Graphical User Interface
4.1GNOME3
-
File Management in Linux
5.1file
: determine file type
5.2mkdir
: create directory
5.3cp
: copy command
5.4rm
: 5.5pwd
: 5.6rmdir
: delete only if the directory is empty
5.7rm -r
: 5.8ln
: create link 5.9ln -s
: soft link/symbolic link -
The File System Hierarchy
6.1bin
: where to find binary
6.2sbin
: system binary, only useful to root user
6.3usr
: unix system resources, where to find the actual binary 6.4whereis ls
: to locate where is the command
6.5boot
: where the kernel is, the core of the operation system
6.6lib64
: where all application goes to
6.7var
: configuration
6.8/root/tmp
: file inside will be cleared every 10 days
6.9/root/var/tmp
: file inside will be cleared every 30 days -
Editing Files Using Vim
7.1command mode
andinsert mode
7.2:write foo.txt
: create file
7.3:quite
:quite vim
7.4yy
+p
: copy and paste 7.5dd
: delete lines
7.6O
: into insert mode at new line
7.7q!
: quit for sure
7.8vimtutor
: vim tutorial -
Organizing Users and Groups
8.1useradd
: to add user
8.2id username
: check user property
8.3uid
: numerical identifier
8.4gid
: represent user primary group
8.5groups
: supplementary group
8.6groupadd
: 8.7usermod -aG group user
: append user to the group
8.8passwd user
: update/change password of a user
8.9userdel user
: delete user, but user’s files remain
8.10groupdel
:
8.11grep user /etc/passwd
: 8.12grep user /etc/shadow
: show user’s password hash
8.13sudo -u user whoami
: change user and run whoami command
8.14sudo whoami
: root and run whoami command
8.15su -
: switch user account toroot
8.16crtl D
: exit and logout -
File Permission
9.1rwx
: read, write, execute
9.2kind owning user owning group other - - - - - - - - - - d/l/b rwx - - - - - - 9.3
ls -ld
: show dir property
9.4chmod o+w file
: change other to write
9.5chown student:paul file
: change group ownership from student to paul
9.6chmod u-rwx file
: rm read, write, execute from the user -
Managing Software,
rpm
10.1yum install
10.2yum update
10.3yum remove
-
Configuring Networking
-
Controlling System Startup Process
12.1systemctl --list-unit
12.2systemctl status sshd
12.3systemctl restart ssh
-
Introduction to Containers
13.1podman
,buildah
,skopeo
-
Overview of Cockpit, easy to use interface for network setting
14.1sysyemctl enable --now cockpit.socket
-
Learning more about Red Hat Enterprise Linux