Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    6

    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

    Ideas?

    Thanks,
    Ray


    PS: CentOS 5.5

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,558
    You need to terminate the `echo...` part with a back-quote, not a forward quote. IE:
    Code:
    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
  •