bashrc&&profile

# /etc/bashrc

# are we an interactive shell?  是交互式的shell吗?

# System wide functions and aliases  //系统功能和别名

比如说:你设置个别名

alias ‘xix‘=‘date‘

当你键入xix时,那么系统显示为命令date的信息。(键入后才输出)交互

#It‘s much better to create a custom.sh shell script in  //自定义脚本最好写到这里
# /etc/profile.d/

# /etc/profile
# System wide environment and startup programs, for login setup  //系统的环境和开启程序,对于登录系统时的设置

bashrc&&profile

时间: 2024-08-03 03:57:06

bashrc&&profile的相关文章

React Native (Mac) 终端修改 ~/.bashrc, ~/.profile, ~/.zshrc

在React Native 中,我们使用brew 安装nvm 的时候之后,并且创建完项目之后,下次再次使用xcode7 打开项目之后,发现运行失败.原因是nvm不能使用了,原因如下: 原因:brew 安装后一定要在你的 bash 或者 zsh 配置文件中设置一下,否则 当你重新启动终端,你会发现 node ,npm 环境变量都失效了. 1.打开terminal(终端) 2.cd ~ ( 进入当前用户的home目录) 3.open .bash_profile (打开.bash_profile文件,

/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 的区别(转)

/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行并从/etc/profile.d目录的配置文件中搜集shell的设置. /etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取 ~/.bash_profile:每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件. ~/.bashrc:该文件

/etc/bashrc和/etc/profile傻傻分不清楚?

导读 在一般的 linux 或者 unix 系统中, 都可以通过编辑 bashrc 和 profile来设置用户的工作环境, 很多文章对于 profile 和 bashrc 也都有使用, 但究竟每个文件都有什么作用和该如何使用呢? 首先我们来看系统中的这些文件, 一般的系统可能会有 /etc/profile /etc/bashrc ~/.bashrc ~/.profile 而如果系统是 ubuntu 或者 debian 的话, 就不会有 /etc/bashrc 而会有 /etc/bash.bas

/etc/bashrc和/etc/profile

在一般的 linux 或者 unix 系统中, 都可以通过编辑 bashrc 和 profile来设置用户的工作环境, 很多文章对于 profile 和 bashrc 也都有使用, 但究竟每个文件都有什么作用和该如何使用呢? 首先我们来看系统中的这些文件, 一般的系统可能会有 /etc/profile /etc/bashrc ~/.bashrc ~/.profile 而如果系统是 ubuntu 或者 debian 的话, 就不会有 /etc/bashrc 而会有 /etc/bash.bashrc

理解 bashrc 和 profile(转)

转自:https://wido.me/sunteya/understand-bashrc-and-profile/ 在一般的 linux 或者 unix 系统中, 都可以通过编辑 bashrc 和 profile 来设置用户的工作环境, 很多文章对于 profile 和 bashrc 也都有使用, 但究竟每个文件都有什么作用和该如何使用呢? 首先我们来看系统中的这些文件, 一般的系统可能会有 1 2 3 4 5 /etc/profile /etc/bashrc ~/.bashrc ~/.prof

linux 下/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的区别

/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行. 并从/etc/profile.d目录的配置文件中搜集shell的设置. /etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取. ~/.bash_profile:每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该 文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件. ~/.bashrc

Linux之进程管理及Shell脚本

使用!来调用过往命令 !! 重复执行上一条指令 !a 重复执行上一条以a为首的指令 !nubmer 重复执行上一条在history表中记录号码为number的指令 !-number重复执行前第number条指令 ailas abc='cd xxxxxxxxxxx/xxxxxxxx/xxxxxxxxxxxxx' unalias abc " "将一串字符当成字符串来看,可以转译特殊字符 ' '将一串字符当成字符串来看,无法转译特殊字符 ·能够返回命令执行的结果 echo `uname -a

解决打开cmd自动运行sublime的问题

之前想在sublime里支持中文,参考了一些帖子,如: https://my.oschina.net/tsl0922/blog/113495 https://ming-yi.github.io/2016/09/07/%E8%A7%A3%E5%86%B3-Linux-%E4%B8%8B-Sublime-Text-%E4%B8%AD%E6%96%87%E8%BE%93%E5%85%A5/ 但设置完以后,每次打开cmd都会自动打开sublime.被纠缠很久,今天看下是我多做了教程里没讲的一步,我也不知

linux基本知识2

vi/vim工具使用 vi三种模式: 1.浏览模式(命令模式) 2.输入模式 3.末行模式 三种模式切换: 浏览模式(命令模式)    按"i" "a"      输入模式 输入模式   按"esc"        浏览模式(命令模式) 浏览模式(命令模式)    按shif+:      末行模式 浏览模式经常使用的命令: 删除一行  dd 删除多行  ndd (n=1,2,3) 复制一行  yy 复制多行  nyy (n=1,2,3) 粘贴