In Unix, which of the following commands could you use to find files with a .log extension in the /var directory? Ranjitkumar GENERAL LINUX No comments In Unix, which of the following commands could you use to find files with a .log extension in the /var directory? find / | grep "*.log" find /var -name "*.log" ls -l *.log mv "*.log" EXPLANATION The "find" command specifies the directory, "/var". The "-name" option tells the "find" command to show only files that have a ".log" extension. SOURCE https://www.lifewire.com/uses-of-linux-command-find-2201100 Share:
0 comments:
Post a Comment