Computer Science, asked by shweta9531, 1 year ago

command to list the file or directory names in descending order​

Answers

Answered by someshjecrc
22

Answer:

ls -r

Explanation:

To display or to list the file or directory names in descending order​ -r option is used. It is also called listing files recursively. Cheers!

Answered by Jasleen0599
1

Type the ls - t order to list files or directories and sort by last changed date in descending request (greatest to littlest).

  • In Unix, sort order with 'r' choice gives you to sort the substance in invert request. This choice sorts the given contribution to an opposite way which is of course in descending request.
  • To list all files and sort them by size, utilize the - S choice. Naturally, it shows yield in descending request (greatest to littlest in size).
  • You can yield the document sizes inthe comprehensible organization by adding the - h choice as displayed. Also to sort backward requests, add the - r banner as follows.
  • To get a rundown of the multitude of files and envelopes in a specific directory in the filesystem, use os. listdir() in heritage renditions of Python or os. scandir() in Python 3.
Similar questions