Original post
COMPLETE LINUX TERMINAL MINI-COURSE (ZERO TO HERO)Everything you need: Navigation, Permissions, Git, Python, Networking, Nmap, Scripting & Ready-to-Use Kits.
[/HR]
1. Navigation & File Management (The Absolute Basics)
Before hacking or coding, you need to know how to move around without a mouse.
- pwd β Shows your exact current folder path.
- ls -la β Lists ALL files (including hidden ones starting with
.) with permissions and sizes. - cd folder_name β Enters a directory. Use
cd ..to go back one folder, orcd ~to jump straight to your Home folder. - mkdir -p project/src β Creates a folder (and parent folders if they don't exist).
- touch script.py β Creates a blank file immediately.
- cp -r folder1 folder2 β Copies files or entire folders (
-r= recursive). - mv old.txt new.txt β Moves or renames a file/folder.
- rm -rf folder_name β Force-deletes a folder and everything inside. WARNING: Permanent deletion. No Trash bin!
[/HR]
2. Reading, Editing & Searching Files
Stop opening heavy text editors just to read or tweak a config file.
- cat file.txt β Dumps the entire file content into the terminal.
- head -n 20 file.txt / tail -n 20 file.txt β Shows only the first or last 20 lines (great for massive logs).
- nano file.txt β Opens a simple terminal text editor. (Save:
CTRL + O->Enter| Exit:CTRL + X). - grep -i "password" file.txt β Searches for a word inside a file (
-iignores uppercase/lowercase). - find / -name "secret.txt" 2>/dev/null β Searches the entire system for a file by name while hiding permission errors.
[/HR]
3. Permissions & Root (Admin Power)
Linux security is strict. If a script won't run, it's usually a permission issue.
bash
# Run a command as Administrator (Root):
sudo apt update
# Switch to full Root shell (be careful!):
sudo su
# Make a downloaded script or binary executable:
chmod +x tool.sh
# Give full read/write/execute permissions (777):
chmod 777 file.txt
# Change file owner to your user:
sudo chown $USER:$USER file.txt[/HR]
4. Installing "The Master Kit" (All-in-One Setup)
Fresh Linux installs lack basic tools. Copy and paste the command for your distro to install Git, Python3, Pip, Nmap, Curl, Wget, Net-Tools, Htop, Tmux & Unzip all at once:
βΆ Ubuntu / Debian / Kali / Parrot / Mint:
bash
sudo apt update && sudo apt upgrade -y && sudo apt install -y git python3 python3-pip python3-venv nmap curl wget net-tools htop tmux unzip build-essentialβΆ Arch Linux / Manjaro / EndeavourOS:
bash
sudo pacman -Syu --noconfirm && sudo pacman -S --noconfirm git python python-pip nmap curl wget net-tools htop tmux unzip base-develβΆ Fedora / RHEL / CentOS:
bash
sudo dnf update -y && sudo dnf install -y git python3 python3-pip nmap curl wget net-tools htop tmux unzip @development-tools[/HR]
5. How to Clone & Use GitHub Repositories
90% of open-source tools live on GitHub. Here is the exact workflow to download and run them:
bash
# 1. Copy (clone) a repository to your machine:
git clone [hidden link]
# 2. Enter the downloaded folder:
cd repository-name
# 3. Check what files are inside (look for README.md, requirements.txt, or .sh/.py files):
ls -la
# 4. Update a repo later when the creator releases new code:
git pull[/HR]
6. How to Run Python Tools & Virtual Environments (venv)
Modern Linux systems block global
pip install to protect the OS. Always use a Virtual Environment (venv) when running Python tools from GitHub:bash
# 1. Create an isolated environment inside the tool's folder:
python3 -m venv venv
# 2. Activate the environment (your terminal prompt will change to show "(venv)"):
source venv/bin/activate
# 3. Install the tool's dependencies:
pip install -r requirements.txt
# 4. Run the Python script:
python3 main.py
# 5. Exit the virtual environment when finished:
deactivate[/HR]
7. Networking, SSH & Nmap Essentials
Check connections, download files, connect to remote servers, and scan networks.
bash
# Check your local IP address:
ip a
# Check your public IP address:
curl ifconfig.me
# Download a file directly from a URL:
wget [hidden link]
# Connect to a remote Linux server (VPS) via SSH:
ssh [email protected]
# Start a quick local HTTP server to share files from your current folder:
python3 -m http.server 8000
Nmap Cheat Sheet (Network Scanning):bash
# Fast scan of top 100 ports on a target:
nmap -F 192.168.1.1
# Detailed scan (Service versions + Default scripts + OS detection):
sudo nmap -sC -sV -O 192.168.1.1
# Scan all 65,535 ports quickly:
nmap -p- -T4 192.168.1.1[/HR]
8. Process Control, Piping & Terminal God-Mode
Combine commands and manage background tasks like a pro:
- ps aux | grep python β Finds all running Python processes and their PID (Process ID).
- kill -9 1234 β Force-kills a frozen program using its PID (
1234). - command1 && command2 β Runs command 2 only if command 1 succeeds.
- command > output.txt β Saves command output to a file (overwrites). Use
>>to append without erasing. - TAB β Auto-completes commands and file paths.
- CTRL + R β Searches your command history as you type.
- sudo !! β Repeats your last command with
sudoin front.
Bonus: Create Your Own Shortcuts (Aliases)
Run this once to create a custom command calledupdatethat updates your whole Ubuntu/Debian system:echo 'alias update="sudo apt update && sudo apt upgrade -y"' >> ~/.bashrc && source ~/.bashrc
Bookmark this thread for quick reference. Drop your favorite commands below! 

Last edited by Error

Bonus: Create Your Own Shortcuts (Aliases)
KIT 02 | Backup and Verify a Project
KIT 03 | Python Project in 30 Seconds
KIT 04 | Network Troubleshooting
BONUS PACK COMPLETE
LINUX TERMINAL VISUAL UPGRADE PACK
2. Starship | A Modern, Colorful Prompt
3. eza + bat | Better File Browsing
4. btop | A Live System Dashboard
5. Zsh Plugins | Smarter Command Line
BONUS | Terminal Effects & Fonts