ls -al 等同于 ll
[[email protected] tmp]# mkdir -p test1_dir/test2/test3
[[email protected] tmp]# cd test1_dir/test2/test3
[[email protected] test3]# ls
[[email protected] test3]# ll
total 0
创建test1_dir文件夹,同时在test1_dir文件夹里面创建test2文件夹,
同时在test2文件夹中创建test3文件夹
[[email protected] tmp]# rm test1_dir
rm: cannot remove ‘test1_dir’: Is a directory
[[email protected] tmp]# rm -r test1_dir
rm: descend into directory ‘test1_dir’? y
rm: descend into directory ‘test1_dir/test2’? y
rm: remove directory ‘test1_dir/test2/test3’? y
rm: remove directory ‘test1_dir/test2’? y
rm: remove directory ‘test1_dir’? y
[[email protected] tmp]#
[[email protected] tmp]# mkdir -p test1_dir/test2/test3
[[email protected] tmp]# rm -rf test1_dir/
[[email protected] tmp]#