Use bat on Centos.

There is a more modern version of the cat command called bat. Official Github Note that it was hard to figure out how to install this on Centos.

download

[Release page] Download the latest version of (https://github.com/sharkdp/bat/releases) for your environment. I downloaded bat-v0.17.1-x86_64-unknown-linux-musl.tar.gz. I think this is fine for intel 64bit CentOS.

Installation

wget -O bat.zip https://github.com/sharkdp/bat/releases/download/v0.17.1/bat-v0.17.1-x86_64-unknown-linux-musl.tar.gz

tar -xvzf bat.zip -C /usr/local

cd /usr/local && mv bat-v0.17.1-x86_64-unknown-linux-musl bat

cd ~

alias bat="/usr/local/bat/bat" #Add alias

How to use

$ bat test.txt

You can use it with this. It's the same as the cat command. There are other ways to use it in combination with other commands, so I think the Official Japanese Page will be helpful.

References

Article that taught me bat https://qiita.com/navitime_tech/items/c249269a3b47666c784b

Official Github https://github.com/sharkdp/bat

issues325 https://github.com/sharkdp/bat/issues/325

Recommended Posts

Use bat on Centos.
Use perltidy on CentOS 8
Use mod_auth_cas on CentOS 8
Use the iostat command on CentOS 8
Use Docker CE (official) on CentOS 8
OpenVPN on CentOS 8
Maven on CentOS 7 tutorial
Docker installation on CentOS 6
Use Flutter on Ubuntu
Try OpenLiteSpeed on CentOS8
Install Neo4j 4.1.3 on centOS
Tomcat v8 on CentOS7
Install Vertica 10.0 on CentOS 6.10
Zabbix 5 installation on CentOS 8
Use CentOS with LXD
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Jetty v8 on CentOS7
OpenJDK installation on CentOS 7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Use mkdir on ubuntu
Install jpndistrict on CentOS 7
Use Corretto 11 on Heroku
Use cpplapack on ubuntu
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Try RabbitMQ + PHP on CentOS
Make exFat available on CentOS 7
Use serial communication on Android
Install OpenFOAM v2006 on CentOS
Set up Gitolite on CentOS 7
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Use devise on multiple models
Use native code on Android
Introducing Let's Encrypt on CentOS 7
Java version change on CentOS
Install Ruby 2.7 on CentOS 7 (SCL)
Perform log rotation on centos
Use PG Backups on Heroku
Try DPDK20 SDK on CentOS7 â‘ Install
Enable Openjdk10 and maven on CentOS
Use Docker Compose on Windows 10 Home
Install Ruby 2.5 on CentOS 7 using SCL
How to use Ruby on Rails
Install Java Open JDK 8 on CentOS 7
How to use Bio-Formats on Ubuntu 20.04
WordPress with Docker Compose on CentOS 8
Upgrade from MYSQL5.7 to 8.0 on CentOS 6.7
How to install MariaDB 10.4 on CentOS 8
Use Docker on your M1 Mac
Install apache 2.4.46 from source on CentOS7
Steps to install MySQL 8 on CentOS 8
Preparing to use electron-react-boilerplate on Ubuntu 20.4
Use completion in Eclipse on mac
Programs that use io_uring do not work with Docker on CentOS 8
I tried installing CentOS 8 on ESXi 6.7