Tree Command Options In Linux
Commands : Tree
Usage: list contents of directories in a tree-like format.
syntax: $ tree [options]
Examples Of Tree Command options in Linux
1. To print help and options of this command
$ tree --help
2. To print hidden files and directories
$ tree -a
3. To list directories only
$ tree -d
4. To view output of tree in colorized format
$ tree -C
5. To view without colorized format
$ tree -n
6. To print inode of each file
$ tree --inodes
7. To Print device ID number to which each file belongs
$ tree --device
8. To list directories before files
$ tree --dirsfirst
9. To output to file
$ tree -o tree.txt
10. To list only those files that match the pattern given
$ tree -P *.mp3*
11. To not list files that match the given pattern.
$ tree -I *.txt*
12. To print the full path prefix for each file.
$ tree -f
No comments:
Post a Comment