Linux has some commands to good orientation in system. Let me show the command tree!
Theory:
How it works?
tree + PATH (Please use absolute PATH)
Examples from Operation system Linux:
1) only tree tree
root@guliverkel:/home/martin# tree /etc/ssh/
/etc/ssh/
├── moduli
├── ssh_config
├── sshd_config
├── ssh_host_ecdsa_key
├── ssh_host_ecdsa_key.pub
├── ssh_host_ed25519_key
├── ssh_host_ed25519_key.pub
├── ssh_host_rsa_key
└── ssh_host_rsa_key.pub
0 directories, 9 files
2) tree with last modification of files: tree -D
root@guliverkel:/home/martin# tree -D /etc/ssh/
/etc/ssh/
├── [Aug 21 2018] moduli
├── [Aug 21 2018] ssh_config
├── [Jul 15 2019] sshd_config
├── [May 8 23:52] ssh_host_ecdsa_key
├── [May 8 23:52] ssh_host_ecdsa_key.pub
├── [May 8 23:52] ssh_host_ed25519_key
├── [May 8 23:52] ssh_host_ed25519_key.pub
├── [May 8 23:52] ssh_host_rsa_key
└── [May 8 23:52] ssh_host_rsa_key.pub
0 directories, 9 files
root@guliverkel:/home/martin#
3) tree with permissions:
root@guliverkel:/home/martin# tree -pD /etc/ssh/
/etc/ssh/
├── [-rw-r--r-- Aug 21 2018] moduli
├── [-rw-r--r-- Aug 21 2018] ssh_config
├── [-rw-r--r-- Jul 15 2019] sshd_config
├── [-rw------- May 8 23:52] ssh_host_ecdsa_key
├── [-rw-r--r-- May 8 23:52] ssh_host_ecdsa_key.pub
├── [-rw------- May 8 23:52] ssh_host_ed25519_key
├── [-rw-r--r-- May 8 23:52] ssh_host_ed25519_key.pub
├── [-rw------- May 8 23:52] ssh_host_rsa_key
└── [-rw-r--r-- May 8 23:52] ssh_host_rsa_key.pub
0 directories, 9 files
Please study:
https://www.geeksforgeeks.org/tree-command-unixlinux/
This article in slovak language: https://zapiskylinuxadmina.blogspot.com/2020/05/tree-ako-strom-vo-filesysteme.html
Žiadne komentáre:
Zverejnenie komentára