[ Web Proxy ]
URL:
Viewing: https://morvanzhou.github.io/tutorials/others/linux-basic/2-02-basic-command/ [Back]  [Original]

Linux touch, cp mv - Linux | Python

Linux touch, cp mv

: : 2017-10-12

, linux , , , , .

touch

touch , Documents , folder1 file1, file2 . .

Linux  touch, cp  mv [Linux touch, cp mv]

$ touch file2

, , .

$ touch file3 file4 file5

cp

cp (copy) , .

$ cp  

1 file1 , file1 file1copy

$ cp file1 file1copy

Linux  touch, cp  mv [Linux touch, cp mv]

2 -i (interactive) : file1copy , file1copy, , cp .

$ cp -i file1 file1copy
cp: overwrite 'file1copy'?

Yes, Y, y yes, . , .

3

$ cp file1 folder1/

4 , -R (recursive)

$ cp -R folder1/ folder2/

5 . , * file ,

$ cp file* folder2/

, cp . file1copy file2 folder1/

$ cp file1copy file2 folder1/

mv

cp, mv, .

1

$ mv file1 folder1/

2

, . !

$ mv  file1 file1rename

, , --help .

: Facebook [Facebook] [] [] Twitter [Twitter]
, , . , Python , , .




[]

Linux

:



Email: morvanzhou@hotmail.com

© 2018 morvanzhou.github.io All Rights Reserved


Web Proxy Viewer  |  New URL  |  Original Page