
shell
文章平均质量分 80
大副
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
BASH编程中会遇到的24个陷阱
1. for i in `ls *.mp3` 常见的错误写法: for i in `ls *.mp3`; do # 错误! 为什么错误呢?因为for...in语句是按照空白来分词的,包含空格的文件名会被拆成多个词。 如遇到 “01 - Don't Eat the Yellow Snow.mp3” 时,i的值会依次取 01,-,Don't,等等。 用双引号也不行,它会将ls *.mp转载 2012-06-28 22:12:05 · 1176 阅读 · 0 评论 -
Linux中profile、bashrc、bash_profile之间的区别和联系
/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置. 英文描述为: # /etc/profile # System wide environment and startup programs, for login setup # Functions and aliases原创 2012-08-05 22:24:14 · 139496 阅读 · 4 评论