.bash_profile 与 .bashrc 的区别
[@rsync.slave02.hbasetest.hb.ted ~]# vim .bashrc
echo "hbase test02 ~/.bashrc"
[@rsync.slave02.hbasetest.hb.ted ~]# vim .bash_profile
echo "hbase test02 ~/.bash_profile"
Last login: Wed Apr 22 09:28:43 2020 from 10.129.148.159
hbase test02 ~/.bashrc
hbase test02 ~/.bash_profile
[@rsync.slave02.hbasetest.hb.ted ~]#
2、SSH 登陆
[@rsync.slave01.hbasetest.hb.ted ~]# ssh rsync.slave02.hbasetest.hb.ted
root@rsync.slave02.hbasetest.hb.ted's password:
Last login: Wed Apr 22 10:12:44 2020 from 10.129.148.159
hbase test02 ~/.bashrc
hbase test02 ~/.bash_profile
3、su 登陆
[@rsync.slave02.hbasetest.hb.ted ~]$ su - root
Password:
Last login: Wed Apr 22 10:13:32 CST 2020 from 10.160.58.41 on pts/1
hbase test02 ~/.bashrc
hbase test02 ~/.bash_profile
[@rsync.slave01.hbasetest.hb.ted ~]# ssh rsync.slave02.hbasetest.hb.ted "hostname"
root@rsync.slave02.hbasetest.hb.ted's password:
hbase test02 ~/.bashrc
rsync.slave02.hbasetest.hb.ted
posted on 2020-04-22 10:17 gentleman_hai 阅读(274) 评论(0) 编辑 收藏 举报