Ask Question
4 July, 01:09

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

+2
Answers (1)
  1. 4 July, 04:15
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which one of the following commands will list the contents of a directory, and put those listed contents into a file called "mydir"? 1s - ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers