basename returns the name of a file, minus the directories leading up to it.
$ basename "foo/bar/baz" baz
basename retains the part removed by dirname.
- dirname - get the directory part of a pathname.
- pathchk - check for strange names
- mktemp - Create a temporary