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

2 numbers that adds up to 40 and can be multiplied and equals 36
what is most likely dante's opinion of the sin of theft
Why might Charlotte Perkins Gilman have written "The Yellow Wallpaper" in the first-person point of view? Gilman wanted to depict a woman’s mental breakdown nat
Is 1 kilogram bigger than 1200 grams
O ozônio faz bem para nós ou é prejudicial á nossa saúde ? comente a sua resposta
Describe the organization of an ecosystem from smallest to largest.
To ensure proper nutrition, my daily diet includes a variety of beans and green lettuce. Which is the best example of a paraphrase for the sentence? To stay hea
The three rival political foes that caused such division in China were
In order to decrease their level of pollution, Jean and Rhonda decided to _______. a. ride the bus to work instead of walking b. drive separately instead of t
Factorise 5x(squared) + 17x -12 3x(squared) + 10x +7