shellunixscriptingfindksh

What is the equivalent to locate command in KornShell?


I am using KornShell (ksh) and I need to know what is the command to search a file in the system?

I have used locate in bash looking for a similar one.

Kindly help.


Solution

  • You can use "find" command to search for a particular file in the system. There are various option to search by name,size,time,etc You can refer to man find for more help.

    E.g. find . -name abc will search abc file in the current directory and subdirectories