Install Diffstat On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Diffstat On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

diffstat

Create a histogram from the output of the `diff` command.

Maintainer: Sandro Tosi



Section: devel

Install diffstat

  • Debian apt-get install diffstat Click to copy
  • Ubuntu apt-get install diffstat Click to copy
  • Arch Linux pacman -S diffstat Click to copy
  • Kali Linux apt-get install diffstat Click to copy
  • CentOS yum install diffstat Click to copy
  • Fedora dnf install diffstat Click to copy
  • Raspbian apt-get install diffstat Click to copy
  • macOS brew install diffstat Click to copy

Create a histogram from the output of the `diff` command.

How to use diffstat?

Below are few example commands for diffstat that you can use in the terminal.

Display changes in a histogram:
diff file1 file2 | diffstatClick to copy
Display inserted, deleted and modified changes as a table:
diff file1 file2 | diffstat -tClick to copy
Installation of latest diffstat command is available for Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2024 latest package from the repository and install it in your computer/server.