LINUX_source
2015-11-01 19:05
609 查看
Be careful!
Note:
http://askubuntu.com/questions/182012/is-there-a-difference-between-and-source-in-bash-after-all?lq=1
help {builtin-name}
./and
sourceare not quite the same.
./scriptruns the script as an executable file, launching a new shell to run it
source scriptreads and executes commands from filename in the current shellenvironment
Note:
./scriptis not
. script, but
. script==
source script
http://askubuntu.com/questions/182012/is-there-a-difference-between-and-source-in-bash-after-all?lq=1
helpdoesn't work everywhere (atleast in zsh).
typedoes
help {builtin-name}
相关文章推荐
- linux 套接口缓存
- 在linux下修改文件夹机器子文件夹的权限
- Linux下github的使用
- Ubuntu Linux Create and Add Swap File Tutorial
- Linux1:Linux概述
- linux下字符串处理工具一:grep
- [Linux学习笔记] Linux常用命令 - 番外篇(Shell使用技巧)
- linux mysql 操作命令
- How To: set udev rule for setting the disk permission on ASM disks when using multipath on Linux 6.x
- CentOS下MySQL的安装和修改用户密码
- Linux第七次实验笔记
- Linux硬连接和软连接的区别
- 使用Linux(CentOS) 搭建SVN服务器全攻略
- vi编辑器用法总结
- ubuntu 安装后要做的6件事
- Linux下用c语言实现whereis.
- How To: Multipath Linux x86-64 Release 6.4
- snake
- 20151101 zhoumo..orz linux内存性能监控
- Linux文件存储结构,目录项、inode、数据块