Copy / copies:
cp filename path cp hello.csv ./python/ml: hello.csv the current directory are copied to the current folder's purpose python ml folder
cp source file name new file name cp hello.txt world.txt: Copy and rename and store it in the current directory
cp file1 file2 copying a file
cp dir / *. Copy all files in a directory to the current working directory
cp -a / tmp / dir1. copy a directory within the current work directory
cp -a dir1 dir2 copy a directory
Cut / Mobile:
mv file name path
mv hello.csv ./python: Cut the hello.csv current directory to the current folder aim python
mv hello.txt ../java/ the files in the current directory to a subdirectory hello.txt cut java directory's parent directory
mv hello.txt .. hello.txt move the file to the parent directory
---------------------
Disclaimer: This article is CSDN blogger "htbeker" of original article, follow the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/htbeker/article/details/83578375