当前位置:网站首页>RM command – remove file or directory
RM command – remove file or directory
2022-06-25 05:59:00 【ProYuan28】
rm It's a common command , The function of this command is to delete one or more files or directories in a directory , It can also delete a directory and all its files and subdirectories . For linked files , Just deleted the link , The original files remain unchanged . rm It's also a dangerous order , Be careful when using , Especially for beginners , Otherwise, the whole system will be destroyed by this command ( For example /( root directory ) perform rm * -rf). therefore , We're executing rm It's better to confirm which directory you are in , What exactly do you want to delete , Keep a high level of clear mind when operating .
Grammar format :rm [ Parameters ] [ file ]
Common parameters :
| -f | Ignore nonexistent files , There will be no warning messages |
| -i | Before deleting, the user will be asked whether to operate |
| -r/R | Recursive delete |
| -v | Display the detailed execution process of the instruction |
Reference examples
One by one asked to confirm before deleting :
[[email protected] ~]# rm -i test.txt.bz2 rm: remove regular file `test.txt.bz2'?
Delete directly , There will be no hint :
[[email protected] ~]# rm -f test.txt.bz2
Recursively delete the directory and all files under the directory :
[[email protected] ~]# mkdir /data/log [[email protected] ~]# rm -rf /data/log
Delete all files in the current directory :
[[email protected] ~]# rm -rf *
Empty all files in the system ( cautious ):
[[email protected] ~]# rm -rf /*
边栏推荐
- Part 33 of SAP ui5 application development tutorial - trial version of responsiveness of SAP ui5 applications
- Use of arrays tool class
- Deep learning non local neural networks
- [golang] leetcode intermediate - Search rotation sort array & search two-dimensional matrix II
- Use of collection
- CST8227
- "APEC industry +" biov Tech talks about the cross-border of Chinese biotechnology enterprises and "Pratt & Whitney Kangyu" | apec-hub public welfare
- Aiot project that is an introduction to the basics of the Internet of things and can be implemented in practice
- Understanding the dynamic mode of mongodb document
- What is hybrid web containers for SAP ui5
猜你喜欢

Mongodb basic concept learning - set
Summary of 6 common methods of visual deep learning model architecture

RT thread i/o device model and layering

MySQL tuning --01--- optimization steps and system performance parameters
How the sap ui5 framework performs single step debugging of batch requests

Classic usage of the sumproduct function
Configuration file ui5 local in SAP ui5 tools Configuration points of yaml

CVPR2021-Semi-supervised Domain Adaptation based on Dual-level Domain Mixing for Semantic Segmentati

Mongodb delete data

Unsupervised domain adaptation in semantic segmentation:a review unsupervised domain adaptation in semantic segmentation: a review
随机推荐
Use generator-easy-ui5 to quickly create the engineering structure of SAP ui5 applications
SAP ui5 tutorial for beginners part XXVI - detailed steps for using OData service with mock server trial version
PIP connects to Tsinghua source by default
Mongodb basic concept learning - Documentation
PAT (Advanced Level) Practice 1025
Linus' speech recordings, which were lost in 1994, were made public
Wireless industrial Internet of things data monitoring terminal
MySQL uses the where condition to find strange results: solve
Guava new collection type
Understanding the dynamic mode of mongodb document
An example of recursion, the full permutation problem of 1~n
Transformations of pytorch torch torch vision
Common cluster deployment schemes in redis
SAP ui5 beginner tutorial No. 28 - Introduction to the integration test tool OPA for SAP ui5 applications
Day22 send request and parameterization using JMeter
Day18 (set, generic, hash table, tree, stack and queue, graph, array and linked list)
Classic usage of the sumproduct function
Array introduction plus example 01
What is SAP sup - Sybase unwired platform
Introduction to sap ui5 tools