Skip to main content
sjerry
Staff
Staff
October 23, 2025

Troubleshooting Tip: Search for a specific file or word in a file on a FortiNAC OS platform

  • October 23, 2025
  • 0 replies
  • 199 views
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