Linux Shell & System Administration
Everyday Bash CLI commands, system diagnostics, permissions, networking sockets, processes, and disk management.
Linux Shell & System Administration Interactive Command Directory
Browse, search, and copy battle-tested commands & syntax recipes (18 Total Commands).
Recursively search directory for string, ignoring binary files, and displaying line numbers.
Find all log files older than 14 days and compress them in-place with gzip.
Create a gzip-compressed tarball archive of specified directories.
Fast incremental file transfer with archive permissions, compression, and progress bar.
Set executable read permissions and recursively change file ownership to www-data.
Show all active listening TCP and UDP sockets with listening process PID and name.
Identify process ID occupying port 3000 and forcefully terminate it.
Display top 10 memory-consuming processes running on the operating system.
Inspect mounted filesystem capacities and identify largest directories on disk.
Restart systemd unit service and display real-time active status.
Follow live service logs from systemd journal filtered by time duration.
Print human-readable memory availability and CPU core architecture.
Capture 100 raw network packets on interface eth0 on ports 80/443 without DNS resolution and save to PCAP file.
Display extended disk I/O metrics every 1 second for 5 iterations, omitting inactive disks to diagnose storage bottlenecks.
Monitor virtual memory paging, CPU run queues, system interrupts, and swap in/out rates in real time.
Attach to running process ID with child fork tracing, filtering system calls to network and file operations with 256-byte string dumps.
Display default kernel gateway routing tables and network interface IP/MAC configuration.
Perform in-place atomic string substitution across configuration files using stream editor.
Companion Developer Tools & Playgrounds
Accelerate command execution and syntax debugging with HelloAIHub suite of interactive tools.
In-Browser Code Runner
Test and benchmark syntax scripts in Node.js, Python, TypeScript, and Go with zero local setup.
Regex Live Tester & Explainer
Debug regular expressions, lookarounds, capture groups, and substitution patterns with live AST explanations.
Dockerfile Generator
Generate multi-stage, rootless, production-hardened Dockerfiles with caching and alpine bases.
System Design Sizing Calculator
Compute real-time QPS, storage bandwidth, cache memory ratios, and replica math for distributed architectures.
Linux Shell & System Administration: Command Groups & Quick Index
18 indexed entries across 18 sectionsHighlighted Flags & Syntax Examples in Linux Shell & System Administration
Recursively search directory for string, ignoring binary files, and displaying line numbers.
Find all log files older than 14 days and compress them in-place with gzip.
Create a gzip-compressed tarball archive of specified directories.
Fast incremental file transfer with archive permissions, compression, and progress bar.
Frequently Asked Questions
Expert recommendations, common traps, and production best practices for Linux Shell & System Administration.
What is the difference between hard links and symbolic (soft) links in Linux?
A hard link points directly to the file's underlying inode on the filesystem; if the original file is deleted, the data remains accessible through the hard link. A symbolic link (symlink) is a special shortcut file containing a pathname reference; if the target file is deleted, the symlink breaks.
How does Linux file permission numbering (e.g., 755, 644) work?
Permissions consist of three octal digits for Owner, Group, and Others. Read=4, Write=2, Execute=1. 755 means Owner has 7 (4+2+1=rwx), Group has 5 (4+0+1=r-x), and Others have 5 (r-x). 644 means rw-r--r--.
What is the difference between SIGTERM (15) and SIGKILL (9)?
SIGTERM requests a process to terminate gracefully, allowing it to close open file handles, commit transactions, and remove temp files. SIGKILL immediately terminates the process at the OS kernel level and cannot be caught, blocked, or handled.
What is load average in Linux and how is it calculated?
Load average represents the average number of processes in a runnable state (CPU running or waiting in the run queue) plus those in an uninterruptible sleep state (waiting for disk or network I/O) over 1, 5, and 15 minute intervals. On a system with N CPU cores, a sustained load average exceeding N indicates CPU or disk I/O saturation.
How does the Linux Virtual File System (VFS) buffer cache and swap memory affect available RAM?
Linux opportunistically allocates unused memory to disk page cache and buffer cache to accelerate read operations. This memory is marked as available and reclaimed immediately when user applications request RAM. 'free -h' reports 'available' memory, which reflects truly unreserved RAM plus reclaimable page cache.
What is the difference between systemctl stop, restart, and reload?
'systemctl stop' sends SIGTERM and terminates the service process completely. 'systemctl restart' terminates the process and starts a fresh instance, causing brief request interruption. 'systemctl reload' instructs the running daemon (like Nginx) to reload its configuration files on the fly without dropping active TCP connections.
Cross-Hub Skill Acceleration
Combine command lookups with active coding interviews and complete career paths.
Need More Cheat Sheets?
Explore developer cheat sheets and syntax guides on HelloAIHub.