How do I get the filepath of a file from the command line?
How do I get the filepath of a file from the command line?
How can you not?
Do you know where the file is or do you need to search for it? Use find (slow but thorough) or locate (fast but sometimes misses stuff).
Are you talking about an executable file? Use whereis or which.
Simple commands for showing a file and its location include ls (often ls -l) and pwd.
Bookmarks