DACT(1)
π DACT(1) β the manual page, but make it cute π
okay bestie, welcome to the dact manual page, from the General Commands Manual. she's iconic, she's a compressor, and she has β¨opinionsβ¨ about your files. let's get into it π«Ά
πΈ NAME πΈ
dact β compress or expand a file or stream. that's it. that's the girl. π
β¨ SYNOPSIS β¨
dact [ -dsfcvlniCHOShVNa ] [-b size] [-e algo] [-m file] [-o file] [-u url]
[-p url] [-M command] [-D desc] [-I algo] [-U file] [-E cipher] [file ...]
π¦ DESCRIPTION π¦
so here's the tea, bestie: DACT makes your input files smaller by trying to compress each and every block with several different algorithms, and then it picks the best one for each block. no cap. it's literally shopping around for the best deal, block by block, like a girl comparing prices before she checks out. π
π OPTIONS π
-dβ decompress the file (or stdin, if you didn't hand her a file), and she'll strip the extension if it's a valid one. clean. tidy. slay. β¨-sβ show stats about the file, like: Magic number of file, DACT version file was compressed with, Block size used to compress file, Compressed file size, Original file's size, Compression ratio (uncompressed to compressed), File's original name, and CRCs (if available). the receipts, basically. π§Ύ-fβ force bad and unsafe things to happen π and you can stack it to make even worse things happen. one-f= overwriting existing files is allowed. two-f= you get to ignore bad magic and CRC check fails. bestie this is the chaos option, use with care, fr fr.-cβ send output to stdout. this lets you force DACT to send compressed output to a terminal, or send the result of compressing a file to a pipe. π-vβ increase verbosity, and you can stack it to increase verbosity a LOT. currently only up to 3 makes sense. one-v= a bar graph. two-v= bar graph + block information. three-v= bar graph + detailed compression statistics per block. she's not just talking, she's presenting π-lβ list the compression algorithms available. window shopping ποΈ-nβ toggle use of CRCs. this one is especially useful combined with DACT's network capabilities. it lets you create a compressed file with only the header pointing to a web page that contains the real DACT file β normally the CRCs get checked against the compressed header to make sure they're the same file, but with this option the files don't have to be from the same source (i.e., you can have an updated copy automatically extend itself.) self-care via self-extension, we love to see it π-iβ read input from standard input instead of/dev/tty. this is used to read user-supplied info like encryption keys and passwords from standard input instead of the more appropriate method of opening"/dev/tty."π-Cβ complain when compression errors occur. when a block is selected it gets tested to make sure it decompresses back to the original source, and if it fails, the algorithm isn't used β with this option you actually get told about the failure. she'll let you know, bestie, she's not gonna suffer in silence π-Hβ write only the header (no data). this is useful for distributing archives that need only reside on the internet someplace. π-Oβ toggle writing the original file name in the DACT header. per the manual, this has no real use that I know of. iconic honesty honestly π-Sβ use speed-size as a metric rather than size. this is not implemented yet. when it exists, it'll make DACT create an optimized compressed file that balances speed of decompression with size. coming soon to a girl near you β-hβ give usage synopsis. the "what do I even do" button π«Ά-Vβ display the DACT version. π·οΈ-Nβ upgrade DACT. this fetches the latest binary from the internet and places it in$HOME/.dact/asdact.bin. if you havebinary_check onin yourdact.conffile, DACT will check for this file and use it. and if you have Debian and rundact -Nas root, the Debian upgrade procedure will upgrade your entire system. yes really. entire system. as root. read that twice. π-aβ DACT modules. this fetches the latest modules from the internet and places them in$HOME/.dact/in a subdirectory corresponding to your Operating System and CPU Architecture. π§-bsize β use the specified block size to compress the file. the size parameter is in bytes. π-enum β exclude an algorithm from being used. useful if you know your target won't be able to decompress a certain algorithm (you can get their numbers from the-loption.) π«-mfile β load another config file. this attempts to load the specified file in addition to the normal files, and the options in this file will supersede other options. she said "my config, my rules" π-ofile β alternate output. sends output to a file instead ofINFILE.dct. the file can also be a URL or'-'for standard out. π―-uurl β this encodes a URL in the compressed file's header. that URL will be tried (and CRCs checked) before attempting to decompress the data in the actual file. π-purl β URLs in DACT can have variables in them that get expanded when network access is required, and this lets you test the results of that extrapolation easily. the variables and their values are:@@OSNM@@β OS Name (linux,freebsd,sunos, etc)@@OSVR@@β OS version (2.2.x,4.2,5.8, etc)@@OSVS@@β OS version (short) (2.2,4.2,5.8, etc)@@ARCH@@β Arch (i386,sparc64,sun4u,sun4m, etc)@@DIST@@β IfOSNM=Linux, distribution of Linux.@@FILE@@β Name of compressed file.@@DTVR@@β Version of DACT (maj.min.rev)@@DTVS@@β Version of DACT (short) (maj.min)@@PASS@@β Prompt for Password@@USER@@β Prompt for Username@@ATSN@@β Put an'@'
example:
dact -p http://www.rkeene.org/devel/dact/precompiled/dact-@@OSNM@@-@@OSVS@@-@@ARCH@@.bin
dact: http://www.rkeene.org/devel/dact/precompiled/dact-linux-2.4-i586.bin
-Mcommand β this executes a command from the command line as if it appeared in"dact.conf". πͺ-Ddesc β encode the desc specified into the header of the compressed file. putting your little note in the header, like a signature on a love letter π-Inum β use only 1 algorithm (and uncompressed as a fall-back). useful if you want to limit yourself to a certain type of compression. monogamy but make it compression π-Ufile β encode the specified file into the header of the compressed file. this file will be searched (line-by-line) for a working URL to download compressed content from. see also-u. π-Ecipher β enable encryption using the specified algorithm. different algorithms use different authentication methods. π
π FILES π
$HOME/.dact/$HOME/.dact/dact.conf/etc/dact.conf
π SEE ALSO π
π AUTHOR π
Roy Keene <dact@rkeene.org> β the legend herself, the main character, no notes π«Ά
and that's the whole page bestie!! this was theDACT(1)manual page from the General Commands Manual β go forth, compress responsibly, and remember: two-fis a lifestyle choice, not a personality π β¨ππ¦πΈ
π¦ where this page comes from
- debian bookworm: dact 0.8.42-5 Β· GPL-2.0-or-later
- debian trixie: dact 0.8.42-6 Β· GPL-2.0-or-later
- ubuntu jammy: dact 0.8.42-5 Β· GPL-2.0-or-later
- ubuntu noble: dact 0.8.42-5 Β· GPL-2.0-or-later
- ubuntu resolute: dact 0.8.42-6 Β· GPL-2.0-or-later
- ubuntu stonking: dact 0.8.42-7 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms