Difference between revisions of "Rm (command)"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 4: | Line 4: | ||
rm -rf | rm -rf | ||
+ | |||
+ | echo "" > /path/to/the/file.log | ||
+ | |||
+ | If it was already deleted, on Linux, you can still truncate it by doing: | ||
+ | echo "" > "/proc/$pid/fd/$fd" | ||
Revision as of 17:07, 21 April 2020
This article is a Draft. Help us to complete it.
rm -rf
echo "" > /path/to/the/file.log
If it was already deleted, on Linux, you can still truncate it by doing: echo "" > "/proc/$pid/fd/$fd"
Related commands
See also
Advertising: