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

An object is on a spring (k 7.3 N/m). The maximum speed of the object is .25 m/sec, and the maximum displacement is 85 cm. What is the mass of the object?
ma poate ajuta cineva la aceasta problrma de matematica? exercitiile 6 si 7 va rog
John and Lisa have a two-month old baby. John feels that after the baby’s birth, love and sexual intimacy between him and Lisa has diminished. What is the actio
Expand and Simplify (x+7)(x-2)
help!!!!!!!!!!!!!!!!!!!! By S. E. Forman 1911 THE MATCH There never was a time when the world was without fire, but there was a time when men did not know how t
Monotheistic means _____.
algebra help please im timed
Based on this picture, which prediction can be made about leaf-cutter ants?
When inscribing a square in a circle, which of these should have equal lengths?
Explain the diffrences between the virginia plan and the new jesrsey plan . how were these diffrences resolved