Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
terminal find containing directory of file and cd to directory
Gary Porter
Programming language:
Whatever
2021-08-19 11:55:39
0
Q:
terminal find containing directory of file and cd to directory
David Ross
Code:
Whatever
2021-07-03 00:43:04
$ cd `find ~ -name filename.txt -exec dirname {} \;`
0
Tags
terminal
file
con
find
Related
bash find all files containing string
vs code open folder from terminal in same window
cmd files in directory
bash find term in files
bash find and replace all files with specifc name with another file
open all files in a folder command line windows
bash find file by name
New to Communities?
Join the community