How To Install Tail In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install tail
-
Debian
apt-get install coreutilsClick to copy -
Ubuntu
apt-get install coreutilsClick to copy -
Alpine OS
apk add coreutilsClick to copy -
Arch Linux
pacman -S coreutilsClick to copy -
Kali Linux
apt-get install coreutilsClick to copy -
CentOS
yum install coreutilsClick to copy -
Fedora
dnf install coreutilsClick to copy -
Raspbian
apt-get install coreutilsClick to copy -
macOS
brew install coreutilsClick to copy
Display the last part of a file.
How to use tail?
Below are few example commands for tail that you can use in the terminal.
Show last 'num' lines in file:tail -n num fileClick to copyShow all file since line 'num':tail -n +num fileClick to copyShow last 'num' bytes in file:tail -c num fileClick to copyKeep reading file until `Ctrl + C`:tail -f fileClick to copyKeep reading file until `Ctrl + C`, even if the file is rotated:tail -F fileClick to copy
Installing tail 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 tail 2026 package in your OS.




