|
193.
|
|
|
Another way to copy files from a Windows server is to use the <application>smbclient</application> utility. To list the files in a Windows share:
|
|
|
|
(no translation yet)
|
In Ubuntu: |
|
Otra forma de copiar ficheros dende un sirvidor Windows ye usar l'aplicación <application>smbclient</application>. Pa llistar los ficheros asitiaos nun recursu compartíu de Windows:
|
|
|
Suggested by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1223(para)
|
|
194.
|
|
|
smbclient //fs01.example.com/share -k -c "ls"
|
|
|
|
smbclient //fs01.ejemplo.com/share -k -c "ls"
|
|
Translated and reviewed by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1229(command)
|
|
195.
|
|
|
To copy a file from the share, enter:
|
|
|
|
Pa copiar un ficheru d'un recursu compartíu, escribi:
|
|
Translated and reviewed by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1235(para)
|
|
196.
|
|
|
smbclient //fs01.example.com/share -k -c "get file.txt"
|
|
|
|
smbclient //fs01.exemplo.com/share -k -c "get ficheru.txt"
|
|
Translated and reviewed by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1240(command)
|
|
197.
|
|
|
This will copy the <filename>file.txt</filename> into the current directory.
|
|
|
|
Esto copiará <filename>ficheru.txt</filename> nel direutoriu actual.
|
|
Translated and reviewed by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1243(para)
|
|
198.
|
|
|
And to copy a file to the share:
|
|
|
|
Y pa copiar un ficheru al recursu compartíu:
|
|
Translated and reviewed by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1250(para)
|
|
199.
|
|
|
smbclient //fs01.example.com/share -k -c "put /etc/hosts hosts"
|
|
|
|
smbclient //fs01.exemplu.com/share -k -c "put /etc/hosts hosts"
|
|
Translated and reviewed by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1255(command)
|
|
200.
|
|
|
This will copy the <filename>/etc/hosts</filename> to <filename>//fs01.example.com/share/hosts</filename>.
|
|
|
|
Esto copiará <filename>/etc/hosts</filename> a <filename>//fs01.example.com/share/hosts</filename>.
|
|
Translated and reviewed by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1258(para)
|
|
201.
|
|
|
The <emphasis>-c</emphasis> option used above allows you to execute the <application>smbclient</application> command all at once. This is useful for scripting and minor file operations. To enter the <emphasis>smb: \></emphasis> prompt, a FTP like prompt where you can execute normal file and directory commands, simply execute:
|
|
|
|
(no translation yet)
|
In Ubuntu: |
|
La opción <emphasis>-c</emphasis> usada enantes déxate executar el comandu <application>smbclient</application> al vuelu. Esto val cuando s'usen scripts y n'operaciones menores con ficheros. Pa entrar nel intérprete <emphasis>smb: ></emphasis>, un intérprete paecíu al del FTP onde puedes executar comandos normales de ficheros y directorios, executa a cencielles:
|
|
|
Suggested by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1265(para)
|
|
202.
|
|
|
smbclient //fs01.example.com/share -k
|
|
|
|
smbclient //fs01.exemplu.com/share -k
|
|
Translated and reviewed by
Xandru Martino
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1272(command)
|