Check the link

Hi All,

Is there any command to list only the links in a particular directory, and any command to check whether particular link exists or not?

like -e for file check ...

ll | grep ^l

This wiould show you all the links in the current working directory.

Hi ,

You can check for a link by typing the following command,

ls -l | grep ^l

Now when you type in `ls -l` it will show you the long listing of all the file in the curent directory and the first column of it would tell you whether the file is linked or not..Column will have "l' prefixed to the permission then it is a likned file ..IF "d" is prefixed to it then it is a directory and if it is just a blank then its an ordinary file..

It's working...