v1ral_ITS

Linux Terminal MEGA online server command line contorl

Apr 6th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.94 KB | None | 0 0
  1. ***************************************
  2. ** EASY MEGA TOOLS TERMINAL COMMANDS **
  3. ***************************************
  4.  
  5. 1. NAME
  6.  
  7. megatools - Mega.nz command line tools
  8. 2. SYNOPSIS
  9.  
  10.     megadf [--free|--total|--used] [--mb|--gb|-h]
  11.     megals [-e] [-h] [--header] [-l] [-R] [-n] [<remotepaths>]
  12.     megaput [--no-progress] [--path <remotepath>] <paths>
  13.     megamkdir <remotepaths>
  14.     megamkdir /Contacts/<contactemail>
  15.     megaget [--no-progress] [--path <path>] <remotepaths>
  16.     megaget --path - <remotefile>
  17.     megarm <remotepaths>
  18.     megarm /Contacts/<contactemail>
  19.     megadl [--no-progress] [--path <path>] <links>
  20.     megadl --path - <filelink>
  21.     megareg [--scripted] --register --email <email> --name <realname> --password <password>
  22.     megareg [--scripted] --verify <state> <link>
  23.  
  24. 3. DESCRIPTION
  25.  
  26. Megatools is a collection of programs for accessing Mega service from a command line of your desktop or server.
  27.  
  28. 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.
  29.  
  30. Megatools are robust and optimized for fast operation - as fast as Mega servers allow. Memory requirements and CPU utilization are kept at minimum.
  31.  
  32. You can register account using a megareg(1) tool, with the benefit of having true control of your encryption keys.
  33.  
  34. Mega website can be found at http://mega.nz.
  35.  
  36. Megatools can be downloaded at http://megatools.megous.com
  37. 4. TOOLS OVERVIEW
  38.  
  39. megareg(1)
  40.     Register and verify a new mega account
  41. megadf(1)
  42.     Show your cloud storage space usage/quota
  43. megals(1)
  44.     List all remote files
  45. megamkdir(1)
  46.     Create remote directory
  47. megarm(1)
  48.     Remove remote file or directory
  49. megaput(1)
  50.     Upload individual files
  51. megaget(1)
  52.     Download individual files
  53. megadl(1)
  54.     Download file from a "public" Mega link (doesn’t require login)
  55. megacopy(1)
  56.     Upload or download a directory tree
  57.  
  58. 5. CONFIGURATION FILES
  59.  
  60. See megarc(5) for information about mega configuration file.
  61.  
  62. Each of the individual tools have help that can be accessed using --help parameter.
  63. 6. SESSION CACHE
  64.  
  65. If you modify cloud filesystem from the Mega.nz website or from another computer, you’ll need to refresh your session cache. This can be done by using the --reload option to any tool, or by waiting for a cache timeout (default timeout is set to 10 minutes).
  66. 7. REMOTE FILESYSTEM
  67.  
  68. Mega.nz filesystem is represented as a tree of nodes of various types. Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC). Structure of the filesystem is not encrypted.
  69.  
  70. Megatools maps node tree structure to a traditional filesystem paths (eg. /Root/SomeFile.DAT).
  71.  
  72. NOTE: By the nature of Mega.nz storage, several files in the directory can have the same name. To allow access to such files, the names of conflicting files are extended by appending dot and their node handle like this:
  73.  
  74. /Root/conflictingfile
  75. /Root/conflictingfile.7Fdi3ZjC
  76. /Root/conflictingfile.mEU23aSD
  77.  
  78. You need to be aware of several special folders:
  79.  
  80. /Root
  81.     Writable directory representing the root of the filesystem.
  82. /Trash
  83.     Trash directory where Mega.nz web client moves deleted files. This directory is not used by megatools when removing files.
  84. /Inbox
  85.     Not sure.
  86. /Contacts
  87.     Directory containing subdirectories representing your contacts list. If you want to add contacts to the list, simply create subdirectory named after the contact you want to add.
  88. /Contacts/<email>
  89.     Directories representing individual contacts in your contacts list. These directories contain folders that others shared with you. All shared files are read-only, at the moment.
  90.  
  91. 8. SEE ALSO
  92.  
  93. megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1), megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1).
  94. 9. MEGATOOLS
  95.  
  96. Part of the megatools(7) suite.
Add Comment
Please, Sign In to add comment