Cadaver: Unterschied zwischen den Versionen

Aus Foxwiki
Zeile 150: Zeile 150:


===== COMMAND REFERENCE =====
===== COMMAND REFERENCE =====
ls [path]
{| class="wikitable sortable"
 
|-
List contents of current [or other] collectio
! Option!!Beschreibung
 
|-
cd path
|-
 
| ls [path] || List contents of current [or other] collection
Change to specified collectio
|-
 
| cd path || Change to specified collectio
pwd
|-
 
| pwd || Display name of current collection
Display name of current collectio
|-
 
| put local [remote] || Upload local file
put local [remote]
|-
 
| get remote [local] || Download remote resource
Upload local file
|-
 
| mget remote... || Download many remote resources
get remote [local]
|-
 
| mput local... || Upload many local files
Download remote resource
|-
 
| edit resource || Edit given resource
mget remote...
|-
 
| less remote... || Display remote resource through pager
Download many remote resources
|-
 
| mkcol remote... || Create remote collection(s)
mput local...
|-
 
| cat remote... || Display remote resource(s)
Upload many local files
|-
 
| delete remote... || Delete non-collection resource(s)
edit resource
|-
 
| rmcol remote... || Delete remote collections and ALL contents
Edit given resource
|-
 
| copy source... dest || Copy resource(s) from source to dest
less remote...
|-
 
| move source... dest || Move resource(s) from source to dest
Display remote resource through pager
|-
 
| lock resource || Lock given resource
mkcol remote...
|-
 
| unlock resource || Unlock given resource
Create remote collection(s)
|-
 
| discover resource || Display lock information for resource
cat remote...
|-
 
| steal resource || Steal lock token for resource
Display remote resource(s)
|-
 
| showlocks || Display list of owned locks
delete remote...
|-
 
| propnames res || Names of properties defined on resource
Delete non-collection resource(s)
|-
 
| chexec [+|-] remote || Change isexecutable property of resource
rmcol remote...
|-
 
| propget res [propname] || Retrieve properties of resource
Delete remote collections and ALL contents
|-
 
| propset res propname value || Set property on resource
copy source... dest
|-
 
| set [option] [value] || Set an option, or display options
Copy resource(s) from source to dest
|-
 
| open URL || Open connection to given URL
move source... dest
|-
 
| close || Close current connectio
Move resource(s) from source to dest
|-
 
| quit || Exit program
lock resource
|-
 
| unset [option] [value] || Unsets or clears value from option.
Lock given resource
|-
 
| lcd [directory] || Change local working directory
unlock resource
|-
 
| lls [options] || Display local directory listing
Unlock given resource
|-
 
| lpwd || Print local working directory
discover resource
|-
 
| logout || Logout of authentication sessio
Display lock information for resource
|-
 
| help [command] || Display help message
steal resource
|}
 
Steal lock token for resource
 
showlocks
 
Display list of owned locks
 
propnames res
 
Names of properties defined on resource
 
chexec [+|-] remote
 
Change isexecutable property of resource
 
propget res [propname]
 
Retrieve properties of resource
 
propset res propname value
 
Set property on resource
 
set [option] [value]
 
Set an option, or display options
 
open URL
 
Open connection to given URL
 
close
 
Close current connectio
 
quit
 
Exit program
 
unset [option] [value]
 
Unsets or clears value from option.
 
lcd [directory]
 
Change local working directory
 
lls [options]
 
Display local directory listing
 
lpwd
 
Print local working directory
 
logout
 
Logout of authentication sessio
 
help [command]
 
Display help message

Version vom 23. Dezember 2022, 11:25 Uhr

cadaver - A command-line WebDAV client for Unix.

Beschreibung

cadaver is a command-line WebDAV client for Unix. It supports file upload, download, on-screen display, namespace operations (move/copy), collection creation and deletion, and locking operations.

Cadaver is a command-line interface for WebDAV. It can be useful for automated and script-based command-line functions, such a remote copying.

WebDAV Client für Unix. Unterstützt: Upload, Download, namespace Operationen, (move/copy), Entwurf und Entfernung von Collections, locking Operationen

Installation

# apt install cadaver

Anwendungen

$ cadaver http://dav.example.com/

Connects to the server myserver.example.com, opening the root collection.

cadaver http://zope.example.com:8022/Users/fred/

Connects to the server zope.example.com using port 8022, opening the collection "/Users/fred/".

cadaver https://secure.example.com/

Connects to a server called secure.example.com using SSL.

Fehlerbehebung

Syntax

Optionen

Parameter

Umgebungsvariablen

Exit-Status

Konfiguration

Dateien

Option Beschreibung
~/.cadaverrc Individual user settings that can override cadaver defaults and to script cadaver. Can be changed by the "--rcfile" option.
~/.netrc Login and initialization information used by the auto-login process. See section "THE .netrc FILE" for details.

THE .netrc FILE

The file ~/.netrc may be used to automatically login to a server requiring authentication. The following tokens (separated by spaces, tabs or newlines) may be used:

machine host

Identify a remote machine host which is compared with the hostname given on the command line or as an argument to the open command. Any subsequent tokens up to the end of file or the nextmachine or default token are associated with this entry.

default

This is equivalent to the machine token but matches any hostname. Only one default token may be used and it must be after all machine tokens.

login username

Specifies the username to use when logging in to the remote machine.

password string passwd string

Specifies the password to use when logging in to the remote machine.

Any other tokens (as described in [man:/ftp(1) ftp](1)) are ignored.

Sicherheit

Dokumentation

RFC

Man-Pages

Info-Pages

Siehe auch

  1. ftp(1)
  2. smbclient(1)

Links

Projekt-Homepage

Weblinks

Einzelnachweise

Testfragen

Testfrage 1

Antwort1

Testfrage 2

Antwort2

Testfrage 3

Antwort3

Testfrage 4

Antwort4

Testfrage 5

Antwort5


TMP

cadaver is a command-line WebDAV client for Unix. It supports file upload, download, on-screen display, namespace operations (move/copy), collection creation and deletion, and locking operations. * http://www.WebDAV.org/cadaver/

Cadaver is a command-line interface for WebDAV. It can be useful for automated and script-based command-line functions, such a remote copying. Install:

#apt install cadaver

WebDAV Client für Unix. Unterstützt: Upload, Download, namespace Operationen, (move/copy), Entwurf und Entfernung von Collections, locking Operationen

NAME

cadaver - A command-line WebDAV client for Unix.

SYNOPSIS
cadaver [-trp[-r file][-p host[:port]]][-V][-h] http://hostname[:port]/path
DESCRIPTION

cadaver supports file upload, download, on-screen display, namespace operations (move and copy), collection creation and deletion, and locking operations.

Its operation is similar to the standard BSD [man:/ftp(1) ftp](1) client and the Samba Project's [man:/smbclient(1) smbclient](1). A user familiar with these tools should be quite comfortable with cadaver.

cadaver supports automatically logging in to servers requiring authentication via a .netrc file (similar to [man:/ftp(1) ftp](1) - see section "THE .netrc FILE" below).

OPTIONS
-t, --tolerant

Allow cd/open into non-WebDAV enabled collection; use if the server or proxy server has WebDAV compliance problems.

-r, --rcfile=file

Use this rcfile rather than the default of ~/.cadaverrc

-p, --proxy=host[:port]

Connect using the proxy host "host" and optional proxy port "port".

-V, --versio

Display version information and exit.

-h, --help

Display this help message and exit.

COMMAND REFERENCE
Option Beschreibung
ls [path] List contents of current [or other] collection
cd path Change to specified collectio
pwd Display name of current collection
put local [remote] Upload local file
get remote [local] Download remote resource
mget remote... Download many remote resources
mput local... Upload many local files
edit resource Edit given resource
less remote... Display remote resource through pager
mkcol remote... Create remote collection(s)
cat remote... Display remote resource(s)
delete remote... Delete non-collection resource(s)
rmcol remote... Delete remote collections and ALL contents
copy source... dest Copy resource(s) from source to dest
move source... dest Move resource(s) from source to dest
lock resource Lock given resource
unlock resource Unlock given resource
discover resource Display lock information for resource
steal resource Steal lock token for resource
showlocks Display list of owned locks
propnames res Names of properties defined on resource
-] remote Change isexecutable property of resource
propget res [propname] Retrieve properties of resource
propset res propname value Set property on resource
set [option] [value] Set an option, or display options
open URL Open connection to given URL
close Close current connectio
quit Exit program
unset [option] [value] Unsets or clears value from option.
lcd [directory] Change local working directory
lls [options] Display local directory listing
lpwd Print local working directory
logout Logout of authentication sessio
help [command] Display help message