• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

dirb: command not found

by Deepika

The “dirb” command in Linux is a command-line tool used for web application directory enumeration. It is commonly used to discover hidden files and directories on a web server by brute forcing the directory names. The tool works by sending HTTP requests to a web server with a list of directory names and analyzing the responses to determine if the directories exist.

The basic syntax of the command is:

# dirb [options] [URL] [wordlist]

where:

URL is the target web server
wordlist is a file containing a list of directory names to try
options are various switches to customize the behavior of the tool

For example, “dirb http://example.com /usr/share/dirb/wordlists/common.txt” will perform directory enumeration on the target “example.com” using the common.txt wordlist.

If you encounter the below error while running the command dirb:

dirb: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install dirb
Ubuntu apt-get install dirb
Kali Linux apt-get install dirb

dirb Command Examples

1. Scan a webserver using the default wordlist:

# dirb https://example.org

2. Scan a webserver using a custom wordlist:

# dirb https://example.org path/to/wordlist.txt

3. Scan a webserver non-recursively:

# dirb https://example.org -r

4. Scan a webserver using a specified user-agent and cookie for HTTP-requests:

# dirb https://example.org -a user_agent_string -c cookie_string

Filed Under: Linux

Some more articles you might also be interested in …

  1. arch-chroot: command not found
  2. tvservice: command not found
  3. mkinitcpio: command not found
  4. “git secrete” Command Examples
  5. Linux OS Service ‘httpd’
  6. dir Command Examples in Linux
  7. join Command Examples
  8. qm start Command Examples in Linux
  9. qm clone Command Examples in Linux
  10. dnf Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright