26:在同一个命令行上同时执行多条命令:用分号分隔。如编译一个源文件:type ./c
onfigure ; make ; make install 。之后你就可以去散步了(不要在电脑前花费了太多
时间了,生活中还有很多美好的东西。)
27:把运行结果输出到一个文件中,如 ls -l > foo.file。
28:使用Top命令监视系统状况,内存使用情况,开机时间,进程状况,每个用户的使用
情况等等。使用S命令可以改变其刷新的时间:如.5将会使其每半秒钟更新一次。
29:同时Unzip多个文件,unzip *不正确,而是unzip "*"。
30:建立符号连结,这大概是最有用的功能了,ln -s real-file symbolic-file,无论
是设备,文档还是脚本程序。
31:改变显示的单位,如du -hm 将以M为单位输出结果,同样的du -hk则以K为单位输出
。
32:自动Logoff,在~/.bashrc中加入这么一句话:TMOUT=300则会在5分钟之后logoff,不
过如果less这类程序运行则不会启动。
33:在使用less 或 more时,直接启动编辑器:在less中打入v键,会立即启动vi或其他
你在环境变量中指明的编辑器,但是more只能使用vi。
来源:非常Linux
--
[m[34m※ 来源:・BBS 水木清华站 bbs.edu.cn・[FROM: 166.111.153.196][m
--
[m[1;34m※ 转载:.天大求实BBS bbs.tju.edu.cn.[FROM: 202.113.13.188][m
| leirenyuan 回复于:2004-07-11 21:51:34 |
| 好文 |
| 零二年的夏天 回复于:2004-07-11 22:17:16 |
| [quote:efa960fba0]26:在同一个命令行上同时执行多条命令:用分号分隔。如编译一个源文件:type ./c
onfigure ; make ; make install 。之后你就可以去散步了(不要在电脑前花费了太多 时间了,生活中还有很多美好的东西。)[/quote:efa960fba0] 感觉这个例子举的不好。无论使用 ;还是 && ,如果出错都会停止的。 |
| 天外闲云 回复于:2004-07-11 22:24:28 |
| 加精了?但是为什么我的精华帖还是1呢?
夏天说的那个问题,的确不是很好,但是入门用的也不用管得太多了。 |
| 零二年的夏天 回复于:2004-07-11 22:28:33 |
| 精彩是不算到精华里的。:D |
| 天外闲云 回复于:2004-07-11 22:33:15 |
| 原来是精彩啊,除了保留,精华,原创精华还有精彩来着?下个学期学校可能要建一个linux实验室,我得花时间写个dd和netcat的东东,备用,省得下学期被征召去,手忙脚乱。弄出来了在贴出来吧,我觉得肯定加精的说。 |
| 零二年的夏天 回复于:2004-07-11 22:35:46 |
| 欢迎啊!:D |
| 天外闲云 回复于:2004-07-11 22:37:40 |
| 再说啦,最近大病一场,发烧38度+急性肠胃炎,当时差点打120急救,呵呵。
下了,休息去。 |
| aspbiz 回复于:2004-07-12 00:05:55 |
| 同志们,注意身体呀。 |
| fewgur 回复于:2004-07-12 00:24:41 |
| 终于成为cu里的成员了,我都哭了,感动的。
先不说太多了,本人正在编写linux启动与引导实验手册,各位高手有好的建议,小弟洗耳恭听。 |
| hcjia 回复于:2004-07-12 13:15:21 |
| 文章不错呀! |
| blueidea 回复于:2004-07-12 15:37:29 |
| linux启动与引导实验手册:
这个还要写,Linux自带有吧? |
| baolongzhou 回复于:2004-07-12 18:07:14 |
| 我觉的你们厉害呀 |
| Linux@初学者 回复于:2004-07-12 19:22:50 |
| [root@server1 root]# host -l sohu.com
;; connection timed out; no servers could be reached WHY??????????? |
| Linux@初学者 回复于:2004-07-12 22:13:09 |
| 顶!,没人知道啊? |
| 天外闲云 回复于:2004-07-12 23:12:36 |
| 可以查自己局域网的东东,但是国际网查不了,不知道是不是做了什么特别设置。 |
| sean810 回复于:2004-07-13 11:08:00 |
| well done! |
| 第二场雪 回复于:2004-07-13 13:31:38 |
| [quote:d97324ee75="Linux@初学者"]ver1 root]# host -l sohu.com
;; connection timed out; no servers could be reached WHY???????????[/quote:d97324ee75] www.sohu.com,这样才叫inter上的主机啊,ping 163.com也是不通的~~~ dns都找不到 |
| zxc1998 回复于:2004-07-13 15:21:20 |
| 谢谢楼主 |
| eagerlinuxer 回复于:2004-07-13 16:11:46 |
| [quote:6be6de430d="天外闲云"]可以查自己局域网的东东,但是国际网查不了,不知道是不是做了什么特别设置。[/quote:6be6de430d]
这个应该是对方的DNS主机上做了IP限制,只有指定的IP才能做zone传输。 在named.conf文件中可以用allow-transfer=xxx.xxx.xxx.xxx来限制。 allow-transfer Specifies which hosts are allowed to receive zone transfers from the server. allow-transfer may also be specified in the zone statement, in which case it overrides the options allow-transfer statement. If not specified, the default is to allow transfers from all hosts. [root@wy1 sbin]# host -l sina.com.cn Host sina.com.cn not found: 9(NOTAUTH) ; Transfer failed. 应该是对方的DNS做了这个限制的原因。 |
| jincy 回复于:2004-07-14 13:23:12 |
| 使用cd -在上两个cd /directory/操作中切换。如先是cd /home/foo接着是 cd /home/maison则接着打cd - 会进入 /home/foo再打cd - 会进入 /home/maison。
这条我喜欢! :em02: |
| dlj2002 回复于:2004-07-27 13:49:21 |
| "6:简单的进行Dos转Unix:如果你的文本文件中每行结尾都有讨厌的Ctrl-M的话,使用这句命令能够快速的解决问题 sed s/^M// filename > newfilename"
我试过,不行啊! |