terminal Znajdź katalog plików i CD do katalogu

$ cd `find ~ -name filename.txt -exec dirname {} \;`
Outrageous Opossum