grep -l "LINUX" -r DIRNAME 你说的主目录是“根目录”还是"user home" ? 如果是前者DIRNAME换成 / , 如果是后者 DIRNAME换成 ~
命令:ls -l ~