文件和目录

文件类型

[oracle@mylinuxdbserver1 ~]$ ll

total 24

-rw-r--r-- 1 oracle oinstall   68 Feb 17 00:01 dd.txt

drwxr-xr-x 2 oracle oinstall 4096 Apr 30  2010 Desktop

[root@mylinuxdbserver1 ~]# service kudzu start

Checking for hardware changes   OK  ]

[root@mylinuxdbserver1 ~]#

[root@mylinuxdbserver1 ~]# ll /dev

total 0

crw------- 1 root root    10, 175 Feb 16 18:36 agpgart

lrwxrwxrwx 1 root root          3 Feb 16 18:36 cdrom -> hdc

brw-rw---- 1 root floppy   2,   0 Feb 16 18:37 fd0

srwxrwxrwx 1 root root          0 Feb 16 18:38 gpmctl

prw------- 1 root root          0 Feb 16 18:40 initctl

[root@mylinuxdbserver1 ~]#

cat /proc/cpuinfo

[root@mylinuxdbserver1 ~]# cat /proc/cpuinfo

processor       : 0

vendor_id       : GenuineIntel

cpu family      : 6

model           : 15

model name      : Intel(R) Core(TM)2 Duo CPU     T7100  @ 1.80GHz

stepping        : 8

cpu MHz         : 1795.312

cache size      : 2048 KB

fdiv_bug        : no

hlt_bug         : no

f00f_bug        : no

coma_bug        : no

fpu             : yes

fpu_exception   : yes

cpuid level     : 10

wp              : yes

flags           : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx constant_tsc up pni ds_cpl

bogomips        : 4508.01

 

[root@mylinuxdbserver1 ~]#

cat /proc/dma

[root@mylinuxdbserver1 ~]# cat /proc/dma

 4: cascade

[root@mylinuxdbserver1 ~]#

cat /proc/filesystems

[root@mylinuxdbserver1 ~]# cat /proc/filesystems

nodev   sysfs

nodev   rootfs

nodev   bdev

nodev   proc

nodev   cpuset

nodev   binfmt_misc

nodev   debugfs

nodev   securityfs

nodev   sockfs

nodev   usbfs

nodev   pipefs

nodev   futexfs

nodev   tmpfs

nodev   inotifyfs

nodev   eventpollfs

nodev   devpts

        ext2

nodev   ramfs

        iso9660

nodev   mqueue

        ext3

nodev   rpc_pipefs

nodev   autofs

[root@mylinuxdbserver1 ~]#

cat /proc/interrupts

[root@mylinuxdbserver1 ~]# cat /proc/interrupts

           CPU0

  1:         10        Phys-irq  i8042

  6:          7        Phys-irq  floppy

  7:          0        Phys-irq  parport0

  8:          1        Phys-irq  rtc

  9:          0        Phys-irq  acpi

 12:        106        Phys-irq  i8042

 15:     453598        Phys-irq  ide1

 16:          0        Phys-irq  uhci_hcd:usb1

 17:     182304        Phys-irq  ioc0

 18:       9949        Phys-irq  peth0

256:    3203502     Dynamic-irq  timer0

257:          0     Dynamic-irq  resched0

258:          0     Dynamic-irq  callfunc0

259:         85     Dynamic-irq  xenbus

260:          0     Dynamic-irq  console

NMI:          0

LOC:          0

ERR:          0

MIS:          0

[root@mylinuxdbserver1 ~]#

cat /proc/ioports

[root@mylinuxdbserver1 ~]# cat /proc/ioports

0000-001f : dma1

0020-0021 : pic1

0040-0043 : timer0

0050-0053 : timer1

0060-006f : keyboard

0070-0077 : rtc

0080-008f : dma page reg

00a0-00a1 : pic2

00c0-00df : dma2

00f0-00ff : fpu

0170-0177 : ide1

0376-0376 : ide1

0378-037a : parport0

03c0-03df : vga+

03f2-03f5 : floppy

03f7-03f7 : floppy DIR

0cf8-0cff : PCI conf1

1000-103f : 0000:00:07.3

  1000-103f : motherboard

    1000-1003 : ACPI PM1a_EVT_BLK

    1004-1005 : ACPI PM1a_CNT_BLK

    1008-100b : ACPI PM_TMR

    100c-100f : ACPI GPE0_BLK

    1010-1015 : ACPI CPU throttle

1040-104f : 0000:00:07.3

  1040-104f : motherboard

1050-105f : 0000:00:07.1

  1058-105f : ide1

1060-107f : 0000:00:07.2

  1060-107f : uhci_hcd

1080-10ff : 0000:00:10.0

1400-147f : 0000:00:11.0

  1400-141f : pcnet32_probe_pci

1480-148f : 0000:00:0f.0

cat /proc/meminfo

[root@mylinuxdbserver1 ~]# cat /proc/meminfo

MemTotal:       964608 kB

MemFree:         47528 kB

Buffers:        105768 kB

Cached:         439888 kB

SwapCached:      22168 kB

Active:         601716 kB

Inactive:       249648 kB

HighTotal:      226508 kB

HighFree:        13064 kB

LowTotal:       738100 kB

LowFree:         34464 kB

SwapTotal:     2031608 kB

SwapFree:      2009440 kB

Dirty:             188 kB

Writeback:           0 kB

AnonPages:      283560 kB

Mapped:         195852 kB

Slab:            29160 kB

PageTables:      11828 kB

NFS_Unstable:        0 kB

Bounce:              0 kB

CommitLimit:   2513912 kB

Committed_AS:  2154900 kB

VmallocTotal:   114680 kB

VmallocUsed:      4204 kB

VmallocChunk:   110388 kB

cat /proc/version

[root@mylinuxdbserver1 ~]# cat /proc/version

Linux version 2.6.18-92.el5xen (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Tue Apr 29 13:45:57 EDT 2008

dmidecode

[root@mylinuxdbserver1 ~]# dmidecode | grep -i 'serial number'

        Serial Number: VMware-56 4d b3 54 5e 46 8d 75-53 98 8c b4 b4 d1 82 b9

        Serial Number: None

        Serial Number: None

        Serial Number: Not Specified

        Serial Number: Not Specified

        Serial Number: Not Specified

        Serial Number: Not Specified

        Serial Number: Not Specified

        Serial Number: Not Specified

        Serial Number: Not Specified

        Serial Number: Not Specified

[root@mylinuxdbserver1 ~]#

fdisk

[root@mylinuxdbserver1 ~]# fdisk -l

 

Disk /dev/sda: 19.3 GB, 19327352832 bytes

255 heads, 63 sectors/track, 2349 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          13      104391   83  Linux

/dev/sda2              14        2349    18763920   8e  Linux LVM

[root@mylinuxdbserver1 ~]#

df

[root@mylinuxdbserver1 ~]# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

                       16G   11G  3.8G  75% /

/dev/sda1              99M   13M   81M  14% /boot

tmpfs                 471M     0  471M   0% /dev/shm

[root@mylinuxdbserver1 ~]#

du

[root@mylinuxdbserver1 ~]# du -h

76K     ./.gconfd

8.0K    ./.config/gtk-2.0

12K     ./.config

4.0K    ./.gnome2_private

20K     ./.vnc

cat /proc/bus/input/devices

[root@mylinuxdbserver1 ~]# cat /proc/bus/input/devices

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41

N: Name="AT Translated Set 2 keyboard"

P: Phys=isa0060/serio0/input0

S: Sysfs=/class/input/input0

H: Handlers=kbd event0

B: EV=120013

B: KEY=4 2000000 3802078 f840d001 feffffdf ffefffff ffffffff fffffffe

B: MSC=10

B: LED=7

 

I: Bus=0011 Vendor=0002 Product=0005 Version=0000

N: Name="ImPS/2 Generic Wheel Mouse"

P: Phys=isa0060/serio1/input0

S: Sysfs=/class/input/input1

H: Handlers=mouse0 event1

B: EV=7

B: KEY=70000 0 0 0 0 0 0 0 0

B: REL=103

 

I: Bus=0010 Vendor=001f Product=0001 Version=0100

N: Name="PC Speaker"

P: Phys=isa0061/input0

S: Sysfs=/class/input/input2

H: Handlers=kbd event2

B: EV=40001

B: SND=6

cat /proc/bus/usb/devices

[root@mylinuxdbserver1 ~]# cat /proc/bus/usb/devices

 

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2

B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0

D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=0000 ProdID=0000 Rev= 2.06

S:  Manufacturer=Linux 2.6.18-92.el5xen uhci_hcd

S:  Product=UHCI Host Controller

S:  SerialNumber=0000:00:07.2

C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA

I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

[root@mylinuxdbserver1 ~]#

lspci |grep -i 'VGA'

[root@mylinuxdbserver1 ~]# lspci |grep -i 'VGA'

00:0f.0 VGA compatible controller: VMware Inc Abstract SVGA II Adapter

[root@mylinuxdbserver1 ~]#

硬连接

[root@mylinuxdbserver1 link]# ll

total 4

-rw-r--r-- 1 root root 6 Feb 17 09:08 a.txt

[root@mylinuxdbserver1 link]# cat a.txt

hello

[root@mylinuxdbserver1 link]# ln a.txt b.txt

[root@mylinuxdbserver1 link]# ll

total 8

-rw-r--r-- 2 root root 6 Feb 17 09:08 a.txt

-rw-r--r-- 2 root root 6 Feb 17 09:08 b.txt

[root@mylinuxdbserver1 link]# echo world >> a.txt

[root@mylinuxdbserver1 link]# cat b.txt

hello

world

[root@mylinuxdbserver1 link]# rm -rf a.txt

[root@mylinuxdbserver1 link]# ll

total 4

-rw-r--r-- 1 root root 12 Feb 17 09:16 b.txt

[root@mylinuxdbserver1 link]#

软连接

[root@mylinuxdbserver1 link]# echo hello > a.txt

[root@mylinuxdbserver1 link]# ll

total 4

-rw-r--r-- 1 root root 6 Feb 17 09:18 a.txt

[root@mylinuxdbserver1 link]# ln -s a.txt b.txt

[root@mylinuxdbserver1 link]# ll

total 4

-rw-r--r-- 1 root root 6 Feb 17 09:18 a.txt

lrwxrwxrwx 1 root root 5 Feb 17 09:18 b.txt -> a.txt

[root@mylinuxdbserver1 link]# cat b.txt

hello

[root@mylinuxdbserver1 link]# rm -rf a.txt

[root@mylinuxdbserver1 link]# ll

total 0

lrwxrwxrwx 1 root root 5 Feb 17 09:18 b.txt -> a.txt

[root@mylinuxdbserver1 link]# cat b.txt

cat: b.txt: No such file or directory

[root@mylinuxdbserver1 link]#

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/95429/viewspace-668907/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/95429/viewspace-668907/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值