How to create a link to a device like /dev/tty.xyz

P

Philipina

Guest
Hello,

I have a problem because I'm using a usb/serial converter under Mac OS x and the name given by the driver is too long "/dev/tty.ASZU2D9876F.R". I would like to create a link (with a shorter name) to this device but I' can't.
Here is the command I used :
ln -s /dev/tty.ASZU2D9876F.R /dev/ttyS99

but in this case I get the result "ln: /dev/ttyS99: Permission denied"

I'm logged as Administrator! Can anyone of you explain me how can I create a link to be able to use a shorter name than tty.ASZU2D9876F.R ?

Thanks in advance for your answers.

Remi.
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
You don't have enough power (permission) to complete the process. Try using the sudo command.

sudo ln -s /dev/tty.ASZU2D9876F.R /dev/ttyS99
 
OP
P

Philipina

Guest
Oups, after restarting my machine to link is not there anymore. I cannot live with that!
I imagine it is due to the fact that my usbserial converter is not detected when the OS tries to create the link at startup.
I wanted to launch a script at startup but as sudo requests the password I cannot do this!
Does anyone of you have an idea?

Thanks in advance.

Alain
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top