command cheat sheet - Chirag-rgb42/200-Days-Of-Cybersecurity GitHub Wiki
A quick-reference guide for the essential commands used throughout this 200-day journey.
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. |
Use these to navigate your computer's folders and files without using a mouse.
-
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.
-
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.
Commands to run, test, and manage your Python environment.
💡 Note: Depending on your operating system, you might need to use
python3instead ofpython.
-
Run a script:
python script.py