which 命令用来查看命令的绝对路径,其格式如下:
which 命令
演示实例:
[root@Centos8 ~]# which nginx
/usr/bin/nginx
[root@Centos8 ~]# which cp
alias cp='cp -i'
/usr/bin/cp
[root@Centos8 ~]#
which 命令用来查看命令的绝对路径,其格式如下:
which 命令
演示实例:
[root@Centos8 ~]# which nginx
/usr/bin/nginx
[root@Centos8 ~]# which cp
alias cp='cp -i'
/usr/bin/cp
[root@Centos8 ~]#