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