dirname's Examples

Extracts directory path from a full file path.

dirname /usr/bin/bash → /usr/bin

Extracts directory part of a path.

dirname /home/user/file.txt
# Output: /home/user

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us