Unix - mosinn/DOCS-n-Snippets-n-Steps GitHub Wiki

Seach for a directory on unix system

  • find / -type d -name --dirName-here--
  • eg. find / -type d -name .m2
  • find /dir/path/look/up -name --dir-name-here--
  • find . -name "pattern" -print eg of pattern= *.txt
  • type : d is directory, f is file
  • find location of org jars in unix directory eg: find /home/jenkins/.m2 -type f -name *.jar | grep citi
  • https://www.cyberciti.biz/faq/howto-find-a-directory-linux-command/