Linux – Useful OS Command

SAP Tools/Service

Recently we requires to compare the files between 2 directories & it’s quite use to perform the same with below OS commands..

Find difference in 2 directory
diff -r dir1 dir2 | grep dir1

Count in directory
ls | wc -l

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.