dirsearch (10.7k ⭐) can be installed with apt install dirsearch, and there is an implementation in GO if you want to.

$ dirsearch -u URL # use default wordlist
$ dirsearch -u URL -w wordlist

Ignore some error codes

$ dirsearch [...] -x 404
$ dirsearch [...] -x 404,500

You can append some extensions

$ dirsearch [...] -e php
$ dirsearch [...] -e php,html

Refer to wordlists#forced browsing for wordlists.