Linux command file for symbolic links -


when try check type of executable file, this:

symbolic link <another_file>  

then have dig further , run file <another_file>. take 5 or 6 rounds. i'm wondering whether there way let file recursively go original file , tell me file type.

specifying -l file should make follow symlinks. man page:

   -l, --dereference        option causes symlinks followed, like-named option        in ls(1) (on systems support symbolic links).         default if environment variable posixly_correct defined. 

Comments