Linux touch, cp mv
:
:
2017-10-12
, linux , , , , .
touch
touch , Documents , folder1 file1,
file2 . .
$ touch file2
, , .
$ touch file3 file4 file5
cp
cp (copy) , .
$ cp
1 file1 , file1 file1copy
$ cp file1 file1copy
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 .