Analysis of Common Ubuntu APT Command Parameters

Source: Internet
Author: User

Common commands and parameters of Ubuntu APT are described in detail, so that you can understand how to use the parameters of Ubuntu APT commands.

Ubuntu is a fully Linux-based operating system that is freely available and provides community and professional support. Common Ubuntu APT command parameter www.2cto.com: apt-cache search package apt-cache show package to obtain package information, for example, sudo apt-get install package installation package sudo apt-get install package--reinstall re-installation package sudo apt-get-f install fix installation "-f = -- fix -missing "sudo apt-get remove package Delete package sudo apt-get remove package-purge Delete package, including deleting configuration files and other sudo apt-get update sources sudo apt-get upgrade update installed packages sudo apt-get dist-upgrade systems Sudo apt-get dselect-upgrade apt-cache depends package using dselect learn how to use apt-cache rdepends package dependent on www.2cto.com to view which packages depend on sudo apt-get build-dep package install the relevant compilation environment apt-get source package to download the source code sudo apt-get clean & sudo apt-get autoclean of the useless package sudo apt-get check to check whether the package is damaged where: 1. If SUDO exists, administrator privileges are required! 2 In UBUNTU, "-" is used for short parameters after commands, for long parameters, "--" leads to 3 Command help information, which can be viewed by man or by command-H (-- help) method 4: exit the command in the MAN command. Press "q !! The meaning of the Ubuntu APT option is sudo-h Help to list usage methods and exit. Sudo-V Version displays the Version information and exits. Sudo-l List lists the commands that can be executed by the current user. This option can only be used by users in sudoers. Sudo-u username | # uid User executes commands as a specified User. The following users are not only root users, but also usernames or # UIDs. Www.2cto.com sudo-k Kill clears the time on the "admission ticket", and enter the password next time you use sudo. Sudo-K Sure kill is similar to-k, but it also needs to tear up the "Admission volume", that is, delete the timestamp file. Sudo-B command Background executes the specified command in the Background. Sudo-p prompt command Prompt can change the prompt message for asking the password, where % u is replaced by the user account name, and % h displays the host name. Very user-friendly design. Sudo-e file Edit is equivalent to sudoedit, instead of executing a command, but modifying a file.
This article is from the webmaster jiayuan network.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.