How to Fix Zsh Command Not Found Error on macOS?
Zsh: command not found lsof
Error on Mac / Linux : Zsh: command not found lsof
It looks like you are trying to run a command that your system cannot find. This can happen for a few reasons:
You might have mistyped the command name. Make sure you are typing the command correctly and that it is spelled correctly.
The command might be located in a different directory than the one you are currently in. In this case, you will need to specify the full path to the command or add the directory where the command is located to your PATH environment variable.
The command you are trying to run might not be installed on your system. In this case, you will need to install the command before you can use it. Try this command:
Brew install lsof
How to Fix Zsh Command Not Found Error on macOS?
Other errors on Mac / Linux :
- Command not found mprocs
- Command not found conserver
- Command not found ffmpeg2theora
- Command not found ne
- Command not found gnu-getopt
- Command not found pngquant
- Command not found rapidjson
- Command not found xcb-util-cursor
- Command not found mhash
- Command not found liblwgeom
- Command not found envoy
- Command not found oq
- Command not found checkov
- Command not found ephemeralpg
- Command not found nxengine
- Command not found tcpkali
- Command not found chart-testing
- Command not found ndpi
- Command not found testdisk
- Command not found git-fixup
- Command not found osrm-backend
- Command not found progress
- Command not found php@8.0
- Command not found xkbcomp
- Command not found libming
- Command not found aws-keychain
- Command not found gnu-barcode
- Command not found macpine
- Command not found macosvpn
- Command not found chakra
- Command not found microsocks
- Command not found litecli
- Command not found masscan
- Command not found libzdb
- Command not found tinc
- Command not found allure
- Command not found apgdiff
- Command not found aha
- Command not found sqtop
- Command not found wasm3
- Command not found sdedit
- Command not found libflowmanager
- Command not found chrpath
- Command not found solargraph
- Command not found libiodbc
- Command not found ldns
- Command not found archivemount
- Command not found cryfs
- Command not found loc
- Command not found apcupsd
- Command not found nopoll
- Command not found libdill
- Command not found libpsl
- Command not found mktorrent
- Command not found gst-plugins-rs