Ubuntu Tutorials - Herong's Tutorial Examples - v1.25, by Herong Yang
Ubuntu Tutorials - Herong's Tutorial Examples
https://www.herongyang.com/Ubuntu
© 2019-2025 Herong Yang. All rights reserved.
This book is a collection of notes and sample codes written by the author while he was learning Ubuntu systems. Topics include using GNOME desktop for graphical applications; using shell for command line tools; managing processes and memory; managing files and directories; using APT (Advanced Package Tool); managing network connections; using wget and curl commands; SSH Server configuration and client tools; administrative tasks: moving /home directory, migrating users; Updated in 2025 (Version v1.25) with memory management tutorials.
Table of Contents
Introduction to Ubuntu Systems
hostnamectl - Display System Information
"free" - Display Free and Used Memory
"who | w" - Logged-in Users and Their Running Commands
GNOME - Desktop Interface and Environment
gnome-tweaks - The GNOME Tweak Tool
GNOME Application - Image Viewers
GNOME Application - Video Players
Shell - The Command-Line Interpreter
What Is Bash (Bourne Again SHell)
Bash Command Line Interpretation Steps
Bash Shell Session Customization
Command Input/Output Redirection
"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
earlyoom - A Simple OOM Killer
"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
"rar" and "unrar" - Roshal Archive Files
"apt list" - List Software Packages
"apt show" - Show Software Package Details
"sudo apt install/remove" - Install/Remove Package
"sudo apt autoremove" - Remove Unneeded Packages
Manage "apt" Package Repositories
APT Configuration Settings and Overrides
APT Package Archives and Metadata
Connect to Wi-Fi with GNOME Settings
"traceroute" - Trace Route to Remote Host
"ifconfig" - Trace Routes to Remote Host
"route" - Manage Routing Table
"netstat" - Display Network Statistics
"wget" - Get Files from the Web
SSH Protocol and ssh/scp Commands
"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: Ubuntu, Linux, Tutorials