Install "Bluez-tools"(ref.):
$ sudo apt-get install bluez-tools To discover a device:
$ bt-adapter -d
Searching...
And when it founds a device, it shows like this:
$ bt-adapter -d
Searching...
[MAC]
Name: (name)
Alias: (alias)
Address: (MAC)
Icon: (device type)
Class: (...)
LegacyPairing: 0
Paired: 0
RSSI: (power)
To connect to the device:
$ bt-device -c [MAC]
Connecting to: [MAC-address]
Confirm passkey: "some munber" (yes/no)?:....(if yes)
Done
To send a file it can be used the device's name or MAC-address, and with "sudo":
$ sudo bt-obex -p [Name|MAC] file