1、 type: 查看是外部命令/内部命令

初识linux命令

外部命令 有存放地址信息

初识linux命令

内部命令 is a shell builtin

 

2、file 查看文件的编码方式

file /sbin/ifconfig

 初识linux命令

编译执行命令

提示 ELF 表示二进制程序的编码格式

file /usr/bin/yum

 初识linux命令

解释执行命令

表示yum是属于脚本,通过python执行器来执行此脚本

 

2、help 内部命令帮助文档

使用help 查询所有的内部命令

help 内部命令 内部命令使用方式/参数/操作

 

3、man 外部命令帮助文档

-bash: man: command not found

此问题是由于没有安装man命令导致的

安装命令:

yum install man -y

yum install man-pages -y

配置man-pages(pages显示的事一个书包,里面存在各种字符集,如果不安装此命令就不能执行如: man utf-8)

 

等级;

-1:用户命令(/bin,/usr/bin,/usr/local/bin)

-2:系统命令

-3:库用户

-4:特殊文件(设备文件)

-5:文件格式(配置文件的语法)

-6:游戏

-7:杂项(Miscellaneous)

-8:管理命令(/sbin,/usr/sbin,/usr/local/sbin)

 初识linux命令

 

相关文章:

  • 2021-09-22
  • 2022-12-23
  • 2021-08-20
  • 2021-05-28
  • 2022-12-23
  • 2021-12-28
  • 2021-10-19
  • 2021-04-11
猜你喜欢
  • 2021-06-17
  • 2021-09-16
  • 2022-12-23
  • 2021-10-01
  • 2021-10-16
  • 2021-12-04
相关资源
相似解决方案