1. Configure a static Ubuntu IP address for the NICVi/etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.0.5 gateway 192.168.0.254 NETMA SK 255.255.255.0 Dns-nameservers 223.6.6.6
2. Modify the download sourceVi/etc/apt/sources.listapt-get Updateapt-get Upgradeapt-get Dist-upgrade
3. Shutdown/ RestartShutdown-h Nowreboot
4. Modify the HostsVi/etc/hosts
5. Restart the NICIfdown eth0 && ifup eth0
6. Modify Host nameVi/etc/hostname
7. Apt-get relatedApt-cache Search Packages Apt-cache Show package information about packages, such as description, size, version Apt-get install package installation Packages Apt-get Update update source apt- Get upgrade update installed packages Apt-get Dist-upgrade upgrade system
8. View the processPs-aux
9. Turn on the route forwarding functionVi/etc/sysctl.confnet.ipv4.ip_forward=1
10. Mount the discMkdir/mnt/cdrommount/dev/cdrom/mnt/cdrom
11. Delete Non-empty foldersRm-rf/home/dir
12. View all users in the systemCat/etc/passwdchen:x:1000:1000:chen,,,:/home/chen:/bin/bash User name: Password: uid:gid: User description: Home directory: Login Shell
Linux basic commands