Wednesday, February 7, 2024

[SOLVED] What is the equivalent to locate command in KornShell?

Issue

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



Answered By - Pradeep
Answer Checked By - Gilberto Lyons (WPSolving Admin)