/home/oracle  隐藏文件.bash_profile# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then    . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/b
原创 2016-04-01 19:50:15
651阅读
每个用户都可使用 ~/.bash_profile 文件输入专用于自己使用的 shell 信息,~ 表示用户的家目录,如 root 用户就是 /root/.bash_profile当用户登录 shell 时就执行该文件,该文件仅仅执行一次,默认情况下,该文件设置一些环境变量,执行用户的 .bashrc
转载 2019-02-01 10:06:00
775阅读
.bash_profile 是用户登陆时的环境变量,如PATH等,的设置文件。当用户login s
原创 2023-04-14 19:43:53
137阅读
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then         . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$H
原创 2010-12-10 10:56:34
1776阅读
原创 2022-09-20 20:19:45
229阅读
 一、知识点归纳1.配置文件关系/etc/*和~/.*区别:/etc/profile,/etc/bashrc 是系统全局环境变量设定~/.profile,~/.bashrc(有的发行版上为“~/.bash_profile”)是用户家目录下的私有环境变量设定~/.profile与~/.bashrc的区别:都具有个性化定制功能~/.profile可以设定本用户专有的路径,环境变量等,它只在登
先要配置jdk步骤大概如下先解压Hadoop的安装包,然后在 .bash_profile文件中进行修改该安装包的环境变量目录。(.bash_profile是最重要的一个配置文件,它在用户每次登录系统时被读取,里面的所有命令都会被bash执行)同时将相应的bin也加入到path中。然后就是对一些核心文件进行配置。配置这些文件后,格式化namenode,然后就可以启动集群了。启动完后,基本也就完成了。
转载 2023-09-14 13:06:43
38阅读
/etc/profile 为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行,并从/etc/profile.d目录的配置文件中搜集shell的设置,etc/profile中设定的变量的可以作用于任何用户,而~/.bashrc等中设定的变量只能继承/etc/profile中的
原创 2022-01-04 15:32:00
267阅读
[oracle@redhat4 ~]$ vi .bash_profile # .bash_profile # Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi # User specific environment and startup programs PATH=$PATH:$HOME/bin...
原创 2021-07-21 11:43:53
500阅读
今天有一同事安装了ORACLE后,在切换账号时遇到错误提示“-bash: .bash_profile: command not found”。如下所示 [root@GLETestLinux ~]# su - oracle-bash: .bash_profile: command not found[oracle@GLETestLinux ~]$
原创 2021-08-23 09:48:34
714阅读
bash_profile和.bashrc的什么区别及启动过程 .bash_profile和.bashrc的什么区别bash_profile和.bashrc的什么区别 --------------------------------------------------------------------------------/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次
转载 精选 2014-05-28 16:25:32
343阅读
[oracle@localhost ~]$ cat ~/.bash_profile # .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then        . ~/.bashrcfi# User specific environment and startup p
原创 2014-06-10 19:52:20
2474阅读
MAC打开.bash_profile启动终端Terminal进入当前用户的home目录输入cd~创建.bash_profile输入touch.bash_profile编辑.bash_profile文件输入open-e.bash_profile保存文件,关闭.bash_profile更新刚配置的环境变量输入source.bash_profile
原创 2019-05-16 08:18:15
6073阅读
说说配置环境变量的方法: vim ~/.bash_profile 进入配置文件 添加路径例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,执行生效的指令 由于我每次关闭窗口后,都要重新执行source
转载 2021-06-26 19:57:00
303阅读
2评论
Linux系统是一款广泛使用的开源操作系统,有着强大的定制性和灵活性,因此被许多用户所青睐。而在Linux系统中,Bash是一种常用的命令行解释器,用户可以通过Bash来操作系统,进行各种任务。在使用Linux系统的过程中,了解如何使用Bash Profile是非常重要的。 Bash Profile是一个用来存储用户Shell配置的文件。当用户登录系统时,系统会读取Bash Profile文件中
原创 3月前
26阅读
在Linux系统中,Bash是一个常用的命令行解释器,可以帮助用户执行各种操作和管理任务。其中,bash_profile文件是一个重要的配置文件,它包含了用户的环境变量和其他个性化设置,可以在用户登录时自动执行。 要打开bash_profile文件,用户需要首先了解它的作用和位置。在Linux系统中,bash_profile通常位于用户的主目录下,文件名为“.bash_profile”。用户可以
原创 4月前
161阅读
在Linux系统中,用户可以通过配置文件来自定义环境设置,其中一个非常重要的配置文件就是`.bash_profile`文件。`.bash_profile`文件位于用户的 home 目录下,是用来存储用户的个性化 Bash shell 环境变量和配置信息的文件。 在Linux系统中,每个用户登录系统时都会加载该用户的`.bash_profile`文件,以便为用户提供一个符合其需求的 Bash sh
login 方式:: su - oracle 依次 /etc/bash.bashrc———— /home/$user/.bashrc ———— /ect/profile ———— /home/$user/.bash_profile(找不到~/.bash_profile, 则寻找~/.bash_l...
原创 2021-08-11 14:34:46
605阅读
1、打开Terminal(终端) 2、输入:vi ~/.bash_profile 3、设置PATH:export PATH=/mongodb/bin:$PATH 4、输入::wq //保存并退出vi 5、修改立即生效:source ~/.bash_profile 6、查看环境变量的值:echo $P ...
转载 2021-10-12 08:46:00
8730阅读
7点赞
2评论
说说配置环境变量的方法: vim ~/.bash_profile 进入配置文件 添加路径例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,执行生效的指令 由于我每次关闭窗口后,都要重新执行source ...
转载 2021-11-03 10:43:00
1848阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5