Skip to content

command cheat sheet

Chirag Suthar edited this page Jul 15, 2026 · 1 revision

⚙️ Command Cheat Sheet

A quick-reference guide for the essential commands used throughout this 200-day journey.


🐙 Git & GitHub Essentials

These are the daily bread-and-butter commands to keep your GitHub contribution graph green.

Command Description
git status Check which files have been modified or are untracked.
git add <filename> Stage a specific file to be committed.
git add . Stage all modified and new files in the current folder.
git commit -m "Your Message" Record your staged changes with a descriptive progress message.
git push origin main Send your local commits to your remote GitHub repository.
git pull Fetch and merge changes from GitHub to your local machine.
git log --oneline View a clean, simplified history of your previous commits.

💻 Terminal & Linux Basics (Command Line)

Use these to navigate your computer's folders and files without using a mouse.

Directory Navigation

  • pwd (Print Working Directory) – Shows exactly where you are on your computer.
  • ls (List) – Lists all files and folders in your current directory.
  • cd <folder_name> – Move inside a specific folder.
  • cd .. – Move up one folder level.
  • mkdir <new_folder> – Create a brand new folder.

File Management

  • touch <file_name> – Create an empty file (e.g., touch script.py).
  • cat <file_name> – Read and display the entire contents of a file in the terminal.
  • rm <file_name> – Delete a file permanently. Warning: There is no recycle bin here!
  • mv <old_name> <new_name> – Rename or move a file.

🐍 Python Execution

Commands to run, test, and manage your Python environment.

💡 Note: Depending on your operating system, you might need to use python3 instead of python.

  • Run a script:
    python script.py

Clone this wiki locally