Skip to main content
  1. Posts/

Access File Share with smbclient

·1 min·
linux linux
Table of Contents

smbclient merupakan utilitas yang menyediakan interface mirip seperti FTP untuk mengakses SMB/CIFS di server. SMB/CIFS (Server Message Block/Common Internet File System) adalah protokol jaringan yang digunakan untuk berbagi file, printer, dan sumber daya lainnya antar komputer di jaringan.

smbclient usage
#

Connect ke SMB server

smbclient //IPserver/share -U user

Connect ke SMB server dengan port tertentu

smbclient //IPserver/share -U user -p 8045

Download file dari server

smbclient //IPserver/share --directory path/to/directory --command "get file.txt"

Upload file ke server

smbclient //IPserver/share --directory path/to/directory --command "put file.txt"

Untuk download semua file secara recursive.

smbclient \\IPserver\share -U user
mask ""
recurse ON
prompt OFF
cd 'path\to\remote\dir'
lcd '~/path/to/download/to/'
mget *

Jika dalam satu baris perintah.

smbclient \\IPserver\share -U user -N \
-c 'prompt OFF;recurse ON;cd 'path\to\directory\';lcd '~/path/to/download/to/';mget *'`

Related

Configure Scheduling Class and Priority Disk I/O in Linux
·2 mins
linux linux
Find Linux Package That Provides Specific File
·1 min
linux linux ubuntu centos
Mengatasi Masalah Interface Ethernet Tidak Terdeteksi
·1 min
linux linux
Error Display_Server_Not_Supported di AnyDesk
·1 min
linux linux
Eksekusi Skrip Saat Startup dan Shutdown
·2 mins
linux linux
Create Multiple IP Addresses in Linux
·2 mins
linux centos ubuntu linux