-2

Question: Is there a way to remove the display of certain folders from the linux tree command?

In my case, I'd like to be able to run something like

$ tree . --remove-dir=pictures

which will remove all directories entitled "pictures" from the tree view.

George
  • 1,809

1 Answers1

3

man tree:

   -I pattern
          Do not list those files that match the wild-card pattern.
Ipor Sircer
  • 14,546
  • 1
  • 27
  • 39