Skip to content

Instantly share code, notes, and snippets.

@Devendra0110
Last active December 15, 2023 07:22
Show Gist options
  • Save Devendra0110/815928201c027cf0e68cdd19517a1711 to your computer and use it in GitHub Desktop.
Save Devendra0110/815928201c027cf0e68cdd19517a1711 to your computer and use it in GitHub Desktop.

Ignore specific directory

  • tree -I dir_name

print only level 1

  • tree -L 1

Keep output in clipboard

  • tree | pbcopy

ignore dir_name, keep the output in clipboard till level 1 directory

  • tree -L 1 -I dir_name | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment