Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Linux系統教程 >> Linux教程 >> 常用Linux命令總結

常用Linux命令總結

日期:2017/2/7 14:32:06      編輯:Linux教程
 

1、查看linux內核版本號

命令:uname -a

顯示: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、查看linux版本信息

命令:lsb_release -a

顯示: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-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final

3、查看ip地址信息

命令:ip addr

顯示:1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether xx:xx:xx:xx:xx:xxbrd ff:ff:ff:ff:ff:ff
inet 192.168.1.34/24 brd 192.168.1.255 scope global eth0
inet 192.168.1.63/32 scope global eth0
inet6 fe80::xxx:xxxx:xxxx:xxxx/64 scope link
valid_lft forever preferred_lft forever

5、檢查是否已安裝mysql

命令:rpm -qa|grep -i mysql

顯示:mysql-libs-5.1.71-1.el6.x86_64

說明已經安裝了mysql庫文件

6、卸載已安裝的mysql庫文件

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

顯示:無

7、  在linux shell上傳下載文件(CentOS)

安裝lrzsz:yum install lrzsz

上傳文件:rz

下載文件:sz 路徑名/文件名

顯示:無

Copyright © Windows教程網 All Rights Reserved