IT Questions and Answers :)

Thursday, November 23, 2017

In Unix, which of the following commands could you use to find files with a .log extension in the /var directory?

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" 

 
In Unix, which of the following commands could you use to find files with a .log extension in the /var directory?

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

Popular Posts