Linux基础知识系列之二,有哪些进阶内容?

2026-05-06 20:000阅读0评论SEO资源
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计1656个文字,预计阅读时间需要7分钟。

Linux基础知识系列之二,有哪些进阶内容?

请提供需要改写的伪原创内容,我会按照您的要求进行改写。

常用命令

alias(别名)

在Linux基础知识系列之一中提到ls -l=ll,这个就是Linux中的别名,使用alias可以查看系统默认的别名。

[root@hadoop001 ~]# alias alias cp='cp -i' 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'

使用alias 别名=命令字符串就可以在当前session会话中生效,如果你想要一直生效,请在环境变量文件末中增添上述命令,有关环境变量的请看下一节。

阅读全文
标签:Linux基础

本文共计1656个文字,预计阅读时间需要7分钟。

Linux基础知识系列之二,有哪些进阶内容?

请提供需要改写的伪原创内容,我会按照您的要求进行改写。

常用命令

alias(别名)

在Linux基础知识系列之一中提到ls -l=ll,这个就是Linux中的别名,使用alias可以查看系统默认的别名。

[root@hadoop001 ~]# alias alias cp='cp -i' 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'

使用alias 别名=命令字符串就可以在当前session会话中生效,如果你想要一直生效,请在环境变量文件末中增添上述命令,有关环境变量的请看下一节。

阅读全文
标签:Linux基础