megarc(5)
π megarc β the config file glow-up π
okay bestie, listen. this is the megarc(5) page β the manual for megatools' config file. it's giving "tiny file, huge time-saver" energy and honestly? we're obsessed. π
β¨ NAME β¨
megarc β Configuration file for megatools π
β¨ SYNOPSIS β¨
~/.megarc
./.megarc
β¨ DESCRIPTION β¨
so here's the tea: Megatools uses an INI configuration file to stash your commonly used login credentials. it makes the tools way less bothersome to use, because instead of typing your whole life story every single time, you can just write
$ megatools df
instead of
$ megatools df --username my@email.com --password mypass
likeβ¦ the difference is astronomical. no cap. π
the config file gets read either from the current directory or from the user's home directory. the exceptions (the "not today" moments π) are when --ignore-config-file was passed to the tool, or when you handed it an explicit path to the config file via --config <path>.
β¨ CONFIG FILE SECTIONS β¨
every single section is optional. and heads up β all names are case sensitive, so you must write [Login], and not [login], and so on. yes really. the capitalization matters. periodt. π
π LOGIN SECTION
Usernameβ Your username.Passwordβ Your password. β οΈ Be aware that back slashes have special meaning. If you have a back slash in your password, you must escape it with another backslash. For example:my\nice\passwordwould be written asmy\\nice\\passwordin the config file. (the double-backslash is the moment, iykyk)
ποΈ CACHE SECTION
Timeoutβ Cache timeout in seconds (default is 10 minutes).
π NETWORK SECTION
DownloadSpeedLimitβ Set maximum allowed download speed in KiB/s.0means no limit. OverridesSpeedLimitsetting.UploadSpeedLimitβ Set maximum allowed upload speed in KiB/s.0means no limit. OverridesSpeedLimitsetting. When usingParallelTransfers > 1, upload speed limit is applied to each transfer individually.SpeedLimitβ Set maximum allowed upload and download speed in KiB/s.0means no limit.ParallelTransfersβ Set maximum allowed number of parallel connections when upload or downloading a file. The file is split into chunks of a size between128 kiBand1 MiB, and these chunks are uploaded in parallel. The number must be between1and16. Default is5.Proxyβ Use proxy server to connect tomega.nz. More information can be found in libcurl documentation at β¨https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.htmlβ©. Some acceptable values are:socks5://localhost:9050: Local SOCKSv5 proxy serversocks5h://localhost:9050: Local SOCKSv5 proxy server with DNS handled by the proxy
π€ UPLOAD SECTION
CreatePreviewsβ Create Previews (see--enable-previewsoption).
π¨ UI SECTION
Colorsβ Enable color output in the progress reporting. Colors are disabled by default to support all kinds of terminal configurations. Colors are not configurable, yet. (yet!! manifesting future configurable colors for us π―οΈβ¨)
β¨ EXAMPLE β¨
Create ~/.megarc (on linux) or mega.ini file containing these 3 lines:
[Login]
Username = your@email
Password = yourpassword
[Network]
# 1MiB/s
SpeedLimit = 1024
# Use over TOR
Proxy = socks5://127.0.0.1:9050
ParallelTransfers = 2
[UI]
Colors = true
then run megatools-df(1) to check that megatools are able to login to your account. vibe check passed = you're in. π«Ά
β¨ SEE ALSO β¨
megatools(1), megarc(5), megatools-df(1), megatools-dl(1), megatools-get(1), megatools-ls(1), megatools-mkdir(1), megatools-put(1), megatools-reg(1), megatools-rm(1), megatools-copy(1).
(the whole friend group, all iconic, all linked π)
β¨ MEGATOOLS β¨
Part of the megatools(1) suite of commands. π
β¨ BUGS β¨
There is no upstream support for bugreports and feature requests. But you can send code patches to megatools@xff.cz β¨mailto:megatools@xff.czβ© to get them integrated into upstream repository. (slay, contribute, become the main character of the changelog π₯)
β¨ AUTHOR β¨
Megatools was written by Ondrej Jirman < megatools@xff.cz β¨mailto:megatools@xff.czβ© >, 2013-2022.
Official website is β¨https://xff.cz/megatools/β©. πΈ
and that's the whole page, bestie β megarc(5), dated 11 July 2025 π thanks for reading, go configure your login and go live your best command-line life π¦β¨
π¦ where this page comes from
- debian trixie: megatools 1.11.5-1 Β· GPL-2+with_exception
- ubuntu questing: megatools 1.11.5-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms