Rm (Unix)
Basic UNIX command used to remove objects such as files and directories
rm, short for remove, is a shell command for removing files (which includes special files such as directories) from the file system. The command may not actually delete a file (release its storage for reuse) since it only unlinks it – removes a hard link to a file via the unlink() system call.
Nº Q274336 ★
Common · Literature
Rm (Unix)
Basic UNIX command used to remove objects such as files and directories
rm, short for remove, is a shell command for removing files (which includes special files such as directories) from the file system. The command may not actually delete a file (release its storage for reuse) since it only unlinks it – removes a hard link to a file via the unlink() system call.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
rm, short for remove, is a shell command for removing files (which includes special files such as directories) from the file system. The command may not actually delete a file (release its storage for reuse) since it only unlinks it – removes a hard link to a file via the unlink() system call. If a file has multiple links and less than all are removed, then the file remains in the file system; accessible via its other links. When a file's only link is removed, then the file is deleted – releasing its storage space for other use. Generally, a deleted file's former storage space still contains the file's data until it is overwritten with another file's content. The data is not accessible via normal file operations but can be recovered via specialized tools. Since this is considered a security risk in some contexts, a hardened version of cp may wipe the file's storage area when the file is deleted. Commands such as shred and srm specifically provide data wiping. Since rm does not provide a fallback to recover a file such as a recycle bin, its use involves the risk of accidentally losing information. Users tend to wrap calls to rm in safety mechanisms to limit accidental deletion. There are undelete utilities that attempts to reconstruct the index and can bring the file back if its storage was not reused. Originally, developed for Unix, today it is also available on Unix-like and non Unix-like systems, KolibriOS, IBM i, EFI shell. and Windows (via UnxUtils). The del command provides a similar capability in MS-DOS, OS/2, and Command Prompt. Like rm, the unlink command also removes (unlinks) files, but only one file at a time.
Text: Wikipédia, CC BY-SA 4.0. · Image: Fabiorahamim (CC BY-SA 4.0) ·
Related cards
File (command)
Standard Unix program
Nº Q181820 ★★★
Df (Unix)
Standard Unix computer program
Nº Q269484 ★★
Diff
Standard UNIX utility for file comparison
Nº Q300901 ★★
Zram
Linux module for compressed RAM drive
Nº Q609431 ★★
RPM Package Manager
Software package management system
Nº Q492650 ★★
README
File that contains information about other files in a directory or archive
Nº Q539662 ★★