Essential commands every beginner needs to learn
A typical Linux command follows this pattern: command -options argument
-l for "long listing")Think of the Linux terminal as a powerful way to talk directly to your computer. These commands are the essential vocabulary you need to navigate and control your system effectively.
Print Working Directory - Shows you the full path of the directory you are currently in. It's your compass in the file system.
List - Lists the files and directories in your current location.
Common options: -l (detailed list), -a (show hidden files)
Change Directory - Moves you to a different directory.
Common usage: cd Documents, cd .., cd ~, cd -
Make Directory - Creates a new directory.
Creates a new, empty file. Also used to update the timestamp of an existing file.
Copy - Copies files or directories.
Common options: -r (copy directories recursively)
Move - Moves or renames files and directories.
Remove - Deletes files or directories. Use with extreme caution!
Common options: -r (remove directories), -i (prompt before deletion)
Concatenate - Displays the entire content of a file on the screen. Best for short files.
Displays file content one screen at a time. Much better for viewing long files.
Shows the first 10 lines of a file.
Shows the last 10 lines of a file. Extremely useful with -f to follow a file in real-time.
Searches for files and directories in a directory hierarchy.
Global Regular Expression Print - A powerful search tool for finding text patterns within files.
Manual - The most important command! Shows the documentation for other commands.
Change Mode - Changes the permissions (read, write, execute) of a file or directory.
SuperUser Do - Runs a command with administrative (root) privileges.
Installs, updates, and removes software packages.
Process Status - Shows a snapshot of the currently running processes.
Terminates a running process. You need the Process ID (PID) from the ps command.
This isn't a command by itself, but a fundamental concept. The pipe takes the output of the command on the left and uses it as the input for the command on the right.