megatools-df(1)
π megatools-df β the "how much cloud space do I even have" page π
okay bestie, sit down, hydrate, and let's talk about megatools df, one of the lil stars of the megatools(1) squad β¨
πΈ NAME πΈ
megatools df β show total available, used, or free space in the cloud π«Ά
β¨ SYNOPSIS β¨
megatools df [--free|--total|--used] [--mb|--gb|-h]
that's it. that's the whole vibe. no cap π
π¦ DESCRIPTION π¦
It shows you the available, used, and free space in the cloud β and you can get that tea in either machine readable or human readable format, whichever one your lil heart desires π
π OPTIONS π
--totalβ only show the total available space, which is literally free + used. the whole pie π₯§--freeβ only show the free space. the leftover crumbs (affectionate) π--usedβ only show the used space. the part you actually did π--human,-hβ display file sizes in a human readable format. because53687091200is not a personality π--mbβ show everything in MiB units.--gbβ show everything in GiB units.-u <email>,--username <email>β account username (that's your email, bestie)-p <password>,--password <password>β account password π--no-ask-passwordβ never ask interactively for a password. it will not prompt you, periodt.--reloadβ reload the filesystem cache π--limit-speed <speed>β set the maximum allowed upload and download speed in KiB/s. this option overrides config file settings.0means no limit. when you're usingParallelTransfers > 1, the upload speed limit is applied to each transfer individually β so yes, they stack, watch out π--proxy <proxy>β use a proxy server to connect to mega.nz. this option overrides config file settings. more info lives in the libcurl documentation athttps://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html. some acceptable values are:none: disable proxy if it was enabled in the config file.socks5://localhost:9050: local SOCKSv5 proxy serversocks5h://localhost:9050: local SOCKSv5 proxy server with DNS handled by the proxy
--netif <ifname|ip>β network interface or local IP address used for outgoing connections. you have to specify an IP address that's bound to one of your local network interfaces when you're specifying an IP address. no random IPs, babe π--ip-proto <proto>β which IP protocol to prefer when connecting to mega.nz (v4,v6, orany). this is just an advisory option β megatools will resolve the mega.nz domain, and then use an A or AAAA record based on the stated preference. it's giving "suggestion, not a demand" π--config <path>β load configuration from a file--ignore-config-fileβ disable loading.megarc--debug [<options>]β enable debugging of various aspects of the megatools operation. you can enable multiple debugging options separated by commas. (eg.--debug api,fs) π
available options are:
http: dump HTTP request/response details (can be used to debug connection/proxy issues)api: dump Mega.nz API callsfs: dump Mega.nz filesystem (may require--reloadto actually print something)cache: dump cache contentstman: dump transfer manager events
--versionβ show version information β
π EXAMPLES π
- show overall human readable space usage information:
$ megatools df -h
Total: 50.0 GiB
Used: 6.4 GiB
Free: 43.6 GiB
- check free space from a script:
$ test `megatools df --free --gb` -lt 1 && \
echo "You have less than 1 GiB of available free space"
script girlies stay winning π«‘
π KNOWN BUGS π
megadf can't determine available space for premium accounts. yeah. it just can't. not its fault, not yours, we move on π§
π 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 fr fr π
π§ MEGATOOLS π§
part of the megatools(1) suite of commands. iconic lineage honestly π
π₯ BUGS π₯
there is no upstream support for bugreports and feature requests. but you can send code patches to megatools@xff.cz to get them integrated into the upstream repository. so like, bring a fix, not a complaint π
π AUTHOR π
Megatools was written by Ondrej Jirman < megatools@xff.cz >, 2013-2022.
official website is https://xff.cz/megatools/ β¨
and that's the whole page, bestie β megatools-df(1), dated 11 July 2025, straight from the megatools-df(1) manual. now go check your cloud space, you gorgeous nerd π«Άπ
π¦ 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