The host
is a useful tool to check basic information of your new host, so you don't need to use many commands to query it any more.
+--------------+--------------------------------+
| Hostname | wangkaideMacBook-Pro-2.local |
+--------------+--------------------------------+
| OS | darwin 10.14.3 |
+--------------+--------------------------------+
| BootTime | 2019-05-17 11:23:17 |
+--------------+--------------------------------+
| Uptime | 0 Day 0 Hour 45 Minute 14 |
| | Second |
+--------------+--------------------------------+
| CPU Core | 4 |
+--------------+--------------------------------+
| Disk Total | 233 GB |
+--------------+--------------------------------+
| Memory Total | 8 GB |
+--------------+--------------------------------+
Linux
curl -L https://github.com/lovelysoft/host/releases/download/v0.1.0/host_linux -o host
chmod +x host
mv host /usr/bin/