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

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

join

Join lines of two sorted files on a common field.

Maintainer: Michael Stone



Section: utils

Install join

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click to copy

Join lines of two sorted files on a common field.

How to use join?

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

Join two files on the first (default) field:
join file1 file2Click to copy
Join field3 of file1 with field1 of file2:
join -1 3 -2 1 file1 file2Click to copy
Produce a line for each unpairable line for file1:
join -a 1 file1 file2Click to copy
Installing join 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, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of join 2026 package in your OS.