Linux必知必会的目录与启动过程
第1章 /etc/<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">目录
1.1 /etc/sysconfig/network-scripts/ifcfg-eth0
1.2 /etc/resolv.conf
dns<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">临时配置文件
1.3 /etc/fstab
<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">使用blkid <span style=“font-family:新宋体;Times New Roman”;Times New Roman"">可以看设备的UUID<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">唯一标识符
1.4 /etc/hosts
1.5 /etc/profile
1.6 /etc/bashrc
1.6.1 .bash_profile<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">与 .bashrc
1.7 /etc/init.d
1.8 /etc/inittab
<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">运行级别===<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">系统不同的状态
1.8.1 <span style=“font-family: 新宋体;Times New Roman”;Times New Roman"">不同运行级别的含义:
1.8.2 <span style=“font-family: 新宋体;Times New Roman”;Times New Roman"">如何临时修改运行级别
init 3 <span style=“font-family: 新宋体;Times New Roman”;Times New Roman"">修改运行级别
runlevel <span style=“font-family: 新宋体;Times New Roman”;Times New Roman"">显示运行级别
1.8.3 <span style=“font-family: 新宋体;Times New Roman”;Times New Roman"">如何永久修改运行级别
1.9 /etc/rc.local
第2章 /var/<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">目录
2.1 /var/log/messages
2.2 /var/log/secure
第3章 /proc<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">目录下
3.1 /proc/cpuinfo
3.2 /proc/meminfo
3.3 /proc/mounts
3.4 /proc/loadavg
w
第4章 linux<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">启动过程
第5章 PATH<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">环境变量作用
5.1 <span style=“font-family: 新宋体;Times New Roman”;Times New Roman"">运行命令的过程
1<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">、输入命令 ls
2<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">、系统会找ls <span style=“font-family:新宋体;Times New Roman”;Times New Roman"">在哪(问PATH<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">)
3<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">、找到了运行
4<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">、找不到提示 command not found <span style=“font-family:新宋体;Times New Roman”;Times New Roman"">或 no such file or directory
5.2 PATH<span style=“font-family:新宋体;Times New Roman”;Times New Roman"">修改
<li>
<a href="#17_etcinitd">1.7 /etc/init.d</a>
</li>
<li>
<a href="#18_etcinittab">1.8 /etc/inittab</a><ul>
<li>
<a href="#181">1.8.1 不同运行级别的含义:</a>
</li>
<li>
<a href="#182">1.8.2 如何临时修改运行级别</a>
</li>
<li>
<a href="#183">1.8.3 如何永久修改运行级别</a>
</li>
</ul>
</li>
<li>
<a href="#19_etcrclocal">1.9 /etc/rc.local</a>
</li>
</ul>
</li>
<li>
<a href="#2_var">第2章 /var/目录</a><ul>
<li>
<a href="#21_varlogmessages">2.1 /var/log/messages </a>
</li>
<li>
<a href="#22_varlogsecure">2.2 /var/log/secure</a>
</li>
</ul>
</li>
<li>
<a href="#3_proc">第3章 /proc目录下</a><ul>
<li>
<a href="#31_proccpuinfo">3.1 /proc/cpuinfo</a>
</li>
<li>
<a href="#32_procmeminfo">3.2 /proc/meminfo</a>
</li>
<li>
<a href="#33_procmounts">3.3 /proc/mounts</a>
</li>
<li>
<a href="#34_procloadavg">3.4 /proc/loadavg</a>
</li>
</ul>
</li>
<li>
<a href="#4_linux">第4章 linux启动过程</a>
</li>
<li>
<a href="#5_PATH">第5章 PATH环境变量作用</a><ul>
<li>
<a href="#51">5.1 运行命令的过程</a>
</li>
<li>
<a href="#52_PATH">5.2 PATH修改</a>
</li>
</ul>
</li>
- 原文作者:惨绿少年
- 原文链接:https://clsn.io/clsn/lx991.html
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。