Method-1 : There is no specific command available in Linux to do this, hence we are using more than one command (all together) to get this done. Details :find : It’s a command, Search for files in a directory hierarchy./ : Check…