First day Linux basic operations

Source: Internet
Author: User

How to switch the login interface

Redhet Linux system: CTRL+ALT+FN(1~6) The first is a graphical interface

Ubuntu Linux system: XTRL+ALT+FN (1~7) seventh is a graphical interface


Modify Host Name

Hostnamectl Set-hostname newname


Querying System Information

Hostnamectl status


Network configuration

ifconfig eth0 IP address netmask subnet mask


Query code



Add, remove, and upgrade packages

Rpm-qa querying all packages that have been installed

RPM-QL <package> listing files in package packages

Rpm-ivh<package fille> installs RPM-formatted packages that can be installed in multiple

Yum-qi <package> Show the release information of a package

Rpm-e<package> Uninstalling a Package

Rpm-pl<package fille> query rpm package files

RPM--REBUILDDB Rebuild RPM Management Library

Yum search<keywords> search for keywords packages in the installation source, keywords keywords

Yum install<keywords> downloads and installs packages from the installation source server and can install multiple

Yum-y ' vim-* ' does not confirm that all packages that begin with "vim-" are installed directly

Yum install <packname> Auto Find and install contains the specified file package, Packname path name

Yum Remove <package> Uninstall software

Yum list lists all installed and available packages

Yum Info <package> Show package information

Yum Group list lists all software sets

Yum Upate packages already installed in the system

Yum Group Info <group> View information for a software set

Yum Group install <group> installation of a software set

Yum Group Remove <group> uninstall a software set


A simple File View

Noarch Arch Platform, independent of hardware architecture, Universal

MYPACKAGE-1.1-2RH.686.RPM MyPackage is the package name, 1.1 is the software version number, 2 is the release number, the RH represents the Redhet system, and the i686 represents the platform


This article is from the "Prodigal Love" blog, please be sure to keep this source http://xuzijian.blog.51cto.com/10675714/1697815

First day Linux basic operations

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.