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

Can Christians draw their God
Which general gain new Western lands for emperor justiansin the 530s
how had the american election process changed by the election of 1828
what is the word form for 1.015
una oracion con la palabra toady
Which group was often targeted during draft riots in New York City? A. the government B. Southerners C. African Americans D. the wealthy classes
On the road you are traveling, the pavement markings change from broken white lines to solid white lines between the lanes of traffic. What does the line change
Divide 1.20m in the ratio 2:3:4
Large waves of sea water triggered into motion by an earthquake are called a. Raleigh waves b. love waves c. tsunamis d. s-waves
Molecules helped by protein; move insoluble molecules across plasma membrane: pinocytosispassive diffusionfacilitated diffusionphagocytosisactive transport