Linux which命令

更新时间: 2019-10-16 12:40

Linux which命令用于查找文件。

which指令会在环境变量$PATH设置的目录里查找符合条件的文件。

语法

which [文件...]

参数

  • -n<文件名长度>  指定文件名长度,指定的长度必须大于或等于所有文件中最长的文件名。
  • -p<文件名长度>  与-n参数相同,但此处的<文件名长度>包括了文件的路径。
  • -w  指定输出时栏位的宽度。
  • -V  显示版本信息。

实例

使用指令"which"查看指令"bash"的绝对路径,输入如下命令:

$ which bash

上面的指令执行后,输出信息如下所示:

/bin/bash                   #bash可执行程序的绝对路径 
Web Security Testing Cookbook

Web Security Testing Cookbook

Paco Hope、Ben Walther / O'Reilly Media / 2008-10-24 / USD 39.99

Among the tests you perform on web applications, security testing is perhaps the most important, yet it's often the most neglected. The recipes in the Web Security Testing Cookbook demonstrate how dev......一起来看看 《Web Security Testing Cookbook》 这本书的介绍吧!

RGB转16进制工具

RGB转16进制工具

RGB HEX 互转工具

正则表达式在线测试

正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具

HSV CMYK 转换工具

HSV CMYK互换工具