cp命令详解
You can copy a file using the cp
command:
您可以使用cp
命令复制文件:
touch test
cp apple another_apple
To copy folders you need to add the -r
option to recursively copy the whole folder contents:
要复制文件夹,您需要添加-r
选项以递归方式复制整个文件夹的内容:
mkdir fruits
cp -r fruits cars
This command works on Linux, macOS, WSL, and anywhere you have a UNIX environment
此命令可在Linux,macOS,WSL以及您拥有UNIX环境的任何地方使用
cp命令详解