0

Does anybody has an idea how to use these search commands for finding sensitive files in a linux shell. The one I have are for windows. Note that I have to specify the extension as well. Thank you in advance :)

1. findstr /si password *.txt OR findstr /si password *.txt *.ini *.config *.xml

2. dir /s *pass* == *cred* == *vnc* == *.config* 
3
  • 1
    Are you searching just for the files or specific strings inside the files ?
    – tomgalpin
    Feb 2, 2022 at 17:07
  • Hi Tom, thanks for reaching out. The first one searches for the word password in the specified files (with these extensions). And the second, looks for files and folder containing (in their name) the words pass, cred for e.g. log.config, credential-manager.exe, etc.
    – I.Stanev
    Feb 3, 2022 at 8:05
  • grep and find
    – Shawn
    Feb 3, 2022 at 18:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.