打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
linux内置命令
userphoto

2023.08.12 新疆

关注

查看所有内置命令

方法1:help

方法2:compgen -b

compgen:显示所有可用的命令、别名和函数

-c 列出所有可用的命令

-a 列出可用的所有bash shell别名

-b 显示所有bash内置插件

-k 显示所有bash关键字

-A 显示所有bash函数

方法1:

可以配合管道符分页查看:

help | less 
help | more

方法2:

geoff@Geoff:~$ compgen -b
.
:
[
alias
bg
bind
break
builtin
caller
cd
command
compgen
complete
compopt
continue
declare
dirs
disown
echo
enable
eval
exec
exit
......

查看内置命令详情

语法:help 命令名称

geoff@Geoff:~$ help exit
exit: exit [n]
    Exit the shell.

    Exits the shell with a status of N.  If N is omitted, the exit status
    is that of the last command executed.

判断命令类型

type 命令名

或:

command -V 命令名

geoff@Geoff:~$ type echo
echo is a shell builtin

geoff@Geoff:~$ command -V echo
echo is a shell builtin



本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Bash Shell编程0-基础知识
shell编程中while ture和while :为什么等同
Linux运维学习Bash Shell命令执行的流程是怎样的?
Linux系统中命令有几种类型?
Linux Shell简明教程(一) | 果冻想
Shell脚本中实现自动补全功能
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服