Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Title: Linux Terminal Commands - Quick Reference
- # 1. Navigation & Directory Listing
- ls # List directory contents (files and folders).
- cd # Change the current working directory.
- pwd # Print the full path of the current working directory.
- # 2. File & Directory Management
- mkdir # Create a new directory (folder).
- touch # Create an empty file or update file timestamps.
- cp # Copy files or directories from one location to another.
- mv # Move or rename files and directories.
- rm # Remove (delete) files or directories (use -r for folders).
- # 3. Content Viewing & Searching
- cat # Concatenate and display the entire content of a file.
- grep # Search for a specific pattern or text within files.
- head # Output the first part (default 10 lines) of a file.
- # 4. System Info & Permissions
- sudo # Execute a command with administrative (superuser) privileges.
- chmod # Change the access permissions (read/write/execute) of a file.
- top # Display real-time system resource usage and active processes.
- df # Report the amount of available disk space on file systems.
- history # Show a list of previously executed commands in the terminal.
Advertisement