Difference between revisions of "Rm (command)"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 11: Line 11:
  
  
== Related commands ==
+
== Related terms ==
 
* <code>[[lsof]] -a +L1 /path/to/fs</code>
 
* <code>[[lsof]] -a +L1 /path/to/fs</code>
 
* Set file to zero: <code>[[truncate]] -s 0 /path/to/filename</code>
 
* Set file to zero: <code>[[truncate]] -s 0 /path/to/filename</code>
Line 17: Line 17:
 
* <code>[[echo]]</code>
 
* <code>[[echo]]</code>
 
* <code>[[inode]]</code>
 
* <code>[[inode]]</code>
 +
* [[mtime]]
  
 
== See also ==
 
== See also ==

Revision as of 13:49, 26 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 terms

See also

Advertising: