一:文件命令:cp,mv
[chenguang@iZ251httg6tZ wcg]$ ls afun.py hello test2.py test.py ti.py [chenguang@iZ251httg6tZ wcg]$ cp test.py hello #把wcg下的test.py复制到hello下 [chenguang@iZ251httg6tZ wcg]$ cd hello [chenguang@iZ251httg6tZ hello]$ ls test.py [chenguang@iZ251httg6tZ wcg]$ ls afun.py hello test2.py test.py ti.py [chenguang@iZ251httg6tZ wcg]$ mv ti.py hello #把wcg下的文件移动到hello下 [chenguang@iZ251httg6tZ wcg]$ ls afun.py hello test2.py test.py [chenguang@iZ251httg6tZ wcg]$ cd hello [chenguang@iZ251httg6tZ hello]$ ls ti.py [chenguang@iZ251httg6tZ wcg]$ mkdir helloo #新建一个文件夹 [chenguang@iZ251httg6tZ wcg]$ ls afun.py hello helloo test2.py test.py [chenguang@iZ251httg6tZ wcg]$ mv hello helloo #把hello文件夹移动到helloo文件夹下 [chenguang@iZ251httg6tZ wcg]$ ls afun.py helloo test2.py test.py [chenguang@iZ251httg6tZ wcg]$ cd helloo [chenguang@iZ251httg6tZ helloo]$ ls hello [chenguang@iZ251httg6tZ helloo]$
原文:http://www.cnblogs.com/lovychen/p/5162675.html