CmdHub

q
Exit/quit command output view (e.g., systemctl status, less, more)
clear
Clear the terminal screen
pwd
Print working directory - show current location
history
Show command history
!!
Run the last command again
Ctrl + C
Interrupt/stop current command
Ctrl + L
Clear screen (alternative to 'clear' command)
git init
Initialize a new Git repository in the current directory
git add .
Stage all changes in the current directory for commit
git commit -m "Your message"
Create a new commit with the staged changes and a descriptive message
git remote add origin repository-url
Link your local repository to a remote GitHub repository
git push -u origin main
Push your commits to the remote repository and set up tracking
cd directory_path
Change the current directory to the specified path
dir
List all files and directories in the current directory
mkdir folder_name
Create a new directory with the specified name
type file.txt
Display the contents of a text file
del file.txt
Delete a file
cd directory_path
Change the current directory to the specified path
ls
List all files and directories in the current directory
mkdir folder_name
Create a new directory with the specified name
cat file.txt
Display the contents of a text file
rm file.txt
Delete a file
ssh root@145.223.99.106
Connect to your VPS using SSH
sudo apt update && sudo apt upgrade
Update system packages on Ubuntu/Debian
sudo systemctl status service_name
Check the status of a system service
sudo nano /path/to/file
Edit a file using nano text editor
sudo ufw status
Check firewall status on Ubuntu
htop
Monitor system resources in real-time
sudo reboot
Reboot the server