---

Linux dirname Command Explained for Beginners

dirname is a shell scripting tool mostly used in situations where you need to strip the last component from an absolute file-name. If you’re new to Linux, then you should check out these four dirname examples to see how you can best use this command.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis