Open file without specifying exact location
Posted
by person
on Super User
See other posts from Super User
or by person
Published on 2010-06-15T18:46:32Z
Indexed on
2010/06/15
18:53 UTC
Read the original article
Hit count: 193
Say I have a file in some obscure directory that I want to open and edit. I don't want to do something like this...
vim ~/foo/bar/blah/doh/ugh.txt
I'd rather be able to say find this file and open it. I know there are commands like locate
and find
to find a file or directory, but I'm not sure whether these can (or even should) be utilized in what I'm trying to do. Basically, what is the simplest way to open a file with a program w/o specifying its exact location? (In cases where there isn't another file with the same name in the entire system, and cases where there are multiple).
© Super User or respective owner