Linux一切皆为文件,文件是一个文件,目录其实也是一个文件
文件管理:创建、复制、移动、删除
touch file
touch file2 file3
touch /home/od/file4 file5
touch file{a,b,c}
touch file{a..z}
mkdir data -p
mkdir /home/od/dir1 /home/od/dir2 -p\
mkdir /home/od/{dir3,dir4}
mkdir -pv /home/{od/{diu,but},boy}
cp file /tmp/
cp file /tmp/test.txt
cp -r /root/data/ /tmp/
cp file1 file2 file3 /tmp/
mv file /tmp/
mv file /tmp/file_mm
mv file1 file2 file3 /tmp
mv file1 lemontree
mv data/ /tmp/
rm file.txt
rm -f file2 file3
rm -r /home/dir/
rm -rf test/
rm -f file*