← Back to Repository

🌲 Sultree - SELinux Tree Command

SELinux-aware variant of the tree command with security context filtering

Display directory trees filtered by SELinux security contexts with full compatibility to the standard tree command. Perfect for system administrators and security professionals working with SELinux-enabled systems.

🚀 Quick Install
# Add repository sudo dnf config-manager --add-repo https://repos.musicsian.com/musicsian.repo # Install package sudo dnf install sultree # Show files with passwd_file_t SELinux context sultree -S passwd_file_t /etc

Full Usage Documentation

usage: sultree [-h] [-a] [-d] [-l] [-f] [-x] [-L level] [-P pattern] [-I pattern] [--match-dirs] [--ignore-case] [--filelimit N] [-S pattern] [--no-report] [--version] [directories ...] SELinux-aware tree command - displays directory trees filtered by SELinux security contexts positional arguments: directories directories to tree (default: current directory) options: -h, --help show this help message and exit -a, --all show all files (including hidden files) -d, --dirs-only list directories only -l, --follow-links follow symbolic links like directories -f, --full-path print full path prefix for each file -x, --one-file-system stay on current filesystem only -L level, --level level descend only level directories deep -P pattern, --pattern pattern list only files that match the pattern -I pattern, --ignore pattern do not list files that match the pattern --match-dirs include directory names in pattern matching --ignore-case ignore case when pattern matching --filelimit N do not descend dirs with more than N files -S pattern, --selinux pattern show only files matching SELinux pattern (can be used multiple times) --no-report turn off file/directory count at end of tree listing --version show version information Examples: sultree /etc sultree -S passwd_file_t /etc sultree -S "*admin*" -L 2 /var/log sultree -d -S httpd_exec_t /usr