W
W
weranda2022-03-31 14:11:33
macOS
weranda, 2022-03-31 14:11:33

How to display all files inside a folder without nested directories?

Greetings.
On Windows, Total Commander has a wonderful feature - to display files without directories, only the file. How do you do the same on a mac?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2022-03-31
@shambler81

It's a UNIX like OS
, it's even easier in it - search recursively - where -only files deep 1 directory
find /home -type f -maxdepth 1
find
/home
-type f
-maxdepth 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question