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

Related Questions

Category: UNIX Interview Questions.