tldr/pages/linux/tomb.md

32 lines
901 B
Markdown
Raw Normal View History

2017-03-09 19:09:25 +03:00
# tomb
2017-04-26 00:05:18 +03:00
> Manage encrypted storage folders that can be safely transported and hidden in a filesystem.
2017-03-09 19:09:25 +03:00
- Create a new tomb with an initial size of 100MB:
2017-03-09 19:09:25 +03:00
`tomb dig -s {{100}} {{encrypted_folder.tomb}}`
2017-03-09 19:09:25 +03:00
- Create a new key file that can be used to lock a tomb; user will be prompted for a password for the key:
2017-03-09 19:09:25 +03:00
`tomb forge {{encrypted_folder.tomb.key}}`
- Initialize and lock an empty tomb using a key made with `forge`:
`tomb lock {{encrypted_folder.tomb}} -k {{encrypted_folder.tomb.key}}`
2017-03-09 19:09:25 +03:00
- Mount a tomb (by default in /media) using its key, making it usable as a regular filesystem folder:
2017-03-09 19:09:25 +03:00
`tomb open {{encrypted_folder.tomb}} -k {{encrypted_folder.tomb.key}}`
2017-03-09 19:09:25 +03:00
- Close a tomb (fails if the tomb is being used by a process):
2017-03-09 19:09:25 +03:00
`tomb close {{encrypted_folder.tomb}}`
2017-03-09 19:09:25 +03:00
- Forcefully close all open tombs, killing any applications using them:
2017-03-09 19:09:25 +03:00
`tomb slam all`
- List all open tombs:
`tomb list`