1megatools-df(1)                                                megatools-df(1)
2
3
4

NAME

6       megatools df - Show total available, used, or free space in the cloud
7

SYNOPSIS

9              megatools df [--free|--total|--used] [--mb|--gb|-h]
10

DESCRIPTION

12       Shows  available,  used and free space in the cloud in machine or human
13       readable formats.
14

OPTIONS

16       --total
17              Show only total available space (free + used).
18
19       --free Show only free space.
20
21       --used Show only used space.
22
23       --human , -h
24              Display file sizes in a human readable format.
25
26       --mb   Show in MiB units.
27
28       --gb   Show in GiB units.
29
30       -u <email> , --username <email>
31              Account username (email)
32
33       -p <password> , --password <password>
34              Account password
35
36       --no-ask-password
37              Never ask interactively for a password
38
39       --reload
40              Reload filesystem cache
41
42       --limit-speed <speed>
43              Set maximum allowed upload and download speed  in  KiB/s.   This
44              option  overrides  config file settings. 0 means no limit.  When
45              using ParallelTransfers > 1, upload speed limit  is  applied  to
46              each transfer individually.
47
48       --proxy <proxy>
49              Use  proxy  server  to connect to mega.nz. This option overrides
50              config file settings.  More information can be found in  libcurl
51              documentation       at      ⟨https://curl.haxx.se/libcurl/c/CUR
52              LOPT_PROXY.html⟩.  Some acceptable values are:
53
54              • none : Disable proxy if it was enabled in the config file.
55
56              • socks5://localhost:9050 : Local SOCKSv5 proxy server
57
58              • socks5h://localhost:9050 : Local SOCKSv5 proxy server with DNS
59                handled by the proxy
60
61       --netif <ifname|ip>
62              Network  interface or local IP address used for outgoing connec‐
63              tions.  You have to specify IP address bound to some of your lo‐
64              cal network interfaces, when specifying an IP address.
65
66       --ip-proto <proto>
67              Which  IP protocol to prefer when connecting to mega.nz (v4, v6,
68              or any).  This is just an advisory option.  Megatools  will  re‐
69              solve  mega.nz domain, and then use an A or AAAA record based on
70              the stated preference.
71
72       --config <path>
73              Load configuration from a file
74
75       --ignore-config-file
76              Disable loading .megarc
77
78       --debug [<options>]
79              Enable debugging of various aspects of the megatools  operation.
80              You  may  enable multiple debugging options separated by commas.
81              (eg. --debug api,fs)
82
83              Available options are:
84
85              • http: Dump HTTP request/response details (can be used to debug
86                connection/proxy issues)
87
88              • api: Dump Mega.nz API calls
89
90              • fs:  Dump Mega.nz filesystem (may require --reload to actually
91                print something)
92
93              • cache: Dump cache contents
94
95              • tman: Dump transfer manager events
96
97       --version
98              Show version information
99

EXAMPLES

101       • Show overall human readable space usage information:
102
103         $ megatools df -h
104         Total: 50.0 GiB
105         Used:  6.4 GiB
106         Free:  43.6 GiB
107
108       • Check free space from a script:
109
110         $ test `megatools df --free --gb` -lt 1 && \
111           echo "You have less than 1 GiB of available free space"
112

KNOWN BUGS

114       Megadf can’t determine available space for premium accounts.
115

SEE ALSO

117       megatools(1), megarc(5), megatools-df(1),  megatools-dl(1),  megatools-
118       get(1),  megatools-ls(1),  megatools-mkdir(1),  megatools-put(1), mega‐
119       tools-reg(1), megatools-rm(1), megatools-copy(1).
120

MEGATOOLS

122       Part of the megatools(1) suite of commands.
123

BUGS

125       Report bugs  to  megatools@megous.com  ⟨mailto:megatools@megous.com⟩  .
126       Your  message  will  end up in a public archive, so be careful what you
127       say or send.
128

AUTHOR

130       Megatools was written by Ondrej Jirman < megatools@megous.com
131       ⟨mailto:megatools@megous.com⟩ >, 2013-2022.
132
133       Official website is ⟨http://megatools.megous.com⟩.
134
135
136
137                                 20 July 2023                  megatools-df(1)
Impressum