My Development Favorite Commands Cheatsheet

CentOS 8 List any process listening to the given port: lsof -i:5000 To kill a process by ID: kill 12345 Nginx Restart nginx server: service nginx restart Python Run python script in the background: nohup python3 /path/to/app.py & Install packages based on requirements: pip3 install -r /path/to/requirements.txt Visual Studio Code Search Files: Command + shift + F Copy line down: Shift + alt + Down arrow Copy line up: Shift + alt + Up arrow Delete line: Ctrl + shift + K Plugin: Prettier Format document: Shift + alt + F

May 6, 2025 - 08:17
 0
My Development Favorite Commands Cheatsheet

CentOS 8

List any process listening to the given port: lsof -i:5000
To kill a process by ID: kill 12345

Nginx

Restart nginx server: service nginx restart

Python

Run python script in the background: nohup python3 /path/to/app.py &
Install packages based on requirements: pip3 install -r /path/to/requirements.txt

Visual Studio Code

Search Files: Command + shift + F

Copy line down: Shift + alt + Down arrow
Copy line up: Shift + alt + Up arrow

Delete line: Ctrl + shift + K

Plugin: Prettier
Format document: Shift + alt + F