Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
Change Name of Bluetooth Device from Command Line in macOS
Mac Version 10.15.2 (macOS Catalina)
Does anyone know how to change the name of a connected bluetooth device from the command line on macOS?
I am having trouble with various bluetooth devices which I cannot get the "rename" option in the GUI to "save" properly and so I cannot rename a few devices (two keyboards, one headset)
I tried installing BluetoothConnector
but this utility only permits connecting and disconnecting (and notify).
I was able to change the the name of the mouse using the GUI, but when I change the name of the keyboards or bluetooth headset, the name changes do not "stick".
So, searched the web for a way to do this with a single command line tool and did not find anything.
If anyone has one, that would be great; but is is not critical.
The issue I am facing is that I sometimes like to use a small backlit bluetooth keyboard in the dark, I bought this keyboard on Aliexpress:
This keyboard works "OK" and the backlight feature is really good; but there is some communications problem with it when I try to manage it using bluetooth preferences (it hangs). The keyboard works fine; but it has as adverse effect on bluetooth setup, overall.
It's not a big deal, just an annoyance.
I don't think renaming it will make a difference, but I wanted to try anyway; but I cannot rename it via the GUI (in a way which actually "holds"), so I am looking for some robust command line tools for the mac.
Hello,
I have a backup script that runs an rsync backup to an external drive. I use the script frequently on Windows and Linux and have installed it on a Mac. The script has an option to run shutdown after the backup has completed. Since backup can take hours to run, this is an option that is... (10 Replies)
Hi,
I want to write a small code in which script changes command line input to some form.
Example
script.sh a1 a2 a3 a4 .....
output should be "a1|a2|a3|....."
Number of inputs in command line can be any variable (2 Replies)
hi,
sorry for posting this for a quick answer.
Is there a one line command to change permissions on files in a directory to a given mode (say 554) and only for those files that do not already have that mode?
Running chmod updates the last access/modified timestamp on the files, and i want to... (11 Replies)
I want to change the extensions of a folder full of files (some of the files are located in subfolders as well) to another extension, but instead of replacing the files I want the new files to be copied into a newly created folder.
Here is the folder structure:
/Downloads/3eb... (3 Replies)
I am looking to change a data file into a javascript string and this is the code that I am using:
sed -i '' -e 's/^/str += "/' -e 's/$/";/' file.xml
The first part
-e 's/^/str += "/'
works as intended, but the second part
-e 's/$/";/'
adds an additional newline to my file, so that instead of... (3 Replies)
Hello and thank you in advance for any assistance.
Working with SCO 5.0.5 our SCSI tape device is no longer working.
Before we replace the unit I want to verify it's not related to a change
someone may have made via mkdev tape.
For years the boot message would list the tape device as this:... (1 Reply)
Hi,
I'm trying to execute my program from $prompt by passing many parameters which is more than 300 charecters in line but unix not accepting those many charecters, could some one help me how to increase the size?
thanks (7 Replies)
Hi, I am i new Unix linux user. I've installed the linux 9 and i uninstall it. the first time i install the linux, the GRUB show the graphical interface. But after i reinstall it again, the GRUB change to command line. I can't boot my comp now. What should I do? And i don't know how to deal with... (4 Replies)
Hi, I am i new Unix linux user. I've installed the linux 9 and i uninstall it. the first time i install the linux, the GRUB show the graphical interface. But after i reinstall it again, the GRUB change to command line. I can't boot my comp now. What should I do? And i don't know how to deal with... (1 Reply)