查看系统内核版本命令:
uname -a
more /etc/*release more /etc/redhat-release
more /proc/version
# uname -a
Linux localhost.localdomain 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18 :00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
# more /etc/*release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2 )
# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2 )
# more /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 2 )
Kernel \r on an \m
# more /proc/version
Linux version 2.6.9-22.ELsmp(bhcompile@crowe.devel.redhat.com)(gcc version 3.4.4 20050721(Red Hat 3.4.4-2 )) #1 SMP Mon Se
p 19 18 :00:54 EDT 2005
查看cpu 信息
grep "model name" /proc/cpuinfo
# grep "model name" /proc/cpuinfo
model name: Dual-Core AMD Opteron(tm) Processor 2216
model name: Dual-Core AMD Opteron(tm) Processor 2216
model name: Dual-Core AMD Opteron(tm) Processor 2216
model name: Dual-Core AMD Opteron(tm) Processor 2216
# more /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family: 15
a
查看cpu 的位数
getconf LONG_BIT
# getconf LONG_BIT
# ls /
bin dev home lib lost+found misc opt root selinux sys tftpboot updateusr
boot etc initrd lib64 media mnt proc sbin srv test tmp updates var
要是在root下ls有lib64 文件夹说明系统64
查看libc、gcc 版本
ldd /sbin/mii-tool
rpm -qa | grep glibc
gcc –version
# ldd /sbin/mii-tool
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a9566c000)
/lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
# rpm -qa | grep glibc
glibc-2.3.4-2.13
# gcc ——version
gcc (GCC ) 3.4.4 20050721 (Red Hat 3.4.4-2 )
Copyright (C ) 2004 Free Software Foundation, Inc.
This is free software ; see the source for copying conditions. Thereis NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE.
查看内存信息
more /proc/meminfo
grep MemTotal /proc/meminfo
# more /proc/meminfo
Hugepagesize: 2048 kB
# grep MemTotal /proc/meminfo
MemTotal: 4045176 kB
#
=======================================
引:点击任务栏左下角的图标,在弹出的菜单中选择“系统设置--日期&时间”,进入“日期/时间属性”窗口进行修改。
一、文本模式下修改
命令及参数选项:date -s
示例如下:
#date -s 04/11/2008 ------将系统时间设定成2008年4月11日
#date -s 22:24:30 ------将系统时间设定成22点24分30秒
uname -a
more /etc/*release more /etc/redhat-release
more /proc/version
# uname -a
Linux localhost.localdomain 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18 :00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
# more /etc/*release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2 )
# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2 )
# more /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 2 )
Kernel \r on an \m
# more /proc/version
Linux version 2.6.9-22.ELsmp(bhcompile@crowe.devel.redhat.com)(gcc version 3.4.4 20050721(Red Hat 3.4.4-2 )) #1 SMP Mon Se
p 19 18 :00:54 EDT 2005
查看cpu 信息
grep "model name" /proc/cpuinfo
# grep "model name" /proc/cpuinfo
model name: Dual-Core AMD Opteron(tm) Processor 2216
model name: Dual-Core AMD Opteron(tm) Processor 2216
model name: Dual-Core AMD Opteron(tm) Processor 2216
model name: Dual-Core AMD Opteron(tm) Processor 2216
# more /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family: 15
a
查看cpu 的位数
getconf LONG_BIT
# getconf LONG_BIT
# ls /
bin dev home lib lost+found misc opt root selinux sys tftpboot updateusr
boot etc initrd lib64 media mnt proc sbin srv test tmp updates var
要是在root下ls有lib64 文件夹说明系统64
查看libc、gcc 版本
ldd /sbin/mii-tool
rpm -qa | grep glibc
gcc –version
# ldd /sbin/mii-tool
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a9566c000)
/lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
# rpm -qa | grep glibc
glibc-2.3.4-2.13
# gcc ——version
gcc (GCC ) 3.4.4 20050721 (Red Hat 3.4.4-2 )
Copyright (C ) 2004 Free Software Foundation, Inc.
This is free software ; see the source for copying conditions. Thereis NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE.
查看内存信息
more /proc/meminfo
grep MemTotal /proc/meminfo
# more /proc/meminfo
Hugepagesize: 2048 kB
# grep MemTotal /proc/meminfo
MemTotal: 4045176 kB
#
=======================================
引:点击任务栏左下角的图标,在弹出的菜单中选择“系统设置--日期&时间”,进入“日期/时间属性”窗口进行修改。
一、文本模式下修改
命令及参数选项:date -s
示例如下:
#date -s 04/11/2008 ------将系统时间设定成2008年4月11日
#date -s 22:24:30 ------将系统时间设定成22点24分30秒