dirname dirname [OPTION] NAME... Strip last component from file name After Help Output each NAME with its last non-slash component and trailing slashes removed; if NAME contains no /'s, output '.' (meaning the current directory).