Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux command-- find

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

In linux, if we have too many files, it is not realistic to find them slowly, so we need to use search tools to search. Here is a search command: find

Basic syntax is used:

Find directory-name keyword-print

This command means to view a file with the keyword (which can be a directory or a file name) in a directory and output it to the screen!

Root@VM-12-155-debian:~# find /-name test-print/usr/src/linux-headers-4.9.0-kali3-amd64/include/config/usb/ehset/test/usr/src/linux-headers-4.9.0-kali3-amd64/include/config/test/usr/src/linux-headers-4.9.0-kali3-amd64/include/config/v4l/test

In addition, we can use-type to specify what to look for.

Root@VM-12-155-debian:~# find / var/www/-name index.html-type f-print/var/www/html/jaxsec/index.html/var/www/html/index.htmlroot@VM-12-155-debian:~# find / var/www/-name www-type d-print/var/www/root@VM-12-155Mutual DebianRank device file, Fmure-ordinary file, dmurt-catalog file, lmure-symbolic link file

This command is still a bit slow to find files, and the next command will introduce the command locate, which is also used to find files, but faster!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report