初學linux,從網上找了linux入門,都是一大批命令行的輸入,一看就無味了,無法只能經過本身摸索,經過須要用查看總結一個命令行大做用積累拉。linux
Linux是多用戶系統,爲了加強系統的安全性能,避免誤操做對系統形成害,通常要求在Linux下的用戶進行常規操做時是以普通用戶(而不是像 Windows那樣通常都使用超級用戶)登陸的,系統對普通用戶的權限進行了限制。一些Linux發行版默認狀況下不容許使用超級用戶登陸。
但 是在某些狀況下,普通用戶須要執行一些只有超級用戶纔可使用的命令,爲了不不少人都擁用超級用戶密碼(固然對於單用戶不存在這個問題),Linux下 有一個SUDO命令,使得普通用戶可以行使超級用戶的部份權利,而這些可使用的權利是被超級用戶或者系統(好比Unbuntu)預設好的。安全
The apt-get command is a powerful command-line tool used to work with Ubuntu's Advanced Packaging Tool (APT) performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system. 網絡
apt-get是系統下安裝軟件的一個命令,它的功能很強大,能夠經過網絡或其它介質進行安裝、卸載軟件等操做。工具
Some examples of popular uses for the apt-get utility: 性能
Install a Package: Installation of packages using the apt-get tool is quite simple. For example, to install the network scanner nmap, type the following:ui
sudo apt-get install nmap
Remove a Package: Removal of a package or packages is also a straightforward and simple process. To remove the nmap package installed in the previous example, type the following:spa
sudo apt-get remove nmap
Multiple Packages: You may specify multiple packages to be installed or removed, separated by spaces. 命令行 |
Also, adding the --purge options to apt-get remove will remove the package configuration files as well. This may or may not be the desired effect so use with caution. 日誌
Update the Package Index: The APT package index is essentially a database of available packages from the repositories defined in the /etc/apt/sources.list
file. To update the local package index with the latest changes made in repositories, type the following:code
sudo apt-get update
Upgrade Packages: Over time, updated versions of packages currently installed on your computer may become available from the package repositories (for example security updates). To upgrade your system, first update your package index as outlined above, and then type:
sudo apt-get upgrade