首页 > 其他分享 >5.命令

5.命令

时间:2023-01-29 16:03:06浏览次数:35  
标签:bin shell sh dash 命令 Shell

 

 sh命令是shell命令的入口

 

从Ubuntu 6.10开始,默认使用dash(theDebian Almquist Shell)而不是bash(the GNUBourne-Again Shell). 但Login Shell还是bash. 原因是dash更快、更高效,而且它符合POSIX规范。Ubuntu在启动的时候会运行很多shell脚本,使用dash可以加快启动速度。

查看shell真实配置

ls -al /bin/sh
lrwxrwxrwx 1 root root 4 8月 10 2018 /bin/sh -> dash

筛选出bin目录下带sh的信息

 

 

 

 

 

 查询ls命令使用方法

 

 

 

 

 

 

 

 

 

 

 

 

 type命令判断一个命令是内嵌命令还是外部命令

内置命令查帮助手册需要加-f

 

 

 

 

 

 reset清空

 

标签:bin,shell,sh,dash,命令,Shell
From: https://www.cnblogs.com/lcy2021/p/17072911.html

相关文章

  • Linux 命令 | nslookup
    nslookup(NameServerLookup)是一种网络管理命令。用于从DNS服务器查询域名、IP或其他DNS记录信息。命令格式nslookup[-OPTION][SERVER|IP][DNSSERVER]OP......
  • WPF(2)命令绑定
    效果是:当TextBox控件的Text属性为空时show按钮不可用,有值时show按钮可用项目结构   界面代码<Windowx:Class="WpfApp1.MainWindow"xmlns="http://sche......
  • mysql 管理员常用命令
    1、创建用户createuseradmin@localhostidentifiedby'password';2、赋权grantprivilegesONdatabase.tableTO'username'[@'host'][withgrantoption]gr......
  • 使用Git操作Gitee命令
    使用Git操作Gitee命令安装Git略上传代码到Gitee首先,在Gitee上新建仓库,设置为公开;然后,打开GitBash,执行如下命令:gitconfig--globaluser.name"kylewang_ai"gi......
  • linux命令与公私钥
    昨日内容回顾etc目录配置相关/etc/profile 环境变量文件/etc/motd 开机欢迎界面usr目录程序相关四种安装软件的方式 1.yum安装 自动解决依赖性问题 2.r......
  • grep 命令详解
    grep简介grep[-acinv][--color=auto]'匹配的字串'文件名称选项与参数:-a :将二进制文件以text文件的方式匹配-c :统计匹配到的字串次数-i :忽略大小写-n :输出行号-v :......
  • shell/Linux 任务学习笔记整理2:head/tail命令
    注!!:笔记来源:(原文链接:)https://blog.csdn.net/zznnniuu/article/details/123155074      版权声明:本文为CSDN博主「zznnniuu」的原创文章原文链接:https://blog......
  • Git命令
    环境配置//配置用户信息gitconfig--globaluser.name"name"gitconfig--globaluser.email"email"//查看所有用户配置gitconfig--list//查看user.name配......
  • CentOS网络服务操作命令
    CentOS重启网络服务,输入下面的命令:systemctlretartnetwork.service或systemctlrestartnetwork。CentOS启动网络服务,输入下面的命令:systemctlstartnetwork.servi......
  • Linux-crontab定期执行程序的命令
    https://www.runoob.com/linux/linux-comm-crontab.html Linux crontab 是用来定期执行程序的命令。当安装完成操作系统之后,默认便会启动此任务调度命令。crond 命......