ls [选项] [目录]cd [目录]pwdmkdir [目录名]rmdir [目录名]rm [选项] [文件/目录]cp [选项] [源文件] [目标文件]mv [源文件] [目标文件]touch [文件名]cat [文件名]more [文件名]
less [文件名]head [文件名]
tail [文件名]find [路径] [选项]grep [选项] [模式] [文件]uname [选项]top
htopps [选项]ifconfigsudo nano /etc/network/interfacesnetstatssh-keygensudo apt-get install [软件包名]sudo apt-get remove [软件包名]sudo apt-get updatesudo apt-get install -y [软件包名]sudo apt-get remove --auto-remove [软件包名]sudo adduser [用户名]sudo userdel [用户名]sudo passwd [用户名]sudo groupadd [组名]sudo groupdel [组名]sudo usermod -aG [组名] [用户名]groups [用户名]getent group [组名]df -hsudo apt-get cleansudo rebootsudo shutdown -h nowsudo systemctl start apache2sudo systemctl stop apache2sudo systemctl restart apache2sudo systemctl status apache2sudo systemctl start nginxsudo systemctl stop nginxsudo systemctl restart nginxsudo systemctl status nginxsudo apt-get install gitsudo git init [仓库路径]sudo git clone [仓库URL]sudo git add [文件名]sudo git commit -m "[提交信息]"sudo git push origin [分支名]historyCtrl + Rclearman [命令名]lsb_release -auname -a以上是Ubuntu服务器管理中必知的50个核心命令详解,希望对您有所帮助。