Skip to the content.

系统常用命令

2017-09-20

Mac OS

查询命运行文件所在路径

例如查询node的安装路径

$ which node
/usr/local/bin/node

Linux

Centos

查看系统版本

cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)