当前位置: 首页 > news >正文

西安网站建设网网站查询信息

西安网站建设网,网站查询信息,seo的优化策略有哪些,昆明网站建设技术托管linux命令之alias 1.alias介绍 linux命令alias是用来将/bin目录下的命令进行别名设置,将一些较长的命令进行简化。 alias命令的作用只局限于该次登入的操作,相当于临时变量。 如果对当前用户永久生效,需修改~/.bashrc文件,使用…

linux命令之alias

1.alias介绍

linux命令alias是用来将/bin目录下的命令进行别名设置,将一些较长的命令进行简化。

alias命令的作用只局限于该次登入的操作,相当于临时变量。

如果对当前用户永久生效,需修改~/.bashrc文件,使用命令source .bashrc生效。

如果对全局用户生效,需修改/etc/profile或/etc/bashrc文件,使用命令source /etc/profile或source /etc/bashrc生效。

2.alias用法

alias [参数] key=value

alias参数
参数说明
-p以可重用的格式打印所有的已定义的别名

3.实例

3.1.alias帮助

命令:

help alias

[root@centos79-3 ~]# help alias
alias: alias [-p] [name[=value] ... ]Define or display aliases.Without arguments, `alias' prints the list of aliases in the reusableform `alias NAME=VALUE' on standard output.Otherwise, an alias is defined for each NAME whose VALUE is given.A trailing space in VALUE causes the next word to be checked foralias substitution when the alias is expanded.Options:-p	Print all defined aliases in a reusable formatExit Status:alias returns true unless a NAME is supplied for which no alias has beendefined.
[root@centos79-3 ~]# 

3.2.设置临时别名

命令:

alias cp='echo aaaaa'

[root@centos79-3 ~]# alias cp='echo aaaaa'
[root@centos79-3 ~]# alias cp
alias cp='echo aaaaa'
[root@centos79-3 ~]# 

3.3.打印所有已定义的别名

命令:

alias -p

[root@centos79-3 ~]# alias -p
alias cp='echo aaaaa'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
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'
[root@centos79-3 ~]# 

3.4.取消cp别名设置

命令:

unalias cp

[root@centos79-3 ~]# unalias cp
[root@centos79-3 ~]# alias cp
-bash: alias: cp: not found

3.5.取消所有别名设置

命令:

unalias -a

备注:

-a :取消所有命令别名

[root@centos79-3 ~]# unalias -a
[root@centos79-3 ~]# alias
[root@centos79-3 ~]# 

3.6.unalias帮助

命令:

help unalias

[root@centos79-3 ~]# help unalias
unalias: unalias [-a] name [name ...]Remove each NAME from the list of defined aliases.Options:-a	remove all alias definitions.Return success unless a NAME is not an existing alias.
[root@centos79-3 ~]# 

http://www.ysxn.cn/news/1979.html

相关文章:

  • 哈尔滨网站优化公司外贸网站平台哪个好
  • 浙江网站推广已备案域名30元
  • seo做多个网站百度小说排行榜第一名
  • 手机app软件开发价格游戏优化
  • 成都网站建设索q479185700小说网站排名
  • 淘宝网站是哪个公司做的糕点烘焙专业培训学校
  • 太原富库网站建设深圳seo招聘
  • 潍坊做网站联系方式引流推广平台软件
  • 做网站公司哪家好营销推广的形式包括
  • 广东两学一做考试网站关键词搜索引擎优化推广
  • 网站做排名有用吗策划推广活动方案
  • 国微 网站建设免费发布外链
  • 营销模式方案免费seo视频教程
  • 做外围的都上什么网站找app推广之家
  • 全国大学生创业网登录入口郑州seo优化顾问阿亮
  • 响应式app下载wordpress主题站长工具seo综合查询权重
  • 专门做二手笔记本批发的网站惠州网站营销推广
  • 网站优化关键词怎么做泰州seo排名扣费
  • 网站建设 英汇网络南京广告宣传公司seo
  • 手机网站设计创意说明杭州网站关键词排名优化
  • 电脑版和手机版网站怎么做的投百度做广告效果怎么样
  • 重庆通信管理局网站推广业务
  • 做网站开发挣钱吗南京关键词优化软件
  • 网站开发 旅游如何推广外贸型网站
  • 网站建设流量入口惠州搜索引擎优化
  • 如何建设网站兴田德润怎么样百度95099怎么转人工
  • 阿里巴巴怎么做企业网站百度开户渠道
  • 网站建设销售好做吗厦门百度seo排名
  • 新疆建设学院网站查成绩沈阳seo合作
  • 上海微网站建设百度网址大全电脑版