悠悠秦淮

[2008年2月22日星期五]

RHCE笔记整理-RH033.Unit3--Filesystem

0 评论

Linux File Hierarchy Concepts

Some Important Directories

The home directory

/root /home/username

The bin directories

/bin,/user/bin,/usr/local/bin 常用执行文件

/sbin, /user/sbin, /usr/local/sbin 系统管理可执行文件

Foreign filesystem mountpoints

/mnt amd /media

3.Other Important Directories

/etc --system config files

/tmp

/boot --kernel and bootloader

/dev --device

/usr --Programs

Lost+found --遗失的片段

/var --存放经常变动的文件,如:log,email

/srv --存放目前所有和server有关的服务

/proc --反应kernel的环境,是虚拟的目录,不占用任何磁盘空间

The lib directories

/lib,/usr/lib,/usr/local/lib

Current Working Directory (CWD)

Usage: pwd

5. File and Directory Names (文件命名规则)

Less than 255 characters

all characters are valid,except the “/”,若用空格等特殊字符作为文件名,必须用引号把这个字符括起来

Names are case-sensitive(大小写是敏感的)例如:Mail,mail mAil,是不同的文件

6. Absolute Pathnames (绝对路径)

Begin with a slash(/)

Complete “road map” to file location
//为文件位置作指向

Can be used anytime you wish to specify a file name

7. Relative Pathname

Don't begin with a slash(/)

specify location relative to your current working directory

Can be used as a thort way to specify a file

8. Change Directory

command: cd

9. Listing Directory Concents

查看当前目录本身的属性:ls -ld

10. Copying Files and Directories

Usage:

cp [options] file destination

More than one files may be copied at a time if the destination is a directory

cp [options] file1 file2 destination

cp技巧:

cp -p file dest 保持文件拷贝前的时间

11. Linux Copying Files and Directories //linux中复制行为是怎么动作的

If destination exists and is a file ,the copy overwrite the destination file

If the destination is a directory,and is exists,the copy is placed there with the same name

If the destination doesn't exist,the copy is created with that name

14. Creating and Removing Files

rm -- remove files

Usage

rm [options] file

-i --interactive(确认信息)

-r --删除目录时必用选项

-f --force

Redhat 中,rm在普通用户下使用时,默认不带-i参数,在root用户下使用时,默认会带-i参数

touch create files

若所要建立的文件已在存在,则会改变文件的修改时间,不会改变其内容。 15. Creating and Removing Directory

mkdir --create directory

rmdir --remove an empty directory

rm -r --remove a directory

16. Using Nautilus

Gnome Graphical filesystem browser

Can run in “spatial” and “Browser” mode

Spatial --open directory in each window

Browser --open all directories in one window

18. Ceterming File Content

File can contain many types of data

syntax

file [options] filenames

20. Viewing Text Page by Page

syntax:

less [options] filename

Uage:

/text --search

n/N --next/previous match

v --open file in text editor

space -next page

b --previous page

Ctrl+d --next falf page

Ctrl+u --previous half page

g --to top of the file

G --to bottom of the file

/text --find text downward

?text --find text forward

v --editor mode

q --quit

......
显示全文...

[2008年2月17日星期日]

RHCE笔记整理--RH033.Unit2

0 评论

While viewing man page
Navigate with arrows ,pgUp,pgDown
/ Searching for test
n/N Next/Previous match
q Quit
Searchign the Manual
man -k


Navigating info Pages
Navigate with arrows pgUp,pgDown
Tab Move to the next ling
Enter Follow ling the cursor is on
n/p/u View next/previous/up-one node
s[] Search for test
q Quit......
显示全文...

中国队输球原因

0 评论

哎!先骂自己一句:真他妈的不争气!
多少次说过“以后再也不看中国足球了“,但是多少次又看。这次东亚四强赛,韩国派可是少了三大主力,还是不胜,30年逢韩不胜,和我的年龄差不多了,不知道这辈还能否看到中国赢韩国一次。
偶不善总结,转载一篇强人总结的中国队失利原因:

中国足球队输球的原因大总结
一、草皮不适应
  1、草皮太硬了
  2、草皮太软了
  3、不适应阔叶草及其它一些草
二、天气原因
  1、下雪
  2、下雨
  3、下冰雹
4、阳 光太好了
  5、冷
  6、热
  7、不冷不热(不能给对手造成麻烦)
三、赛场因素  
  1、场内因素: 
A、裁判帮他们
B、裁判不帮我们
C、对手身体太强壮
D、对手技术太细 腻
E、门柱帮了他们
F、对方守门员发挥BT+超常
G、补时太短
H、补时太长

  2、场外因素:
A、客场作战,气氛影响
B、主场作战,干扰太大
C、观众不为我们喝彩
D、有人往场内扔手雷
四 、抽签抽得不好
   1、同组都是强队踢输了。我拷,死亡之组,按惯例当然应该中国队输。
   2 、同组都是中等水平队踢输了。主要是想赢怕输的思想包袱太重了,队员们没能放得开手脚。
   3、同 组 都是弱队踢输了。对对手不够重视,麻痹大意,一时疏忽。
五、其他原因(外在)
    1、对亚 洲强 队踢输了,恐韩心理在作怪,走不出阴影。
2、对亚洲弱队踢输了,对手进步太大了,太大了,我们对他 们没有 秘密可言了。
3、对欧洲弱队踢输了,中国队输给了欧洲队。
4、对欧洲强队(比如意大利队)0: 1踢输了 ,告诉大家一个好消息:中国队仅以0:1输给了强大的意大利队!!
5、对欧洲强队(比如意大利 队)0:1 0踢输了,中国队踢出了自已的一惯水平,队员们也努力了,结果也不出全国人民所料。
6、对欧 洲强队(比如 意大利队)0:100踢输了,精彩的比赛!意大利某球星进了20个,某球星进了25个!看来 中国队跟意大利 队的水平差距确实是有一点的。
六、其他原因(内在球员)
   1、"海龟派"没回 来踢输了,我们雪 藏主力。
   2、"海龟派"回来踢输了,时差没倒过来。
七、 其他原因(内在 综合)
   1 、主教练技术差!
   2、中国球迷素质差!
   3、中国足协这个名字差!
   4、中国队 --队医技术差!
   5、中国足协领导人--办公室里那位倒水扫地的大妈差!
  八、没有我们想 不到的
草皮不软不硬,天气不冷不凉,裁判和门柱净帮着我们,对方没有守门员,
补时时间长短我们说了算,
到 第三国去比赛,观众全都为我们猛喝彩,观众全都不往场内扔手雷,抽了一个人人 都说好的签,"海龟派"回来 后猛睡了一个月倒回时差参加比赛,换了个主教练,换了批外国球迷,换了个中国 足协--的牌子,换了中国队- -的队医,换了个中国足协领导人--办公室里的打杂大妈,踢输了--
综 上所述,原因是:今天我们队,真 TM不在状态!
......
显示全文...