Results 1 to 2 of 2

Thread: Filepath of a file

  1. #1
    Join Date
    Oct 2010
    Beans
    51

    Filepath of a file

    How do I get the filepath of a file from the command line?

  2. #2
    Join Date
    Dec 2010
    Beans
    549

    Re: Filepath of a file

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •