idevicename
Get connected iOS device name
TLDR
Display the current device name
Set a new device name
SYNOPSIS
idevicename [-u UDID] [-d] [NEW_NAME]
PARAMETERS
-u, --udid UDID
Target specific device by its 40-digit UDID
-d, --debug
Enable detailed communication debugging output
-V, --version
Print version information and exit
-h, --help
Print usage summary and exit
DESCRIPTION
The idevicename command is part of the libimobiledevice suite, an open-source library for communicating with iOS devices on Linux and other platforms without Apple's proprietary tools like iTunes. It allows users to query the current name of a connected iOS device (iPhone, iPad, iPod Touch) or change it to a new one.
When invoked without a new name argument, it displays the device's current name as set in iOS Settings. Providing a new name as the final argument updates it, which syncs across iTunes, Finder, and the device itself. The device must be connected via USB, unlocked, and have trusted the host computer.
This utility is essential for device management scripts, automation, and customization in Linux environments. It leverages the Lockdown service on the device for name operations. Debug mode aids troubleshooting connection issues.
CAVEATS
Requires libimobiledevice and usbmuxd services running; device must be trusted and unlocked. Name changes may not persist if device is restored. Limited to USB connections.
EXAMPLES
idevicename
Prints current device name.
idevicename "My iPhone"
Sets device name to 'My iPhone'.
idevicename -u 00008030-001979360EE8002E -d
Debug get name for specific UDID.
HISTORY
Developed as part of libimobiledevice project since 2007 by Nikias Bassen and contributors. Supports iOS 1.x to modern versions; added to utils package around 2010 for easier device management.
SEE ALSO
idevice_id(1), ideviceinfo(1), idevicediagnostics(1), usbmuxd(8)


