Use treetree
, with -f-f
(full path) and -i-i
(no indentation lines):
tree -if --noreport .
tree -if --noreport directory/
You can then use grepgrep
to filter out the ones you want.
If the command is not found, you can install it:
Type following command to install tree command on RHEL/CentOS and Fedora linux:
# yum install tree -y
If you are using Debian/Ubuntu, Mint Linux type following command in your terminal:
$ sudo apt-get install tree -y