Article 5P0PC find util to distinguish the link result between link to file and lto directory

find util to distinguish the link result between link to file and lto directory

by
BudiKusasi
from LinuxQuestions.org on (#5P0PC)
How can we have in Linux find util to distinguish the link result between link to file and link to directory ?
I tried find by using as explained
Code:The -H, -L and -P options control the treatment of symbolic links. Command-line arguments fol
lowing these are taken to be names of files or directories to be examined, up to the first ar
gument that begins with `-', or the argument `(' or `!'. That argument and any following argu
ments are taken to be the expression describing what is to be searched for. If no paths are
given, the current directory is used. If no expression is given, the expression -print is used
(but you should probably consider using -print0 instead, anyway).

This manual page talks about `options' within the expression list. These options control the
behaviour of find but are specified immediately after the last path name. The five `real' op
tions -H, -L, -P, -D and -O must appear before the first path name, if at all. A double dash
-- can also be used to signal that any remaining arguments are not options (though ensuring
that all start points begin with either `./' or `/' is generally safer if you use wildcards in
the list of start points).

-P Never follow symbolic links. This is the default behaviour. When find examines or
prints information a file, and the file is a symbolic link, the information used shall
be taken from the properties of the symbolic link itself.

-L Follow symbolic links.

-H Do not follow symbolic links, except while processing the command line arguments. When
find examines or prints information about files, the information used shall be taken
from the properties of the symbolic link itselfbut didn't get the solution
Please help out. Thankslatest?d=yIl2AUoC8zA latest?i=_Xl4Ik4uc-4:Te1HQ-tVDdI:F7zBnMy latest?i=_Xl4Ik4uc-4:Te1HQ-tVDdI:V_sGLiP latest?d=qj6IDK7rITs latest?i=_Xl4Ik4uc-4:Te1HQ-tVDdI:gIN9vFw_Xl4Ik4uc-4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments