There seem to be at least two valid answers
sda
can correctly be called the "basename" for the drive.
sda
can also correctly be called the "kernel disk name" for the drive.
How did you reach this conclusion?
By process of elimination on each of the plausible candidates:
This cannot be the correct term. As noted in the original question, it refers to the fully qualified name (e.g. /dev/sda
), not to the final fragment (e.g. sda
).
Corroborating evidence exists in additional sources, such as p.68 of The Definitive Guide to SUSE Linux Enterprise Server 12:
You can also choose to use … a mount that is based on device name (such as /dev/sdb1
) …
and p.94 of The Linux Bible 2008 Edition:
Click the Device tab and type the device name (such as /dev/cdrom
) …
- "filename" or "file name"
This cannot be the correct term either, as it is used in technical documentation as a synonym for the fully qualified name (e.g. /dev/sda
), not just the final fragment (e.g. sda
):
BASENAME(1):
basename - strip directory and suffix from filenames
DIRNAME(1):
dirname - strip last component from file name
This cannot be the correct term either, as it is used in technical documentation as a synonym for the fully qualified name (e.g. /dev/sda
), not just the final fragment (e.g. sda
):
GNU Coreutils: basename invocation:
basename
removes any leading directory components from name.
GNU Coreutils: dirname invocation:
dirname
prints all but the final slash-delimited component of each name.
- "shortname" or "short name"
This cannot be the correct term either. I cannot find any technical documentation that refers to the last part of a device name as a "shortname" or a "short name". Those terms seem to be used, in Linux or GNU, only in the context of either VFAT mount options, or host names on networks.
This term appears to be a valid answer, based upon p.149 of Installing Red Hat Linux 7:
Make absolutely sure that the basename of the disk you are planning to partition is not listed (this is hdb
, in the case of the drive I added).
and the course notes for CST8207 (GNU/Linux Operating Systems) at Algonquin College:
Definition of basename: The basename of any pathname is its right-most name component, to the right of its right-most slash.
and p.1456 of A Practical Guide to Red Hat Linux 8:
basename: The name of a file that, in contrast to a pathname, does not mention any of the directories containing the file (and therefore does not contain any slashes [/]). For example, hosts
is the basename of /etc/hosts
.
Happily, GNU/Linux also has a basename
command, which can be used to obtain the basename:
$ basename '/dev/sda'
sda
This term also appears to be a valid answer, due to p.100 of Linux Kernel in a Nutshell:
/dev/<diskname>
Use the kernel disk name specified by <diskname>
as the root disk.
Incidentally, "kernel disk name" also appears to be valid terminology in the context of Solaris:
For this version of the iostat command, the output shows extended statistics for only those disk devices with nonzero activity, by physical device path instead of the logical kernel disk name (that is, c0t0d0
instead of sd0
).
dkinfo
, which is not part of Linux or GNU/Linux (but instead is part of SunOS), is out of scope, sorry.