Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Help With Root Search Path

    I am trying to find the permissions of the directories in the $PATH variable.

    I am trying to use the following:

    ls -ld `echo $PATH | sed "s/:/ /g"' but I get the following:

    ls: echo $PATH | sed "s/:/ /g": No such file or directory



    PS: CentOS 5.5

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    You need to terminate the `echo...` part with a back-quote, not a forward quote. IE:
    ls -ld `echo $PATH | sed "s/:/ /g"`
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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