In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how the Linux system deletes all the files in the current directory, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
How do I delete all files in the current directory on the Linux system? When it comes to deleting, you must think of rm-f *, which is a very efficient command, but also a very dangerous command.
1.rm-f *
# the classic method is to delete all types of files in the current directory
2.find. -type f-delete or find. -type f-exec rm-f {}\
# find a normal file and delete it with the find command and delete it with the processing action of the find command or
3.find. -type f | xargs rm-f
# too long parameter list; too many files to delete
4.rm-f find. -type f
# Delete all ordinary files
5.for delete in ls-lumbago do rm-f *; done
# use for loop statement to delete all types of files in the current directory
Delete files in the specified directory
1.rm-f specifies the directory *
# the most classic way to delete all types of files in the specified directory
2.find specified directory-type f-delete or find specified directory-type f-exec rm-f {}\
# use the find command to find all ordinary files in the specified directory and delete the or. Delete them with the processing action of the find command
3.find specifies the directory-type f | xargs rm-f
# too long parameter list; too many files to delete
4.rm-f find specified directory-type f
# Delete all ordinary files in the specified directory
5.for delete in ls-l specifies the directory path; do rm-f *; done
# use for loop statement to delete all types of files in the specified directory
The above is how the Linux system deletes all the files in the current directory. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.