Write a command to remove the prefix of the string ending with ‘/’.

The basename utility deletes any prefix ending in /. The usage is mentioned below:
basename /usr/local/bin/file
This will display only file

Be the first to comment

Leave a Reply

Your email address will not be published.


*