helpful_ubuntu_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
helpful_ubuntu_commands [2025/05/30 13:30] – mike | helpful_ubuntu_commands [2025/06/14 06:35] (current) – mike | ||
---|---|---|---|
Line 10: | Line 10: | ||
=== List processes and the ports they are listening on === | === List processes and the ports they are listening on === | ||
netstat -tulpn | grep LISTEN | netstat -tulpn | grep LISTEN | ||
+ | or | ||
+ | ss -tulpn | grep LISTEN | ||
| | ||
=== Reload systemd manager configuration after changes made === | === Reload systemd manager configuration after changes made === | ||
Line 94: | Line 96: | ||
Then proceed to format the new drive, i.e. **mkfs -t ext4 /dev/sdb1** | Then proceed to format the new drive, i.e. **mkfs -t ext4 /dev/sdb1** | ||
- | === Changing the server' | + | ==== Changing the server' |
sudo vi / | sudo vi / | ||
find the existing IP and change it to the desired IP; ' | find the existing IP and change it to the desired IP; ' | ||
sudo netplan apply | sudo netplan apply | ||
| | ||
- | === Changing the server' | + | ==== Changing the server' |
hostnamectl set-hostname [new host name] | hostnamectl set-hostname [new host name] | ||
| | ||
helpful_ubuntu_commands.1748637056.txt.gz · Last modified: by mike