shell
hao0910
这个作者很懒,什么都没留下…
展开
-
ls报错: arguments too long
find $soucr -type f -name “*“ -exec mv {} /home/s/ \;find -type f -name "*"|xargs -n 1 -t -I {} mv {} $dir原创 2015-02-04 17:09:33 · 634 阅读 · 0 评论 -
cd命令为什么时候内建命令
1. 外建命令,首先会fork一个子进程,在子进程中执行cd,只改变子进程的当前工作目录2. 内建命令,在当前shell进程中执行,改变当前目录例如:a.sh#!/bin/shcd /homels1. sh a.sh, 只改变子进程工作目录2. source a.sh, 改变当前工作目录,并执行ls原创 2015-02-04 16:55:38 · 367 阅读 · 0 评论