
The tree command can be use to display list of directory and files in Linux system. The tree command also can display directory inode number and files inode number, as shown on the tree command example below.
Command example:
Display List of files and directory with files inode number and directory inode number that locate under root directory:
tree command issue:
# tree -a -L 1 --inodes /
tree command output:
[root@fedora ~]# tree -a -L 1 --inodes /
/
|-- [ 24529] .autofsck
|-- [ 310689] bin
|-- [ 2] boot
|-- [ 219] dev
|-- [ 384273] etc
|-- [ 425153] home
|-- [ 16353] lib
|-- [ 11] lost+found
|-- [ 179873] media
|-- [ 318865] mnt
|-- [ 515089] opt
|-- [ 1] proc
|-- [ 343393] root
|-- [ 24530] sbin
|-- [ 1] selinux
|-- [ 392449] srv
|-- [ 1] sys
|-- [ 261633] tmp
|-- [ 204401] usr
`-- [ 408801] var
19 directories, 1 file
[root@fedora ~]#
0 comments:
Post a Comment