1.shell的分类、分类和初始化
来源:互联网 发布:mac 放大图片 编辑:程序博客网 时间:2024/04/28 23:30
shell的分类
cat /etc/shells 可以查看可用shell
echo $SHELL 查看当前使用shell
shell的更改
'chsh -s dash 用户名' 或者修改/etc/passwd文件来修改使用shell
shell的初始化
账户在登陆/登出系统时读取的脚本文件:/etc/profile ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc /etc/bashrc ~/.bash_logout
登陆shell 和 非登陆shell 区别在于登陆时是否需要用户名
'su -root' 属于登陆shell 直接打开终端就是非登陆shell
适用范围 非登陆shell 登陆shell
/etc/bashrc 所有账户 会读到 读到
/etc/profile 所有账户 不会读到 读到
~/.bashrc 当前账户 会读到 读到
~/.bash_profile 当前账户 不会读到 读到
cat /etc/shells 可以查看可用shell
echo $SHELL 查看当前使用shell
shell的更改
'chsh -s dash 用户名' 或者修改/etc/passwd文件来修改使用shell
shell的初始化
账户在登陆/登出系统时读取的脚本文件:/etc/profile ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc /etc/bashrc ~/.bash_logout
登陆shell 和 非登陆shell 区别在于登陆时是否需要用户名
'su -root' 属于登陆shell 直接打开终端就是非登陆shell
适用范围 非登陆shell 登陆shell
/etc/bashrc 所有账户 会读到 读到
/etc/profile 所有账户 不会读到 读到
~/.bashrc 当前账户 会读到 读到
~/.bash_profile 当前账户 不会读到 读到
0 0
- 1.shell的分类、分类和初始化
- SHELL [文本文件的分类,合并和分割]
- Shell 扩展的分类
- shell分类
- Shell分类
- SHELL的功能及分类
- SHELL的功能及分类
- unix shell 变量的分类
- Linux操作系统的Shell简介及其分类
- Shell的发展史、分类及作用
- shell变量的分类及定义
- shell for分类
- shell 文件分类
- 文档的作用和分类
- 文法和语言的分类
- 文档的作用和分类
- 文档的作用和分类
- 文档的作用和分类
- 如何通过经纬度粗略计算地球两点之间的距离?直接上代码
- 如何设计一个秒杀系统
- IntelliJ DataGrip Oracl 11g远程连接
- android中的样式和主题(styles和theme)
- Mybatis一对多关联
- 1.shell的分类、分类和初始化
- 可伸缩多线程任务队列
- Lightest Alipay Transfer Helper - 最轻量的支付宝转账工具类
- 【数据结构】栈面试题--两个栈实现一个队列
- 带你走进rsync的世界
- 日期格式 FormatDateTime函数详解
- mysql数据库中字段为时间类型要怎么什么类型表示
- 使用js判断是否是IE浏览器
- ViewGroup.getChildMeasureSpec(int spec, int padding, int childDimension)解释