Skip to content

Instantly share code, notes, and snippets.

@typelogic
Last active February 11, 2019 08:49
Show Gist options
  • Save typelogic/6d886795abcd9fa302406f691c8ea5c7 to your computer and use it in GitHub Desktop.
Save typelogic/6d886795abcd9fa302406f691c8ea5c7 to your computer and use it in GitHub Desktop.
linux windows share
sudo apt-get install smbclient cifs-utils
sudo mkdir /share/
sudo mount -t cifs -o username=john,password=pass123 //somehostname/public/ /share
# or
smbclient //somehostname/public -U john
get testfile.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment