Find the answer to your Linux question:
Results 1 to 3 of 3
hi there, I have a linux server, and use symbolic links a fair amount. I'm also merging some of my php code library to another location. my question is, is ...
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Posts
    52

    detecting symbolic links

    hi there,

    I have a linux server, and use symbolic links a fair amount. I'm also merging some of my php code
    library to another location.

    my question is, is there any way to get a list of symbolic links that point to a specific directory which I am going to be moving? that way I can manually go through them and re-point to the new location of the physical folder. Thanks, your assistance is appreciated.

    Samuel

  2. #2
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile

    i think you use this it work
    Code:
     ls -la
    Hard Links and Symbolic Links
    Take risks: if you win, you will be happy; if you lose, you will be wise.
    New Users : Read This First

  3. #3
    Just Joined!
    Join Date
    May 2008
    Location
    Bangalore, India
    Posts
    24
    ved's points out it right you can get in the directory to which directory/file the symbolic link points to.

    you can also try
    Code:
    find $PWD  -type l -ls
    $PWD - your present working directory you can check for any directory,
    this will go through every directory and give list of symbolic links

Posting Permissions

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