Linux Fundamentals
Master the essential Linux commands and file system navigation that every developer needs.The Linux File System
Everything in Linux starts from the root directory/. Unlike Windows (where you might have C:, D:, E:\ as separate drive letters), Linux has a single tree. Everything — every file, device, process, and even hardware interface — hangs off that one root. Plug in a USB drive? It gets mounted somewhere in this tree. Check CPU info? It is a file in this tree.
Key Directories
Navigation Commands
File Operations
Creating Files and Directories
Copying and Moving
Deleting
Viewing File Contents
Finding Files
Using find
Using locate
Using grep to search inside files
File Permissions Preview
Practical Examples
Example 1: Organizing Files
Example 2: Finding Large Files
Example 3: Searching Logs
Useful Shortcuts
Wildcards and Patterns
Redirection and Pipes
Redirection and pipes are what make the Linux command line so powerful. Each command has three standard streams: stdin (input, fd 0), stdout (output, fd 1), and stderr (errors, fd 2). Redirection lets you reroute these streams to files. Pipes let you connect the output of one command to the input of another, building powerful data processing pipelines.Key Takeaways
- Linux file system starts at
/(root) - Use
ls,cd,pwdfor navigation cp,mv,rmfor file operationscat,less,head,tailto view filesfindandgrepto search- Tab completion and history save time
- Pipes (
|) chain commands together
Next: Linux Permissions & Users →