7

I am running Ubuntu Server 18.04, and I was wondering if it was possible to download mega.nz files from the command-line, e.g. using putty or some other tool?

  • 4
    Why would you need putty for that? And no: putty is a desktop tool for connecting to a server and has nothing to do with the ability to download files from another server. Have a look at the commands wget and curl. Both accept URLs as a download method. – Rinzwind Nov 15 '19 at 9:00
  • @Rinzwind I have same question for my centos server! There is no ordinary way to download files from mega.nz website because they are using very specific file sharing links that only work on their wesite in web browser! you should click at link from their own site to download! – Mojtaba Rezaeian Jan 4 at 7:33
9

Megatools allow you to copy individual files as well as entire directory trees to and from the cloud. You can also perform streaming downloads for example to preview videos and audio files, without needing to download the entire file first. Megatools are robust and optimized for fast operation - as fast as Mega servers allow. This is quite fast. Memory requirements and CPU utilization are kept at minimum.

Megatools is provided in Ubuntu by the universe repository. You can install megatools in all currently supported versions of Ubuntu with the following command:

sudo apt install megatools
  • Its too complicated to use, also it adds many unwanted commands on linux and none of them is megatools, no help to find list of those added commands and thats crazy for complicating a simple job!! also it requires to enter email and password to sign in. I just want to download a file from their site from link and without signing in. – Mojtaba Rezaeian Jan 4 at 7:39
  • @MojtabaRezaeian It's possible to download a file from MEGA from a link without signing in to MEGA, but this only works if you already have the link. MEGA website only supports searching for files for users who have signed in. – karel Jan 4 at 7:43
  • I have the link, this is the file: [mega.nz/file/… – Mojtaba Rezaeian Jan 4 at 7:46
  • The movie is visible on that link.. also it have a download button under movie on same page and its working in my windows firefox without requiring me to sign in. But same link not working on linux with wget and not even after installing megatools and using command megadl. thats wiered. – Mojtaba Rezaeian Jan 4 at 7:53
  • I also tried to open that page with lynx command! no chance! seems their site is pretty secured! that seems a very specific kind of security platform. – Mojtaba Rezaeian Jan 4 at 8:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.