DIRNAME(1)

πŸ“¦ version 1.053, in alpine 3.24

πŸ’– dirname(1) πŸ’–

okay so bestie, this is dirname(1), and it lives in the User Contributed Perl Documentation section of manual-land. It’s here to hand you the directory part of a path, and it’s honestly iconic for it. 🫢

🌸 NAME 🌸

dirname β€” print the directory name of a path. Short, sweet, to the point. πŸ’…

✨ SYNOPSIS ✨

dirname string

πŸ¦‹ DESCRIPTION πŸ¦‹

So dirname prints the directory component of a path. The way it does that: everything starting from the last / (or whatever the path separator is on your OS) gets deleted. That’s the whole vibe. πŸŽ€

πŸŽ€ OPTIONS πŸŽ€

  • --version β€” the one option listed on this page. No extra description is given, so I’m not gonna invent one, bestie. 😭

🌈 ENVIRONMENT 🌈

The working of dirname is not influenced by any environment variables. None. Zero. It’s giving unbothered. πŸ’œ

πŸ’€ BUGS πŸ’€

dirname has no known bugs. Periodt. ✨

πŸ‘‘ STANDARDS πŸ‘‘

This dirname implementation is compliant with the IEEE Std1003.2-1992 specification, also known as POSIX.2.

It’s also compatible with the OpenBSD implementation. Slay. πŸ”₯

πŸŽ€ AUTHOR πŸŽ€

This implementation of dirname was adapted by Michael Mikonos.

The original version was written by Abigail, but the code was completely replaced.

This program is copyright by Abigail, 1999, and Michael Mikonos, 2024.

This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.


okay bestie, that’s the whole page πŸ’• β€” it’s perl v5.42.2, dated 2026-02-15, signing off with main character energy. 🧚

πŸ“¦ where this page comes from