Introduction
As a Full-Stack Developer, knowing programming languages and frameworks is not enough. We also need to understand the commands used to manage projects, install dependencies, run applications, work with databases, and deploy applications.
Here are some essential commands I use and want to keep as a quick reference during development.
1. Basic Terminal Commands
These commands help navigate and manage files and folders.
- GET : retrieve data
- pwd : Show the current working directory.
- ls : List files and folders.
- cd folder : Navigate into a folder.
- cd .. : Move to the parent directory.
- mkdir folder : Create a new directory.
- touch file.txt : Create a new file.
- cp file1 file2 : Copy a file.
- mv file1 file2 : Move or rename a file.
- rm file.txt : Delete a file.
- clear : Clear the terminal screen.
2. Git and GitHub Commands
Git helps track code changes and collaborate with other developers.
git init
git clone <repository-url>
git status
git add .
git commit -m "Initial commit"
git push origin main
git pull origin main
git branch
git switch -c feature-name
git merge feature-name
git log
Important commands:
git clone: Download an existing repository.git status: Check modified and untracked files.git add .: Stage changes.git commit: Save changes in Git history.git push: Upload commits to a remote repository.git pull: Fetch and integrate remote changes.git switch: Change branches.
3. Node.js and React Commands
These commands are commonly used when working with React, Vite, and Node.js projects.
Check versions
node -v
npm -v
Create and run projects
npm create vite@latest my-app
cd my-app
npm install
npm run dev
Manage dependencies
npm install axios
npm install react-router-dom
npm uninstall package-name
npm update
npm list
Build and preview
npm run build
npm run preview
4. Python Commands
These commands are useful for Python backend development.
Check Python and pip
python --version
pip --version
Create and activate a virtual environment
python -m venv venv
# Linux / macOS
source venv/bin/activate
# Windows PowerShell
.envScriptsActivate.ps1
Install and manage packages
pip install django
pip install -r requirements.txt
pip freeze > requirements.txt
pip list
pip uninstall package-name
5. Django Commands
These are some of the most frequently used commands when developing Django applications.
django-admin startproject config
python manage.py startapp myapp
python manage.py runserver
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py showmigrations
python manage.py collectstatic
For Django REST Framework projects, remember to install:
pip install djangorestframework
pip install djangorestframework-simplejwt
6. PostgreSQL Commands
Basic PostgreSQL commands are useful when managing backend databases.
Connect to PostgreSQL
sudo -u postgres psql
Useful SQL commands
CREATE DATABASE my_database;
CREATE USER my_user WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE my_database TO my_user;
\l
\c my_database
\dt
SELECT * FROM my_table;
\q
7. Linux Server and Deployment Commands
These commands are useful when deploying applications on Ubuntu VPS or Linux servers.
Server information
whoami
hostname
df -h
free -h
top
ps aux
Service management
sudo systemctl status nginx
sudo systemctl restart nginx
sudo systemctl status postgresql
sudo systemctl restart redis
Check application ports and processes
sudo ss -tulpn
sudo lsof -i :8000
View logs
sudo journalctl -u myapp.service -f
sudo journalctl -u nginx -n 100
8. Useful Network Commands
These commands help test APIs and troubleshoot connectivity.
ping google.com
curl https://example.com
curl -I https://example.com
curl http://127.0.0.1:8000/api/
nslookup example.com
curl: Send HTTP requests and test APIs.ping: Check network connectivity.curl -I: Check HTTP response headers.nslookup: Check DNS resolution.
Key Takeaways
A Full-Stack Developer should be comfortable with:
- Navigating files and directories using terminal commands.
- Managing source code using Git and GitHub.
- Installing dependencies and running React applications.
- Creating Python environments and managing packages.
- Running Django projects and database migrations.
- Managing PostgreSQL databases.
- Monitoring Linux servers and application services.
- Testing APIs and troubleshooting network issues.
Conclusion
These commands are part of everyday full-stack development. Learning them helps make development, debugging, project management, and deployment easier.
This is a quick reference rather than a complete command manual. I will continue improving my command-line knowledge as I work on real-world projects.