Linux basename Command Tutorial for Beginners (with Examples)

Posted by bob on Jul 4, 2018 10:33 PM EDT
Howtoforge Linux Howtos und Tutorials
Mail this story
Print this story

Sometimes, while working on the command line (especially when dealing with shell scripts), you might be interested in only the filename, but what's available to you is the complete path of the file. So, the requirement is to strip the directory component of the path. You'll be glad to know there exists a command - basename - that does this job.

Full Story

  Nav
» Read more about: Groups: Linux; Story Type: News Story

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.