Mounting CIFS Shares from the command line

From Da Nerd Mage Wiki
Revision as of 18:18, 19 January 2022 by Tinker (talk | contribs) (Created page with "= Install cifs-utils = *<code>sudo apt install cifs-utils -y</code> = Create a mount point = *<code>sudo mkdir /'''MOUNTPOINT'''</code> = Mount the share = *<code>sudo mount -t cifs -o username='''USER''',password='''PASSWORD''' //'''SERVERNAME'''/'''SHARENAME''' ~/'''MOUNTPOINT'''</code> = Check it out = *<code>ls /'''MOUNTPOINT'''</code>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install cifs-utils

  • sudo apt install cifs-utils -y

Create a mount point

  • sudo mkdir /MOUNTPOINT

Mount the share

  • sudo mount -t cifs -o username=USER,password=PASSWORD //SERVERNAME/SHARENAME ~/MOUNTPOINT

Check it out

  • ls /MOUNTPOINT