Install Shellcheck On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS
Install shellcheck
-
Debian
apt-get install ShellCheckClick to copy -
Ubuntu
apt-get install ShellCheckClick to copy -
Arch Linux
pacman -S ShellCheckClick to copy -
Kali Linux
apt-get install ShellCheckClick to copy -
Fedora
dnf install ShellCheckClick to copy -
Raspbian
apt-get install ShellCheckClick to copy -
macOS
brew install ShellCheckClick to copy
Shell script static analysis tool. Homepage: .
How to use shellcheck?
Below are few example commands for shellcheck that you can use in the terminal.
Check a shell script:shellcheck file.shClick to copyOverride script's shebang:shellcheck --shell sh|bash|ksh file.shClick to copyIgnore certain errors:shellcheck --exclude SC1009 file.shClick to copyIgnore multiple errors:shellcheck --exclude SC1009,SC1073 file.shClick to copy
Installing shellcheck command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of shellcheck 2026 package in your OS.




