[Ilugc] 1D1C - tree

  • From: tkdhanasekar@xxxxxxxxx (Dhana Sekar)
  • Date: Thu, 12 Sep 2013 20:35:40 +0530

commands: tree
usage: list contents of directories in a tree-like format.

syntax: $ tree [options]

examples:

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



regards,
dhanasekar

Other related posts:

  • » [Ilugc] 1D1C - tree - Dhana Sekar