Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux equivalent to Net Use command of Windows [closed]

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?

like image 397
Keedy Avatar asked Aug 21 '14 11:08

Keedy


1 Answers

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?

like image 123
eik3 Avatar answered Oct 01 '22 09:10

eik3