赣州做网站jx25,婚纱摄影网页设计,广东建设公司网站,重庆建设工程信息网查询成绩刚毕业的时候学习Linux基础知识#xff0c;发现了一份特别好的文档快乐的 Linux 命令行#xff0c;翻译者是happypeter#xff0c;作者当年也在慕课录制了react等前端相关的视频#xff0c;通俗易懂#xff0c;十分推荐
关于Linux的目录#xff0c;多数博客已有详细介绍…刚毕业的时候学习Linux基础知识发现了一份特别好的文档快乐的 Linux 命令行翻译者是happypeter作者当年也在慕课录制了react等前端相关的视频通俗易懂十分推荐
关于Linux的目录多数博客已有详细介绍这里仅仅是结合工作内容以及上文提到的文档做些许记录供后续查阅使用
/opt
一般用于安装第三方的软件。比如开发的产品安装在客户机器上的目录即/opt
/tmp
一般用来存放临时文件比如说可以把安装包上传到此目录然后解压到opt
/bin
存放普通用户和系统管理员都可以使用的基本命令
/sbin
和bin一样都是存放可执行的命令但是人家全称叫System Binary面向的是系统管理员
/etc
这个主要存放系统配置文件。关于这个/etc的来源看了几个问题回答比较可信的是 I assure you that the original contents of /etc were the “et cetera” that didn’t seem to fit elsewhere. Other variants might do their own etymologies differently. Regards, Dennis 也就是说不知道放哪里了就放这里吧人家是co-creator of Unix还是信得过的。
这个比较常用包括DNS的域名解析配置用户最大进程数的配置用户的环境变量等等
/home
/home 目录是专门为普通用户设计的目录用来存放每个用户的个人数据和配置文件
/lib
做过Java开发的都知道需要的jar包也是在项目下的/lib是类似的道理只不过级别会高一些是系统运行所需的核心共享库和内核模块的存放位置 The /lib directory contains kernel modules and those shared library images (the C programming code library) needed to boot the system and run the commands in the root filesystem, ie. by binaries in /bin and /sbin. Libraries are readily identifiable through their filename extension of *.so. Windows equivalent to a shared library would be a DLL (dynamically linked library) file. They are essential for basic system functionality. Kernel modules (drivers) are in the subdirectory /lib/modules/‘kernel-version’. To ensure proper module compilation you should ensure that /lib/modules/‘kernel-version’/kernel/build points to /usr/src/‘kernel-version’ or ensure that the Makefile knows where the kernel source itself are located 参考
https://unix.stackexchange.com/questions/5665/what-does-etc-stand-forhttps://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/home.html