get file name from path in Bash

basename /etc/hosts