Ubuntu Use notes

Source: Internet
Author: User

1. When you first log in to Ubuntu, there is no root password setting, use sudo su for normal users-switch to root, do not need a password, and then passwd change the root password.


2. default SSH is not installed, apt-get install SSH installation ssh, then/etc/init.d/ssh start.


3. apt-get-u upgrade, update all packages,-u lists update details.

Apt-get Dist-upgrade, upgrade the system to the new version.

Apt-get Install a new package PackageName.

Apt-get Remove PackageName, uninstall an installed package (keep the configuration document)

Apt-get Remove--purge packagename, uninstall an installed package (delete configuration document)

Apt-get autoremove PackageName, delete the package and its dependent packages.

Apt-get autoremove--purge PackageName, delete the package and its dependent software + configuration file.

Apt-get Autoclean,apt will back up the installed or uninstalled software on the hard drive, so if space is needed, use this command to empty the software backup.

Dpkg-s file, this document belongs to which package is installed.

Dpkg-l package, which lists any documents in the packages.

Dpkg-l, list all installed packages.

Apt-file search filename, to find a package for a specific document (not necessarily installed), the Apt-file package needs to be installed first.


4. Unzip the file.tar.xz file, xz-d file.tar.xz First, then the file becomes File.tar, then the tar xvf File.tar is available.

XZ is a compressed file format that uses Lzma SDK compression, which is less than 30% smaller than the gzip compressed file (. gz or. tgz), compared to. bz2 small 15%.



This article is from the "Alex Blog" blog, make sure to keep this source http://houjun19830610.blog.51cto.com/9269760/1613870

Ubuntu Use notes

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.