Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com

This Blog is protected by DMCA.com

huuphan.com. Powered by Blogger.

Linux find command

In this tutorial, Using find command to search for file or directory in linux. How to use linux find command find all folder or file. Using -exec flag.

Linux find command

How to find all folder not contain path ".backup" as below
[[email protected] huuphan.com]$ find ./ -type d -not -path "*/.backup*"   -exec ls -ld {} \;

The screen output terminal:
Linux find command


How to find all symbolic link in current folder.
[[email protected] huuphan.com]$ find ./ -type l -exec ls -l {} \;

The screen output terminal:
Linux find command

Conclusion

Thought the article, you can use Linux find command. I hope will this your helpful
Thanks for reading Linux find command My blog Zimbra Mail Server,linux,bash script,centos,linux command I hope this is useful.

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com