Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| linux:start [2025/12/23 10:54] – [AppImages] mh | linux:start [2026/01/01 10:23] (current) – [Useful shell] mh | ||
|---|---|---|---|
| Line 544: | Line 544: | ||
| ---- | ---- | ||
| + | |||
| + | === Empty a file === | ||
| + | |||
| + | <code bash> | ||
| + | : > ~/ | ||
| + | </ | ||
| + | |||
| + | * : is the shell’s no-op builtin | ||
| + | * Redirection truncates the file to zero bytes | ||
| + | * File permissions and ownership are preserved | ||
| ===== apt and dpkg ===== | ===== apt and dpkg ===== | ||