其他分享
首页 > 其他分享> > 乱七八糟想到什么记什么4

乱七八糟想到什么记什么4

作者:互联网

多用户操作系统

配置文件夹etc

Linux一切皆文件,配置文件放在etc目录下面,etc配置文件相当于Windows的注册表。-

shell

工作在人机之间

主流的是bash shell

查看当前的shell

u20@u20:~$ echo $SHELL
/bin/bash

查看系统支持的shell

u20@u20:~$ cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/bash
/usr/bin/bash
/bin/rbash
/usr/bin/rbash
/bin/dash
/usr/bin/dash
/usr/bin/tmux
/usr/bin/screen

查看后台运行的bash

ps 相当于Windows中的任务管理器

u20@u20:~$ ps aux | grep bash
u20         3343  0.0  0.2   8268  5300 tty1     S+   04:34   0:00 -bash
u20         5509  0.0  0.2   8276  5260 pts/0    Ss   05:59   0:00 -bash
u20         6729  0.0  0.0   6300   736 pts/0    S+   06:46   0:00 grep --color=auto bash

标签:bin,shell,乱七八糟,想到,etc,u20,usr,什么,bash
来源: https://www.cnblogs.com/bpzblog/p/12813508.html