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
[huupv@huupv 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.
[huupv@huupv 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

Comments

Popular posts from this blog

zimbra some services are not running [Solve problem]

Bash script list all IP addresses connected to Server

How to install php7 on centos 6