FortiNAC-F
FortiNAC-F is a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks. For legacy FortiNAC articles prior to FortiNAC-F 7.2, see FortiNAC.
sjerry
Staff
Staff
Article Id 416333
Description

This article describes how to search for key words and return its directory 

Scope FortiNAC OS.
Solution

The grep cmd searches inside files for a specific text pattern. This command is used to search for the text content '172.16.99.45' within files located in the specified directories (/etc, /usr/lib, /var/lib):

grep -r --include=\* -i "172.16.99.45" /etc /usr/lib /var/lib 2>/dev/null


search.png
The find cmd searches for file system objects (files, directories, etc.) based on their name. This command is used to locate files or directories whose name matches the specified pattern, starting from the root directory (/).
 

find / -name "FortiNAC_Data*" 2>/dev/null


database.png

Contributors