$
Endless Linux Practice
Simulator
Learn
Commands
Basics
Shell scripting
Challenges
Tools
Simulator
Real Linux
中文
Sign in
Back to the learning path
dirname
dirname: the directory name
Command details
1
The directory of a path
Random practice
0/3
Finish every skill, then solve 3 random exercises in a row to master the lesson.
$$$$$$$$$$$$$$$$
gggggggggggggggggggggggggggggggg
Exercise: Which directory is it in?. The result appears on the left when you're done.
user@elp
:
~/challenge
$
basename
Restart this lesson
Next lesson:realpath