Git / Network Cheat Sheet
Git Configuration
# Install Git
sudo apt install git
# Configure user
git config --global user.email "name.surname@gmail.com"
git config --global user.name "Name Surname"
Git Push
# Push and set upstream branch
git push --set-upstream origin master --no-verify
Network Commands
Check Listening Ports
# Show listening ports
netstat -natp | grep -i listen
Verify Specific Port Usage
# Check processes using a specific port (example: 90)
sudo netstat -putan | grep 90
# Example for Oracle DB port (1521)
netstat anp | grep 1521
Install Network Tools
apt update && apt install -y net-tools
apt-get update && apt-get install -y iputils-ping
Verify Hostname
cat /etc/hosts | grep LXRT2-MACHINE-NAME
Note: net-tools provides utilities such as netstat, while iputils-ping installs the ping command.
SSH Key Setup
Generate SSH Key
ssh-keygen -t ed25519 -C "your_email@example.com"
Start SSH Agent
eval "$(ssh-agent -s)"
Add SSH Key to Agent
ssh-add ~/.ssh/id_ed25519
Show Public Key
cat ~/.ssh/id_ed25519.pub
Copy SSH Key from Windows Home Directory
cp -r /mnt/c/Users/folder/.ssh ~/
chmod 600 ~/.ssh/id_ed25519
Environment Variables
# Edit profile
sudo vi ~/.profile
# Java environment variables
export JAVA_HOME=/opt/jdk-21.0.1
export PATH=$PATH:$JAVA_HOME/bin

Use the share button below if you liked it.
It makes me smile, when I see it.