Essential Linux Commands and Directory Guide
This article introduces Linux's core directory layout, explains the basic command syntax with examples, outlines common file‑operation commands, details file permission notation, and provides a concise overview of Vim editing shortcuts for efficient terminal work.
1. Linux Directory Structure
The Linux filesystem follows a standard hierarchy. Key top‑level directories include:
bin – binary executables for all users.
sbin – system binaries, typically accessed by root.
etc – configuration files.
usr – shared system resources.
home – user home directories.
root – root user’s home.
dev – device files.
lib – shared libraries and kernel modules.
mnt – mount points for temporary filesystems.
boot – boot loader files.
tmp – temporary files.
var – variable data such as logs and caches.
2. Common Linux Commands
Command syntax follows the pattern command -options arguments, where options and arguments are optional. Example: ls -la /usr The article includes visual tables of file‑operation commands and system utilities (images omitted for brevity).
2.1 File and Directory Operations
2.2 Common System Commands
2.3 Compression and Decompression
2.4 File Permission Operations
Permissions are expressed as rwx for read, write, execute, and can be represented numerically (e.g., 764). The first character indicates file type (d for directory, - for regular file, l for link). Subsequent three‑character groups represent user (u), group (g), and others (o) permissions, with a denoting all.
3. Vim Editor Overview
Vim is a powerful, modal text editor commonly used on Linux. It operates entirely via keyboard commands without graphical menus.
3.1 Editing Text
3.2 Navigation Commands
3.3 Replace and Undo
3.4 Delete Commands
3.5 Common Shortcuts
These sections collectively provide a quick‑reference guide for anyone needing to navigate Linux filesystems, execute common shell commands, manage permissions, and use Vim efficiently.
Linux Tech Enthusiast
Focused on sharing practical Linux technology content, covering Linux fundamentals, applications, tools, as well as databases, operating systems, network security, and other technical knowledge.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
