Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
25
rated 0 times [  25] [ 0]  / answers: 1 / hits: 60510  / 2 Years ago, thu, september 22, 2022, 11:29:54

If ls lists the content of the current directory, is there a similar command that list the content of a non current directory, without using cd?


More From » directory

 Answers
0

After ls just type the path of the directory you want to list and you will get it. Imagine you are in your home directory but want to list /etc. Just run ls /etc and you will get it listed.


[#32068] Thursday, September 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suitman

Total Points: 487
Total Questions: 105
Total Answers: 98

Location: India
Member since Wed, Aug 4, 2021
3 Years ago
;