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
  • 250 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

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT