文件的移動步驟
復(fù)制文件
cd /Users/quyue/PycharmProjects
cp ./untitled1
建立目錄
mkdir /Users/quyue/PycharmProjects/gene/res1
3.將文件移動到目錄
mv untitled1 /Users/quyue/PycharmProjects/gene/res1
quyue @ qy in ~/Desktop/專業(yè)/脂代謝相關(guān)paper/adiponectin [13:19:09] C:1
$ cd /Users/quyue/PycharmProjects
# quyue @ qy in ~/PycharmProjects [13:19:59]
$ ls -l
total 8
drwxr-xr-x 10 quyue staff 320 3 8 10:44 02_名片管理項(xiàng)目
drwxr-xr-x 4 quyue staff 128 3 8 12:09 gene
drwxr-xr-x 5 quyue staff 160 2 25 21:04 py小項(xiàng)目
drwxr-xr-x 4 quyue staff 128 2 2 16:14 untitled
-rw-r--r--@ 1 quyue staff 874 3 8 02:10 untitled1
# quyue @ qy in ~/PycharmProjects [13:20:03]
$ cp ./untitled1
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
# quyue @ qy in ~/PycharmProjects [13:24:34] C:64
$ mv mkdir /Users/quyue/PycharmProjects/gene/res1
mv: rename mkdir to /Users/quyue/PycharmProjects/gene/res1: No such file or directory
# quyue @ qy in ~/PycharmProjects [13:29:46] C:1
$ mkdir /Users/quyue/PycharmProjects/gene/res1
# quyue @ qy in ~/PycharmProjects [13:30:13]
$ mv untitled1 /Users/quyue/PycharmProjects/gene/res1