
shell学习初体验
centos7支持的shell cat /etc/shells c7默认shell echo $SHELL /bin/bash shell变量 1. 全局变量(环境变量) echo $PS1 echo $PATH echo $HOME ec...
centos7支持的shell cat /etc/shells c7默认shell echo $SHELL /bin/bash shell变量 1. 全局变量(环境变量) echo $PS1 echo $PATH echo $HOME ec...
<!-- 权限 --> 用户权限 drwxr-xr-x root root -rw-r--r-- root root 解析: d 目录 - 文件 root 用户 root 用户组 rw- root所有者 r-- root所属组 ...
<!-- for循环简单实例 --> #!/bin/bash #for.sh for i in a b c d do echo $i sleep done 设置权限 chmod a+x for.sh 不设去权限使用 bash ....
文件或目录(普通文件) ------chmod scl 用户对某个程序或某个应用脚本-------sudo chmod 不能实现权限细化问题 1.数字权限分配 chmod 755 file r 4 w 2 x ...
查看文章权限 ls -l file ll Linux权限 r 可读 w 可写 x 可执行 Linux用户 所有者(u) 所属组(g) 其他用户(o) 所有用户(all) drwxr-xr-x. 3 root root 409...
更改IP地址 临时更改 ifconfig eth0 192.168.100.1 永久更改 vi /etc/sysconfig/network-scripts/ifcfg-eth0 tab键自动补全(tab)...