Common Linux Command Summary

  

1. View Linux Kernel Version Number

Command: uname -a

Display: Linux localhost 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

2, view linux version information

command: lsb_release -a

display: LSB Version: :base -4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributor ID: CentOSDescription: CentOS release 6.5 (Final) Release: 6.5Codename: Final

3. View ip address information

Command: ip addr

Display: 1: lo: <LOOPBACK, UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWNlink/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host loinet6 ::1/128 scope hostvalid_lft Forever preferred_lft forever2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000link/ether xx:xx:xx:xx:xx:xxbrd ff:ff:ff:ff:ff:ffinet 192.168. 1.34/24 brd 192.168.1.255 scop e global eth0inet 192.168.1.63/32 scope global eth0inet6 fe80::xxx:xxxx:xxxx:xxxx/64 scope linkvalid_lft forever preferred_lft forever

5,Check if mysql is installed

Command: rpm -qa| Grep -i mysql

Display: mysql-libs-5.1.71-1.el6.x86_64

Note that the mysql library file has been installed

6, Uninstall Installed mysql library file

Command: rpm -e mysql-libs-5.1.71-1.el6.x86_64 –nodeps

Display: None

7, upload and download files in linux shell (CentOS)

Install lrzsz:yum install lrzsz

Upload file:rz

Download file: sz pathname/filename< Br>

Show: None
zh-CN"],null,[0.97708416],zh-CN"]]]

Copyright © Windows knowledge All Rights Reserved