Common simple LINUX command manual
Shutdown
Command | Description |
---|---|
shutdown | Shutdown after 1min |
shutdown -h 20 | Shutdown after 20mins |
shutdown -h 10:09 | Shutdown in 10:09 |
shutdown -c | Cancel the specified time shutdown |
shutdown -h now | Shutdown now |
init 0 | Shutdown now |
poweroff | Shutdown and cut power |
halt | Shutdown |
Reboot
Command | Description |
---|---|
reboot | Reboot now |
init 6 | Reboot now and keep data |
shutdown -r now | Reboot now |
shutdown -r 10:09 | reboot in 10:09 |
LogOut
Command | Description |
---|---|
logout | quit system |
APT software tools
Command | Description |
---|---|
sudo apt update | Updating package index |
sudo apt upgrade | Upgrading packages |
sudo apt full-upgrade | Full Upgrading |
sudo apt install package_name | Installing packages |
sudo apt install package1 package2 | Installing muti packages |
sudo apt remove package_name | Removing Packages |
sudo apt remove package1 package2 | Removing muti packages |
sudo apt purge package_name | Removing muti packages and file |
sudo apt autoremove | Remove the unneeded dependencies |
sudo apt clean | Clean cache |
sudo apt list | List all available packages |
sudo apt-get autoclean | Clean up the old software cache |
sudo apt list --installed | list only the installed packages |
sudo apt list --upgradeable | list of the upgradeable packages |
sudo apt search package_name | Searching Packages |
sudo apt show package_name | Retrieve information about a given package |
Continuously updated
This article is created by One and licensed under CC BY-NC-SA 4.0
Comment