1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 05:15:24 +02:00
tldr/pages/linux/tomb.md
Managor 611d2c9a04
linux*: refresh old pages part 2 (#16263)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-27 10:35:40 +03:00

36 lines
1.1 KiB
Markdown

# tomb
> Manage encrypted storage directories that can be safely transported and hidden in a filesystem.
> More information: <https://dyne.org/docs/tomb/manpage/>.
- Create a new tomb with an initial size of 100 MB:
`tomb dig -s {{100}} {{encrypted_directory.tomb}}`
- Create a new key file that can be used to lock a tomb; user will be prompted for a password for the key:
`tomb forge {{encrypted_directory.tomb.key}}`
- Forcefully create a new key, even if the tomb isn't allowing key forging (due to swap):
`tomb forge {{encrypted_directory.tomb.key}} -f`
- Initialize and lock an empty tomb using a key made with `forge`:
`tomb lock {{encrypted_directory.tomb}} -k {{encrypted_directory.tomb.key}}`
- Mount a tomb (by default in `/media`) using its key, making it usable as a regular filesystem directory:
`tomb open {{encrypted_directory.tomb}} -k {{encrypted_directory.tomb.key}}`
- Close a tomb (fails if the tomb is being used by a process):
`tomb close {{encrypted_directory.tomb}}`
- Forcefully close all open tombs, killing any applications using them:
`tomb slam all`
- List all open tombs:
`tomb list`