what in OpenBSD

本文介绍了几个常用的Shell命令,包括what、whatis、whereis、which等,详细解释了这些命令的功能和用途,例如what命令用于显示文件中所用到的对象模块版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Shell:~ >: wh
what           whence         whereis        which-command  who            whois         
whatis         where          which          while          whoami

Shell:~ >: whereis what
/usr/bin/what

Shell:~ >: cd /usr/bin

Shell:/usr/bin >: what what
what
     Copyright (c) 1980, 1988, 1993
    $OpenBSD: what.c,v 1.11 2003/07/10 00:06:52 david Exp $
   
Shell:/usr/bin >: whatis what
what (1) - show what versions of object modules were used to construct a file

Shell:/usr/bin >: whatis what whatis whence where whereis which which-command while
what (1) - show what versions of object modules were used to construct a file
whatis (1) - describe what a command is
whereis (1) - locate programs
which (1) - locate a program file (or files) in the path
Converts a file with native (1) -encoded characters (characters which are non-Latin 1 and non-Unicode) to one with Unicode-encoded characters.
whence: not found
where: not found
which-command: not found
while: not found

Shell:/usr/bin >: whereis what whatis whence where whereis which which-command while
/usr/bin/what
/usr/bin/whatis
/usr/bin/whereis
/usr/bin/which

Shell:/usr/bin >: alias | grep wh
which-command=whence

whence, where, while inside zsh.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值