【发布时间】:2019-10-16 14:55:53
【问题描述】:
这是对之前提出的问题的扩展:What are some common HDFS commands that can be mapped in the bash files?
我注意到我最初提供的 .bashrc 和 .bash_profile 与您提供的略有不同。这是可以的还是某种不同的模式?
我开始时复制过来的文件如下:
.bashrc
.bash_profile
.bashrc
source /etc/bashrc
...and a lot of other folder mappings
.bash_profile
# .bash_profile
# Get the aliases and functions
#if [ -f ~/.bashrc ]; then
# . ~/.bashrc
#fi
source ~/.bashrc
我按照您的建议创建了 .bash-aliases 文件。
.bash_aliases
alias h="hdfs dfs"
我修改了.bashrc文件如下
.bashrc - 修改
source /etc/bashrc
...and a lot of other folder mappings
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
【问题讨论】:
标签: bash hadoop hdfs command-line-interface putty