/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置./etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取.~/.bash ...
转载 2021-10-12 08:44:00
502阅读
2评论
/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行. 并从/etc/profile.d目录的配置文件中搜集shell的设置.可以认为系统环境变量. /etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该 ...
转载 2020-12-21 15:02:00
612阅读
2评论
Linux下profile和bashrc区别1./etc/profile 用来设置系统环境参数,比如$PATH. 这里面的环境变量是对系统内所有用户生效的。2./etc/bashrc 这个文件设置系统bash shell相关的东西,对系统内所有用户生效。只要用户运行bash命令,那么这里面的东西就在起作用。3.~/.bash_profile 用来设置一些环境变量,功能和/etc/profile
转载 2024-05-19 07:53:13
401阅读
Linux操作系统作为一种开源的操作系统,拥有着强大的定制性和灵活性,让用户可以根据自己的需求进行各种调整和配置。其中,bash_profile文件就是Linux系统中一个非常重要的配置文件,它承担着管理用户环境变量和启动脚本的重要功能。 在Linux系统中,每个用户都有一个家目录,家目录下有一个名为.bash_profile的隐藏文件,这个文件是用户登录时自动执行的脚本文件。在用户登录的过程中
原创 2024-04-11 10:15:28
158阅读
Some interesting excerpts from the bash manpage:When bash is invoked as an interactivelogin shell, or as a non-interactive shell with the--loginoption, it first reads and executes commands from the file/etc/profile, if that file exists. After reading that file, it looks for~/.bash_profile,~/.bash_lo
转载 2013-12-09 10:12:00
223阅读
2评论
1.login shell模式下:   #  当使用这个模式登录的时候,首先回去读取/etc/profile这个配置文件,每个用户登录取得bash时也必须要读这个文件。如果你想要对整个bash的环境进行设定的时候就可以在这个文件里进行修改。用cat /etc/passwd读取这个文件,你会看到很多你熟悉的变量,当然你也可以尝试着去读懂它。  &nb
转载 2023-11-30 17:06:56
120阅读
/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
688阅读
每个用户都可使用 ~/.bash_profile 文件输入专用于自己使用的 shell 信息,~ 表示用户的家目录,如 root 用户就是 /root/.bash_profile当用户登录 shell 时就执行该文件,该文件仅仅执行一次,默认情况下,该文件设置一些环境变量,执行用户的 .bashrc
转载 2019-02-01 10:06:00
806阅读
.bash_profile 是用户登陆时的环境变量,如PATH等,的设置文件。当用户login s
原创 2023-04-14 19:43:53
165阅读
# .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
1947阅读
Linux操作系统是一种常见的操作系统,广泛应用于服务器和个人电脑中。其中,Bash(GNU Bourne-Again Shell)是Linux下常用的命令行Shell。在Linux系统中,用户可以通过编辑bash profile文件来定制自己的命令行环境。 bash profile是一个用来保存用户个性化设置和命令别名等配置信息的文件。在Linux系统中,每个用户都有一个对应的bash pro
原创 2024-03-04 13:52:00
51阅读
原创 2022-09-20 20:19:45
243阅读
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
651阅读
profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 2 by:授客 QQ:1033553122 接Part 1 B. 当bash以interactive shell方式启动时: 如果存在~/.ba
原创 2021-06-06 01:21:18
936阅读
Linux的.bash_profile, .bash_logout, .bashrc 三个文件bash 来说有特殊的意义。你可以通过修改这三个文件让系统自动为你的账户进行个性化环境的设置。这些文件可能存在于你的主目录下面,如果不存在,那么系统将根据/etc/profile文件进行配置。    .bash_profile非常重要,你每次登录shell的时候都要去读这个文件(并且只在登
转载 精选 2009-12-28 22:07:01
2219阅读
 一、知识点归纳1.配置文件关系/etc/*和~/.*区别:/etc/profile,/etc/bashrc 是系统全局环境变量设定~/.profile,~/.bashrc(有的发行版上为“~/.bash_profile”)是用户家目录下的私有环境变量设定~/.profile与~/.bashrc的区别:都具有个性化定制功能~/.profile可以设定本用户专有的路径,环境变量等,它只在登
转载 2024-01-08 14:03:15
105阅读
先要配置jdk步骤大概如下先解压Hadoop的安装包,然后在 .bash_profile文件中进行修改该安装包的环境变量目录。(.bash_profile是最重要的一个配置文件,它在用户每次登录系统时被读取,里面的所有命令都会被bash执行)同时将相应的bin也加入到path中。然后就是对一些核心文件进行配置。配置这些文件后,格式化namenode,然后就可以启动集群了。启动完后,基本也就完成了。
转载 2023-09-14 13:06:43
65阅读
1. 启动终端Terminal 2. 进入当前用户的home目录 输入cd ~ 3. 创建.bash_profile 输入touch .bash_profile 4. 编辑.bash_profile文件 输入open .bash_profile 第一种方式 <1>、为在弹出的.bash_profil
转载 2021-08-13 09:51:06
2003阅读
一般在Mac上配置环境变量时经常要创建、编辑 .bash_profile文件。创建该文件时一般都会选择在当前用户目录下,即Mac下的.bash_profile 文件的路径是 /Users/YourMacUserName/.bash_profile (如果该文件已经创建过的话)1、创建 .bash_profile (1) 启动终端 (2) 进入当前用户的home目录(默认就是): ...
原创 2021-08-24 15:55:34
9963阅读
今天有一同事安装了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
793阅读
  • 1
  • 2
  • 3
  • 4
  • 5