ALERT

Cisco CloudCenter: Get the Hybrid IT Advantage

Basename

Definition - What does Basename mean?

A basename is the name of a directory in a Unix pathname that occurs after the last slash. It is also the name of a standard utility on Unix-like systems that returns the basename when given a Unix pathname. This program is part of the Single Unix Specification and installed on nearly every system, including most Linux distributions.

Techopedia explains Basename

A basename is the last directory in a Unix path after the last slash. For example, in the pathname /usr/share/techopedia, the basename would be "techopedia." There is also a utility called basename that returns the basename of a directory when given a pathname. It is frequently used in shell scripts for convenience. The major scripting languages, including Perl and Python, also have the capability to generate basenames through libraries.

A companion utility, dirname, returns everything but the final basename in a pathname. Both of these utilities are part of the Single Unix Specification. Even though Linux is not part of the Single Unix Specification, almost all distributions include dirname and basename as part of GNU Coreutils. Similarly, the free BSD systems also include these utilities.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.