Skip to content

Linux /usr/share Directory Explained

Linux Filesystem Standard (FHS)

/usr/share/ = Architecture-independent shared data

  • System-wide location all users can access
  • Package managers install here by default
  • Tools expect wordlists here (hardcoded paths)

Other Common Paths

  • /usr/local/share/ - Manually installed shared data
  • /opt/ - Optional third-party software
  • ~/ - User-specific (not system-wide)

How to Install to /usr/share/

Version 1: Using APT (Automatic)

# Automatically installs to /usr/share/
sudo apt install seclists
sudo apt install wordlists
sudo apt install dirb

Version 2: Clone Directly

# Clone directly to /usr/share/
sudo git clone https://github.com/danielmiessler/SecLists.git /usr/share/seclists

Version 3: Download Then Move

# Download anywhere
git clone https://github.com/danielmiessler/SecLists.git ~/SecLists

# Move to system location
sudo mv ~/SecLists /usr/share/seclists

# Fix permissions
sudo chown -R root:root /usr/share/seclists
# Already have it in ~/wordlists?
sudo ln -s ~/wordlists /usr/share/wordlists

Why /usr/share/ Specifically?

System-wide Access

  • All users can read (no permission issues)
  • Root owns it (security)
  • Doesn't get deleted with user account

Installation Commands

Install via APT (if available)

sudo apt update
sudo apt install seclists wordlists dirb

Manual Install (if not in repos)

sudo git clone --depth 1 https://github.com/danielmiessler/SecLists.git /usr/share/seclists

Verify Installation

ls /usr/share/seclists/Discovery/Web-Content/
ls /usr/share/wordlists/

Common Wordlist Locations

/usr/share/seclists/                    # SecLists (comprehensive)
/usr/share/wordlists/                   # General wordlists
/usr/share/dirb/wordlists/              # Dirb lists
/usr/share/dirbuster/wordlists/         # Dirbuster lists
/usr/share/wfuzz/wordlist/              # Wfuzz lists