Linux Tutorials - Herong's Tutorial Examples - v5.45, by Herong Yang
Linux Tutorials - Herong's Tutorial Examples
https://www.herongyang.com/Linux
© 2009-2024 Herong Yang. All rights reserved.
This book is a collection of notes and sample codes written by the author while he was learning Linux systems. Topics include using Cockpit Web portal for admin tasks; managing users and groups; managing files and directories; managing NTFS, CIFS, EXT4, LBA, LVM file systems; managing processes and memory; using network tools and security firewall; installing CentOS systems; using SELinux (Security-Enhanced Linux) system; DNF/YUM software package manager; SSH Server configuration and client tools; managing vsftpd - Very Secure FTP daemon; managing directory service with OpenLDAP; Updated in 2024 (Version v5.45) with memory management tutorials.
Table of Contents
"uname" - Display System Information
"free" - Display Free and Used Memory
"who | w" - Logged-in Users and Their Running Commands
Cockpit - Web Portal for Administrator
"Web console" Login Welcome Message
"ps" - Display Current Processes
"jobs" - Manage Background Jobs
Layers of Memory and Access Speed
List CPU Caches and Their Sizes
Virtual Memory vs. Physical Memory
Buffer Memory and Cache Memory
Verify Cache Memory with "cp" Command
Virtual Memory Mapping and Page Table
"ps -o rss,drs,trs,vsz,sz" - Process Status Options
smem - Process Memory Usage Report
/proc/{id}/maps - Process Memory Map
/proc/{id}/smaps - Process Memory Map Details
"more", "head" and "cat" - Read Files
"split" and "cat" - Split and Join Files
"compress/uncompress" - Compressed *.Z Files
"gzip/gunzip" - Compressed *.gz Files
"xz/unxz" - Compressed *.xz or *.lzma Files
"tar -c" and "tar -x" - Create and Extract Archive Files
"zip" and "unzip" - Create and Extract ZIP Files
"Operation not permitted" Error on macOS
Group Access Permissions on Files
"adduser/usermod/userdel" - Commands to Manage Users
"df" - Display Free Space of File System
Mount USB Drive as File System
"dd" - Copy Data from/to Storage Devices
Use "dd" Command to Test I/O Speed
"du" - Display Disk Usage of Directories
Mount Windows NTFS File System
Access Persmissions on "ntfs-3g" File System
Reformat NTFS Partition into EXT4 Partition
Mount NFS (Network File System) on macOS
/etc/mtab and /etc/fstab Files
Unreachable Remote File Systems
What Is LVM (Logical Volume Manager)
Create New PV (Physical Volume)
Add/Remove PV on VG on the Fly
Extend /home LV with a New Partition
Install CentOS from Bootable USB
Install CentOS by Deleting Existing Partition
Reset Timezone on Linux Systems
Reset Host Name on Linux Systems
SELinux - Security-Enhanced Linux
Setup Ethernet Connection on CentOS
Network Firewall Tools on CentOS
"firewalld" and "firewall-cmd" on CentOS
Manage Multiple Firewall Zones
"nftables" and "nft" on CentOS
"nmap" - Network Mapper on CentOS
Monitor Network Services on CentOS
"ifconfig" - Trace Routes to Remote Host
"traceroute" - Trace Routes to Remote Host
"netstat" - Display Network Statistics
"wget" - Get Files from the Web
SSH Protocol and ssh/scp Commands
Software Package Manager on CentOS - DNF and YUM
Manage DNF Package Repositories
Install and Manage Java Packages on CentOS
Install and Manage Perl Packages on CentOS
Install "git-core" for GitHub Packages on CentOS
Failed to Download Metadata for Repo ...
Replacing CentOS Repositories to Local Mirrors
vsftpd - Very Secure FTP Daemon
Setup FTP Sub-Directory for Local Users
Test FTP Access Locally on CentOS
Test FTP Access Remotely on CentOS
Support FTP Over TLS on CentOS
Disable SSH Access for FTP Users
LDAP (Lightweight Directory Access Protocol)
Install OpenLDAP Server on CentOS
Configure OpenLDAP Server on CentOS
Hierarchical Structure of LDAP Entries
Install OpenLDAP Server on CentOS 8
Configure Mozilla Thunderbird to Use LDAP
LDAP Attributes Mapping in Mozilla Thunderbird
Configure Apple iPhone to Use LDAP
"systemctl status/start/stop/enable/disable" Commands
"shutdown" and "halt/poweroff/reboot" Commands
Move /home Directory to New Partition
Move All Users to a New System
Keywords: Linux, CentOS, macOS, Tutorials