Ubuntu Common Command Quick Check Manual-collector Edition-full version

Source: Internet
Author: User

sudo apt-get install software name installation software command

sudo nautilus Open file (with root permission)

SU root switches to "root"

LS lists the current directory file (excluding hidden files)

Ls-a list current directory files (including hidden files)

Ls-l list the files in the current directory for more information

Cd.. Back to the top-level directory of the current directory

CD-Back to the same directory

CD ~ or CD back to the current user's host directory

mkdir directory name Create a directory

RmDir Empty directory name Delete an empty directory

RM FileName File name Delete a file or multiple files

RM-RF non-empty directory name delete everything under a non-empty directory

MV Path/Document/warp/file movement relative to the path of the file to the absolute path

MV FileName New name renamed in current directory

Find Road via-name "string" finds paths in the range of files and directories that meet string matches

Fdisk fdisk-l viewing system partition information

FDISK FDISK/DEV/SDB partition a new SCSI hard drive

Chown chown Root/home Change the owner of/home to the root user

CHGRP chgrp root/home Change the home/home group to the root group

Useradd Create a new user

Usermod-l new username old user name renamed to User

Userdel–r User name Delete user everything

Groupadd group name to create a new group

PASSWD User name create password for user

passwd-d User name Delete user password can also login

Passwd-s User name Inquiry account password

TAR-C Create Package –x release Package-v Display command procedure –z represents a compressed package

TAR–CVF benet.tar/home/benet Pack The/home/benet directory

TAR–ZCVF BENET.TAR.GZ/MNT Package and compress the directory

TAR–ZXVF benet.tar.gz Compressed Package file decompression and recovery

TAR–JXVF benet.tar.bz2 Decompression

Make compilation

Make install installs the compiled source package

Reboot Init 6 Restart Linux system

Halt Init 0 shutdown–h now shut down the Linux system

Uname-a Viewing the kernel version

Cat/etc/issue View Ubuntu version

LSUSB Viewing USB devices

sudo ethtool eth0 view NIC status

Cat/proc/cpuinfo Viewing CPU information

LSHW Viewing current hardware information

sudo fdisk-l viewing disk information

Df-h viewing the remaining space on the hard disk

Free-m View Current Memory usage

PS-A See which processes are currently in progress

Kill process Number (the number of the first column in ps-a) or killall process name (kills a process)

Kill-9 process number forces a process to be killed

Common APT Commands:

Apt-cache Search Package

Apt-cache Show package for information about packages, such as description, size, version, etc.

sudo apt-get install package

sudo apt-get Install package--Reinstall reinstall packages

sudo apt-get-f install fix "-F =–fix-missing"

sudo apt-get Remove Package

sudo apt-get Remove Package--purge delete packages, including deletion of configuration files, etc.

sudo apt-get update source

sudo apt-get upgrade update installed packages

sudo apt-get Dist-upgrade upgrade system

sudo apt-get dselect-upgrade using Dselect upgrade

Apt-cache depends package learn about using dependencies

Apt-cache Rdepends package is to see which packages are dependent on

sudo apt-get BUILD-DEP Package Installation-related compilation environment

Apt-get Source Package Downloads The source code for the bundle

sudo apt-get clean && sudo apt-get autoclean cleanup of useless packages

sudo apt-get check to see if there is a corrupted dependency

Clean up all software caches (that is, the Deb packets that are cached in the/var/cache/apt/archives directory)

sudo apt-get clean

Remove orphaned software that is no longer used by the system

sudo apt-get autoremove

--------------------------------------------------------------------------------------------------------------- -------------------------

Ubuntu Common Command Quick Check Manual-collector Edition-full version

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.