/dev/sda: 10485760
/dev/sdb: 52428800
/dev/sdc: 52428800
total: 115343360 blocks
man sfdisk
-d Dump the partitions of a device in a format useful as input to sfdisk. For example,
% sfdisk -d /dev/hda > hda.out
% sfdisk /dev/hda < hda.out
will correct the bad last extended partition that the OS/2 fdisk creates.
[root@rhel5db1 ~]#
[root@rhel5db1 ~]#
[root@rhel5db1 ~]#
[root@rhel5db1 ~]# hdparm -t /dev/sdb
/dev/sdb:
Timing buffered disk reads: 526 MB in 3.00 seconds = 175.17 MB/sec
[root@rhel5db1 ~]# hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 530 MB in 3.01 seconds = 176.08 MB/sec
[root@rhel5db1 ~]#
-t perform device read timings
tcpdump -n
[root@rhel5db1 sysconfig]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Release: 5.8
Codename: Tikanga
ps -axu ##查看每个进程的cpu 和memory的利用率。
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 10368 692 ? Ss 2013 0:06 init [5]
root 2 0.0 0.0 0 0 ? S< 2013 1:43 [migration/0]
root 3 0.0 0.0 0 0 ? SN 2013 0:01 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 2013 1:16 [migration/1]
[root@rhel5db1 home]# blkid ### 用来查看所有设备的标签和文件系统类型。
/dev/mapper/VolGroup00-LogVol01: TYPE="swap"
/dev/mapper/VolGroup00-LogVol00: UUID="8f4a1b68-4199-41d7-a972-22fd0a2668bf" TYPE="ext3"
/dev/sda1: LABEL="/boot" UUID="5e13425e-0cd6-44be-b8e1-9bfdcefa96e8" TYPE="ext3"
/dev/VolGroup00/LogVol00: UUID="8f4a1b68-4199-41d7-a972-22fd0a2668bf" TYPE="ext3"
/dev/VolGroup00/LogVol01: TYPE="swap"
/dev/sda3: TYPE="reiserfs"
/dev/vg_oracle/lv_ora_prod: UUID="b1025e7c-05d9-429b-a4e8-26b44d8365cd" TYPE="ext3"
/dev/mapper/vg_oracle-lv_ora_prod: UUID="b1025e7c-05d9-429b-a4e8-26b44d8365cd" SEC_TYPE="ext2" TYPE="ext3"
/dev/hdc: LABEL="RHEL/5.8 x86_64 DVD" TYPE="iso9660"
/dev/cdrom: LABEL="RHEL/5.8 x86_64 DVD" TYPE="iso9660"
/dev/sdc1: LABEL="DISK1" TYPE="oracleasm"
ldd命令用于判断某个可执行的 binary 档案含有什么动态函式库。
[julia@oc2365548284 usr]$ which su
/bin/su
[julia@oc2365548284 usr]$ ldd /bin/su
linux-vdso.so.1 => (0x00007fff8d365000)
libpam.so.0 => /lib64/libpam.so.0 (0x00007fee81291000)
libpam_misc.so.0 => /lib64/libpam_misc.so.0 (0x00007fee8108d000)
libc.so.6 => /lib64/libc.so.6 (0x00007fee80cf9000)
libaudit.so.1 => /lib64/libaudit.so.1 (0x00007fee80add000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fee808d9000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fee806a1000)
/lib64/ld-linux-x86-64.so.2 (0x0000003a14e00000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fee80435000)
[julia@oc2365548284 usr]$
安装启动引导程序
grub
root (hd0,0)
setup (hd0)
root (hd1,0)
setup (hd0)
增强grub的引导文件
vi /root/grub/grub.conf