GFSEC-SPLIT(1)
β¨ GFSEC-SPLIT β¨ (section 1 of the Gfsecret Manual, bestie)
okay so. this is the manual page for gfsec-split, and it lives in the Gfsecret Manual, section 1. that means it's a user command. get comfy, we're splitting secrets π
πΈ NAME πΈ
gfsec-split β split a file into shares and dispatch them π
π¦ SYNOPSIS π¦
gfsec-split [-h|--help] [-v|--version] [-n|--threshold N] [-c|--config
file] [-i|--interactive] [-k|--keep] [-o|--output file]
[-r|--restore-cmd command] [-d|--destroy-cmd command]
[-l|--list-supports] file URI...
π DESCRIPTION π
gfsec-split takes a file, splits it up into a bunch of shares, and then dispatches those shares out onto external storage supports. it's giving "divide and conquer" but make it storage π
then, later, you can temporarily put the split file back together using its companion program, gfsec-use(1). they're a duo, fr fr π«Ά
π OPTIONS π
-h,--helpβ shows you the help message. the "hello, what is this" button β¨-v,--versionβ shows you the version message. the "who even are you" button π-n,--threshold Nβ the minimum number of shares you need to re-assemble the split file. the default is2. so like, lowkey two is the magic number unless you say otherwise π₯-c,--config fileβ writes the configuration file (the one that lets you reconstruct the secret withgfsec-use(1)) to the file you name. the default is the basename of the split file inside$XDG_CONFIG_HOME/gfsecret. and here's the cute part: if FILE is a single filename with no extension and no directory part, the file gets placed under the$XDG_CONFIG_HOME/gfsecretdirectory with a.confextension π-i,--interactiveβ serves you an interactive menu so you get to pick which shares to create. main character energy, you're in charge π-k,--keepβ by default,gfsec-splitdeletes the original file once it's been successfully split (π). use this option to stop the file from being deleted. protect the original!!-o,--output fileβ says wheregfsec-useshould write the reconstructed secret. the default is to use the original location. and if you set it to an empty string, no location gets written in the configuration file. noted π-r,--restore-cmd commandβ the command thatgfsec-usewill call to restore the secret β¨-d,--destroy-cmd commandβ the command thatgfsec-usewill call to destroy the secret once it's not needed anymore π. heads up: the same command also gets called bygfsec-splitto destroy the secret once it's been split β unless you used the-koption. so yeah,-kis your seatbelt here π-l,--list-supportsβ lists all the supports currently available that you could use to store shares, then quits. a little window shopping trip πΈ
ngl, that-d+ no-kcombo is a one-way trip for your original file. just so you know. π«Ά
π SHARE URIs π
shares are described with a URI-like syntax. for each share, the URI tells you a storage device and a pathname on that device. two-for-one, iconic π¦
the supported URI schemes are:
file:///β points to a file on the local filesystem.uuid://uuid/β points to a file on the external volume identified by the specified UUID.label://label/β points to a file on the external volume identified by the specified label.mtp://serial/β points to a file on the MTP device identified by the specified serial number.http://host/β points to a file on a web server identified by its hostname.https://host/β same as the previous one, but the web server is accessed through a secure connection π
π EXAMPLE INVOCATION π
gfsec-split \
/home/alice/mysecret \
file:///home/alice/.local/share/gfsecret/mysecret \
label://USBSTICK/mysecret \
mtp://RF2GB6X704P/Documents/mysecret \
so what's happening here: that splits the file /home/alice/mysecret into three shares β one on the local filesystem, one on the USB mass storage device with the label USBSTICK, and one on the MTP-compliant device with the serial RF2GB6X704P. and a configuration file gets written in $XDG_CONFIG_HOME/gfsecret/mysecret, which lets you automatically reconstruct the file with gfsec-use(1) β as long as at least one of the two removable supports is actually present. at least one!! that's the threshold doing its thing π₯
π REPORTING BUGS π
found a bug? report it to Damien Goutte-Gattat. be nice about it, they're doing great π
β SEE ALSO β
gfsec-use(1), gfsplit(1), gfcombine(1), libgfshare(3), gfshare(7)
the whole friend group, honestly π«Ά
π COPYRIGHT π
Copyright Β© 2017,2021 Damien Goutte-Gattat
this program is released under the GNU General Public License. see the COPYING file in the source distribution, or check out http://www.gnu.org/licenses/gpl.html.
okay that's the whole page!! and for the little sign-off: this is gfsecret version 0.5.1, dated 2021-07-17, and that's the vibe, periodt π β¨π¦
π¦ where this page comes from
- debian trixie: gfsecret 0.5.1-1 Β· GPL-3.0-or-later
- ubuntu questing: gfsecret 0.5.1-1
- ubuntu resolute: gfsecret 0.5.1-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: gfsecret 0.5.1-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms