学习:linux文件的移动
2020-03-08 本文已影响0人
RachaelRiggs
文件的移动步骤
-
复制文件
cd /Users/quyue/PycharmProjects
cp ./untitled1
-
建立目录
mkdir /Users/quyue/PycharmProjects/gene/res1
3.将文件移动到目录
mv untitled1 /Users/quyue/PycharmProjects/gene/res1
quyue @ qy in ~/Desktop/专业/脂代谢相关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_名片管理项目
drwxr-xr-x 4 quyue staff 128 3 8 12:09 gene
drwxr-xr-x 5 quyue staff 160 2 25 21:04 py小项目
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