In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The rm command in Linux is used to delete a file or directory.
Grammar
Rm [options] name...
Parameters:
-I ask for confirmation one by one before deletion.
-f even if the original file attribute is set to read-only, it will be deleted directly without confirmation one by one.
-r delete the directory and the following files one by one.
Example
To delete a file, you can use the rm command directly. If you delete a directory, you must match the option "- r", for example:
# rm test.txt rm: do you want to delete the general file "test.txt"? Y # rm homework rm: unable to delete directory "homework": is a directory # rm-r homework rm: do you want to delete directory "homework"? Y
Delete all files and directories under the current directory, command behavior:
Rm-r *
Once the file is deleted by the rm command, it cannot be recovered, so the command must be used with great care.
These are the details of what the linux rm command is, please pay more attention to other related articles!
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.