# Basic syntax: dirname /full/file/name.txt # Example usage: dirname /full/file/name.txt --> /full/file # Note, if you want just the file name, use basename, e.g.: basename /full/file/name.txt --> name.txt