Direx (Directories Explained) is a CLI tool to show information on a directory.
- Using wget
wget https://raw.githubusercontent.com/AfzGit/direx/main/direx
chmod a+x direx
sudo mv direx /usr/bin/
- Using curl
curl https://raw.githubusercontent.com/AfzGit/direx/main/direx --output direx
chmod a+x direx
sudo mv direx /usr/bin/
direx /usr
=== /usr ===
-> Details: Location of user programs, files and documentation. Shareable and read-only.
-> Permissions: rwxr-xr-x (or) 755
-> Sub-Directories: bin/ include/ lib/ local/ sbin/ share/
============
direx usr
=== /usr ===
-> Details: Location of user programs, files and documentation. Shareable and read-only.
-> Permissions: rwxr-xr-x (or) 755
-> Sub-Directories: bin/ include/ lib/ local/ sbin/ share/
============
direx /var/cache
=== /var/cache ===
-> Details: Application cache data.
-> Permissions: rwxr-xr-x (or) 755
==================
direx
======= Available information =======
/bin /boot /dev /etc /home /lib
/mnt /opt /root /run /sbin /srv
/sys /tmp /proc /usr/bin /usr/lib
/usr/include /usr/local /usr/sbin
/usr/share /var /var/cache /var/spool
/var/tmp /var/log /var/opt /var/run
=====================================