小编joh*_*uir的帖子

Bash别名问题

我不明白为什么使用别名会提示错误,但使用没有别名的相同语法不会......

alias grep='egrep -iIs '
19:47:24 ~
cat /etc/services | \grep ssh
ssh     22/tcp              # SSH Remote Login Protocol
19:47:26 ~
cat /etc/services | grep ssh
grep: option requires an argument -- 'X'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
19:47:33 ~
cat /etc/services | egrep -iIs ssh
ssh     22/tcp              # SSH Remote Login Protocol
Run Code Online (Sandbox Code Playgroud)

你能解释一下吗?

grep bash alias

3
推荐指数
1
解决办法
411
查看次数

标签 统计

alias ×1

bash ×1

grep ×1