0

How to count the link files in directory

How to find out the total number of link files such as soft and hard link files in the present directory.??

Hardlink command Soft Link Linux Add a comment
grayson
asked Feb 24 2017

Answer

0

Use....,

ls -l to view the link count for file......

ls -ld to view the link count for directory...........

Add a comment
arunkumarak
asked Feb 24 2017
edited Oct 05 2018
Post your Answer
0

sorry guys is posted wrong answers... the exact command to view link files in directories execute below command........

ls -l | grep ^l | wc -l

ls -la

Add a comment
arunkumarak
asked Feb 27 2017
edited Oct 05 2018
Post your Answer