FUNDAMENTALS OF COMPUTER

OPERATING SYSTEMS FOR COMPUTERS

COMMAND LINE INTERFACE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which command, when issued at the Window command prompt, lists all files in the current directory that end with a PDF extension?
A
CD *.pdf
B
dir /pdf
C
dir *.pdf
D
list *.pdf
Explanation: 

Detailed explanation-1: -You can also search for a particular file type by using a command dir . pdf /s and it will show you all files saved with the . pdf extension.

Detailed explanation-2: -Use the ls command to display the contents of a directory. The ls command writes to standard output the contents of each specified Directory or the name of each specified File, along with any other information you ask for with the flags.

Detailed explanation-3: -The ls (list) command is used to display the names of the files and subdirectories in the current directory.

Detailed explanation-4: -The dir command displays a list of files and subdirectories in a directory. With the /S option, it recurses subdirectories and lists their contents as well.

There is 1 question to complete.