• 手机版

    扫码体验手机版

  • 微信公众号

    扫码关注公众号

国内首家协议开发

软芯音视解码保护平台

在线
客服

发布
需求

在线
聊天

天盟
APP

天盟APP下载

关注
微信

微信扫一扫访问
顶部

alias 内置的定义在哪里?

为什么alias命令比.bashrc里面定义对别名多?多的这几个是哪里定义的,可以查看吗?

# cat /root/.bashrc
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi
#alias
alias cp='cp -i'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'

alias mv='mv -i'
alias rm='rm -i'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
#

免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。

版权声明:作者保留权利,不代表天盟立场。

使用道具 举报

全部参与1

通常在进入shell登录过程中会加载多个配置文件来配置环境。不同发行版有不同的习惯,不过一般来说有以下几个:
用户目录下的 .bashrc 中一般是用户自定义的,此外也可能有 .bash_profile .bash_login
/etc/bashrc 一般是系统级别的bash配置
/etc/profile 及 /etc/profile.d/ 目录中的 一般是全局的环境变量等


你去 /etc/profile 和 /etc/profile.d 中找找看吧。或者去查阅发行版的目录规范

使用道具 举报

发新帖

发布任务需求已有1031167位用户正在使用天盟网服务

发布分类: *
任务预算: *
需求内容: *
手机号码: *
任务商家报价为
  • 预算价 :
  • 成交价 :
  • 完工期 :
  • 质保期 :

* 最终任务项目以服务商报价、双方协商为准!