Ubuntu One有哪些命令行选项可用?[关闭]


11

在哪里可以看到Ubuntu One的命令行开关?目前,我只知道两个:“-minimized”和“ --with-icon”。在我的Windows计算机上安装Ubuntu One时,它们包含在快捷方式中。

我主要需要知道是否有一个可以从命令行启动Ubuntu One文件同步,所以我可以构建一个自定义调度程序。我认为操作系统的差异并不重要,因为到目前为止,所有命令都是通过“ ubuntuone-control-panel-qt”可执行文件控制的。我可能会误会。

Answers:


16

对于syncdaemon:

u1sdtool [OPTION]... [ARGS]

  u1sdtool [OPTION]... [ARGS]
   u1sdtool --wait
   u1sdtool --accept-share=SHARE_ID
   u1sdtool --reject-share=SHARE_ID
   u1sdtool --list-shares
   u1sdtool --refresh-shares
   u1sdtool --offer-share PATH USER SHARE_NAME ACCESS_LEVEL
   u1sdtool --list-shared
   u1sdtool --create-folder=PATH
   u1sdtool --delete-folder=FOLDER_ID
   u1sdtool --list-folders
   u1sdtool --subscribe-folder=FOLDER_ID
   u1sdtool --unsubscribe-folder=FOLDER_ID
   u1sdtool --refresh-volumes
   u1sdtool --rescan-from-scratch=VOLUME_ID
   u1sdtool --info=PATH
   u1sdtool --list-dirty-nodes
   u1sdtool --current-transfers
   u1sdtool --quit
   u1sdtool --connect
   u1sdtool --disconnect
   u1sdtool --status
   u1sdtool --waiting
   u1sdtool --waiting-metadata
   u1sdtool --waiting-content
   u1sdtool --start

选项

   --wait Wait until ubuntuone-syncdaemon reachs nirvana

   --accept-share=SHARE_ID
          Accept the share with the specified id

          SHARE_ID
                 The share id, as returned by --list-shares

   --reject-share=SHARE_ID
          Reject the share with the specified id

          SHARE_ID
                 The share id, as returned by --list-shares

   --list-shares
          Get the list of shares

   --refresh-shares
          request a refresh of the list of shares to the server

   --offer-share=PATH USER SHARE_NAME ACCESS_LEVEL
          share PATH to USER.

          PATH   A path of a  directory  or  file  managed  by  ubuntuone-
                 syncdaemon (can't be a path inside a Share)

          USER   The  (short)  username,  that  this  share is going to be
                 offered

          SHARE_NAME
                 The share name, as it's going to be offered to USER

          ACCESS_LEVEL
                 The acces level of USER to this share, can be: "View"  or
                 "Modify"

   --list-shared
          List the shared paths/shares offered.

   --create-folder=PATH
          Create user defined folder in the specified path

          PATH   The  path  of  a  directory  to  be managed by ubuntuone-
                 syncdaemon

   --delete-folder=FOLDER_ID
          Delete user defined folder identified by FOLDER_ID

          FOLDER_ID
                 The folder id, as returned by --list-folders

   --list-folders
          List all the user defined folders

   --subscribe-folder=FOLDER_ID
          Subscribe to the user defined folder specified by FOLDER_ID

          FOLDER_ID
                 The folder id, as returned by --list-folders

   --unsubscribe-folder=FOLDER_ID
          Unsubscribe from the user defined folder specified by FOLDER_ID

          FOLDER_ID
                 The folder id, as returned by --list-folders

   --refresh-volumes
          Request a refresh of the list of volumes to the server

   --rescan-from-scratch=VOLUME_ID
          Request a rescan from scratch for a volume.

          VOLUME_ID
                 The volume id, as returned by --list-folders  or  --list-
                 shares

   --info=PATH
          Request the metadata of PATH

          PATH   A  path  of  a  directory  or  file managed by ubuntuone-
                 syncdaemon

   --list-dirty-nodes
          Show the list of nodes marked as 'dirty'

   --current-transfers
          Show the current uploads and downloads

   --quit Shutdown ubuntuone-syncdaemon

   --connect
          Connect the syncdaemon

   --disconnect
          Disconnect the syncdaemon

   --status
          Get the current status of syncdaemon

   --waiting
          Get the operations being executed.

   --waiting-metadata
          Get the waiting metadata list (NOTE: This option  is  deprecated
          and will go away shortly)

   --waiting-content
          Get  the  waiting  content list (NOTE: This option is deprecated
          and will go away shortly)

          SHARE_ID
                 The share id, as returned by --waiting

          NODE_ID
                 The node id, as returned by --waiting

   --free-space=VOLUME_ID
          Get the free space for a volume.

          VOLUME_ID
                 The volume id, as returned by --list-folders  or  --list-
                 shares

   --start
          Start syncdaemon if it's not running

请注意,在Windows上, ubuntuone-control-panel-qt.exe 应在执行之前完全运行 u1sdtool.exe

资料来源:http : //manpages.ubuntu.com/manpages/precise/man1/u1sdtool.1.html


谢谢@ObsessiveFOSS。“ --connect”命令绝对是最有用的。我会试一试并报告。
toddimyre 2012年

2
它确实解决了我的问题。非常感谢你。对于Windows客户端,应该注意的是,在使用“ u1sdtool.exe”之前,您必须完全运行“ ubuntuone-control-panel-qt.exe”。
toddimyre 2012年

@toddimyre我很少使用Windows,对此遗漏感到抱歉。
nanofarad 2012年

没关系。我在两个不同的Windows系统,两个不同的Ubuntu系统和一个Mac系统(正在工作)之间跳动,因此我了解系统之间的差异。
toddimyre 2012年

您能否在答案中记下Windows注释,并检查“精确”手册页是否没有显示来自Lucid的其他/更改的开关?谢谢,很好的答案。
ish 2012年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.