
ALX-9000 (Linux based PAC) User Manual version 1.0.0 Page: 47
Copyright © 2024 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
3.1.4.
Linux Command “rm”
rm: delete file or directory
->
(like del or deltree in DOS)
rm -parameter file (or directory)
Parameter
:
(1)
i: it will show the warning message when deleting
(2)
r: delete directory despite that it isn’t empty
(3) f
:
it will not show a warning message when deleting (Example: rm -f test.exe)
root@icpdas:/tmp#
rm -i test.log
rm: remove regular file 'test.log'? y
root@icpdas:/tmp#
root@icpdas:/tmp#
rm -r mytest/
root@icpdas:/tmp#
root@icpdas:/tmp#
rm -f test.log
root@icpdas:/tmp#