Linux equivalent to Net Use command of Windows

Keedy picture Keedy · Aug 21, 2014 · Viewed 15.5k times · Source

I have this command in Windows. I want to change it to a Linux command.

net use O: \\10.2.6.72\aaa_bbb_1 /USER:corp\first.last "secret"
  • Command used: net use
  • Location to take from: O: \\10.2.6.72\aaa_bbb_1
  • Username: corp\first.last
  • Password: "secret"

How do I write this code as a Linux command?

Answer

eik3 picture eik3 · Aug 21, 2014
mount.cifs //10.2.6.72/aaa_bbb_1 ~/drive-o -o username=domain\username,password=password

Note that the directory "drive-o" (the mount point) in your home has to exist. You might have to prepend sudo.

Which Linux is it?