Transcription of Ubuntu Server CLI pro tips
{{id}} {{{paragraph}}}
Ubuntu Server CLI pro tipsNetworkingGet the IP address of all interfacesnetworkctl statusDisplay all IP addresses of the hosthostname -IEnable/disable interfaceip link set <interface> upip link set <interface> downManage firewall rulesenable firewall: sudo ufw enablelist rules: sudo ufw statusallow port: sudo ufw allow <port>deny port: sudo ufw deny <port>Connect remotely through SSHssh <user>@<host IP>Automatically detect and ban abusive IP addressessudo apt install fail2banShow banned IP addressessudo fail2ban-client statussudo fail2ban-client status <jail>Get the support status for installed packagesubuntu-support-statusEnable kernel live patchingsudo snap install canonical-livepatchsudo canonical-livepatch enable <token>Visit to get a free token for up to 3 LTSU buntu LTSU buntu LTSU buntu LTSH ardware and maintenance updatesMaintenance updates201420152016201720182019202120222 023202420252020202620272028202920302031 Interim releaseExtended security maintenance for customersUbuntu release cadenceFilesList fileslsList files with permissions and datesls -alCommon file
Ubuntu Server CLI pro tips Networking Get the IP address of all interfaces networkctl status Display all IP addresses of the host hostname -I Enable/disable interface ip link set <interface> up ip link set <interface> down Manage firewall rules enable firewall: sudo ufw enable
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}