1. Open a terminal window.2. Type in the following commands, then hit Enter after each.wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{pri...
分类:
其他好文 时间:
2014-07-09 17:51:26
阅读次数:
272
开发中经常用到的Linux命令,慢慢汇总1,查看使用的Linux版本 lsb_release -a --可以列出所有版本信息.2,查看网络IP ifconfig3, 网络设置好之后,需要重启网络才能生效 service network restart4, 查询某个服务是否已经启动...
分类:
系统相关 时间:
2014-07-06 14:59:54
阅读次数:
258
一、下载国内比较稳定的yum源,我这里下载163的源同时我使用的是CentOS6.2的x86_64版本,所以下载的是CentOS6-Base-163.repo请根据,如下方法确认自己系统的版本[root@561~]#lsb_release-aLSBVersion::core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:..
分类:
其他好文 时间:
2014-06-29 21:14:10
阅读次数:
394
1)命令: lsb_release -a[root@localhost tmp]#
lsb_release -aLSB Version:
:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printin...
分类:
系统相关 时间:
2014-06-09 13:31:37
阅读次数:
526
有时候安装完自己的linux发行版系统(如ubuntu、centos、redhat、opensuse、……)时,把版本信息忽略了,又不想重启电脑,此时我们可以通过命令行方式来查看:
1.cat /etc/issue 2.lsb_release -a 其中lsb代表什么呢?LSB:Linux Stan...
分类:
系统相关 时间:
2014-06-02 17:26:49
阅读次数:
337
系统配置的yum源是163的镜像站,本来想用lsb_release命令查看一下系统的版本等信息,结果显示没有此命令,那就安装其相关软件包吧,用yum-yinstallredhat-lsb相依属性列出了40个软件包,本来没想安装这么多,愣了个神还没有按y键呢系统自己就莫名其妙又继续了,继续就继续吧,..
分类:
其他好文 时间:
2014-05-10 04:01:38
阅读次数:
649
#!/bin/bash#thisscriptisonlyforCentOS6#checktheOSplatform=`uname-i`if[$platform!="x86_64"];thenecho"thisscriptisonlyfor64bitOperatingSystem!"exit1fiecho"theplatformisok"version=`lsb_release-r|awk‘{printsubstr($2,1,1)}‘`if[$version!=6];thenecho"thisscriptiso..
分类:
系统相关 时间:
2014-05-03 14:51:00
阅读次数:
415