lileljusto1669 lileljusto1669
  • 22-08-2019
  • Computers and Technology
contestada

Which one of the following commands will list the contents of a directory, and put those listed contents into a file called "mydir"? 1s -pla > mydir 1s -pla < mydir 1s I mydir ls printf> mydir

Respuesta :

Branta Branta
  • 02-09-2019

Answer:

ls -pla > mydir

Explanation:

ls is the command to list the contents of the directory.

-p option indicate / as the designator for directories

-l  options enables line by line entries for files

-a option lists all files including special files starting with .

> is used for redirecting the output of the ls command to the specified file.

So ls -pla > mydir will run ls command with -pla option and populate the file mydir with the contents of the result.

Answer Link

Otras preguntas

equivalent fractions for 15/35
14 is 20% of what number
When a figure is translated on a coordinate grid, what conclusion can you draw from the pre-image and image?
The heritable variation among members of a population comes about because of a. mutation b. adaptation c. competition d. the environment
Find the value of the expression 2x cubed + 3y squared - 17 when x = 3 and y = 4.
14 is 20% of what number
In 1855 Italian governments were controlled by either blank or the Papacy a. Austria b. Italy c. Germany d. Spain
traveling at 45 mph, how many minutes, rounded to the nearest whole number, does it take to drive 240 miles from Orlando to Miami?
Traveling at 55 mph, how many minutes, rounded to the nearest whole number, does it take to drive 310 miles from Boston to Syracuse?
how did democracy arise in ancient greece?