linux各个文件夹的用途
英文:
/bin: where binary programs live.
/boot: the special programs that start the system when you turn the machine on.
/dev: aaaaaalll the "device" listings for hardware of every concievable flavor, along with some "imaginary" devices,
lile /dev/null and /dev/zero. When you get a random number it usually comes from /dev/random.
/etc: configuration files.
/home: the user's directories live here.
/lib: the library files that programs need to run, if they are compiled to link against these libraries.
/lost+found: look here after a system crash/kernel panic or other extreme scenario to find "orphaned" files.
/misc: kinda reminds you of /etc, doesn't it? Every time I see this folder on a system, it's empty, but I ascertain that
it stands for "miscellaneous", and I think it may be a place for users to keep their own "/etc" type files?
/mnt: "mount", the directory that acts as a gateway to every other disk or file system. Floppies are accessed from
/mnt/floppy, your second hard drive might be /mnt/hd here, and so on.
/opt: "optional", where programs that are installed after the initial system install sometimes end up.
/proc: running "processes". The "everything is a file" paradigm carried to the Linux degree!
This folder hosts files
which keep tabs on boring stuff like what daemons are running and the process ID of Emacs while you have
Emacs open.
/root: root's home!
/sbin: the "system-administrator's bin file", which hosts programs that would be in /bin if they didn't have "root-only"
access permissions.
/tmp: "temporary" files, of use by programs which need to throw together a data file on-the-fly in preperation for
executing some other task. This folder gets flushed on reboot.
/usr: "user". Practically a whole other system in here, /usr/bin is still more binaries, /usr/doc and /usr/share/doc are
documentation folders, /usr/share/games/fortune is where the funny quotes come from when you log on (if
that feature is enabled). The idea is that this should be where files/programs accessible by all users should
be, and thus your desktop backgrounds come from /usr/share/wallpapers, or such. The other case is newly
installed programs sometimes end up in /usr/local/bin.
/var: "variable". System logs in here, recording such things as the last foo commands typed at the prompt, start-up
boot messages, and such.
中文的:
/bin 二进制可执行命令 binary
/dev 设备特殊文件 device
/etc 系统管理和配置文件 1,editable text configuration 2,etcetera
/etc/rc.d 启动的配置文件和脚本 run commands
/home 用户主目录的基点,
/lib 标准程序设计库,又叫动态链接共享库 library
/sbin 系统管理命令,这里存放的是系统管理员使用的管理程序 system binary
/tmp 共用的临时文件存储点 temporary
/root 系统管理员的主目录
/mnt 系统提供这个目录是让用户临时挂载其他的文件系统 mount
/lost+found 这个目录平时是空的,系统非正常关机而留下“无家可归“的文件就在这里
/proc 虚拟的目录,是系统内存的映射。可直接访问这个目录来获取系统信息 processes
/var 某些大文件的溢出区,比方说各种服务的日志文件 variable
/usr 最庞大的目录,要用到的应用程序和文件几乎都在这个目录。其中包括:1,user 2, Unix System Resources
/usr/bin 众多的应用程序
/usr/sbin 超级用户的一些管理程序
/usr/include Linux下开发和编译应用程序所需要的头文件
/usr/lib 常用的动态链接库和软件包的配置文件
/usr/src 源代码,linux内核的源代码就放在这里
/usr/local/bin 本地增加的命令
/usr/local/lib 本地增加的库
其中有的文件夹的解释有多种,以后如果能找到原始的权威的解释就好了.
linux各个文件夹的用途的更多相关文章
- linux建立文件夹软连接
linux建立文件夹软连接,并强制覆盖 ln -sfn /home/var/log/httpd/logs logs 这将在当前目录下建立logs软连接,指向/home/var/log/httpd/lo ...
- Linux CP文件夹略过目录的解决
在Ubuntu Linux复制文件夹时出现一个问题,做个笔记,希望能给刚入门的菜鸟学习一下(见图1). 出现略过目录: www_linuxidc_com@linuxidc-Aspire-3680:~$ ...
- (转)linux各文件夹的作用
原文地址:<linux各文件夹的作用> linux下的文件结构,看看每个文件夹都是干吗用的/bin 二进制可执行命令 /dev 设备特殊文件 /etc 系统管理和配置文件 /etc/rc. ...
- [转]linux各文件夹介绍
本文来自linux各文件夹的作用的一个精简版,作为个人使用笔记. 下面简单看下linux下的文件结构,看看每个文件夹都是干吗用的? /bin 二进制可执行命令 /dev 设备特殊文件 /etc 系统管 ...
- linux查看文件夹大小,备份文件夹zip压缩解压
linux查看文件夹大小,备份文件夹zip压缩解压 du -sh : 查看当前目录总共占的容量.而不单独列出各子项占用的容量 du -lh --max-depth=1 : 查看当前目录下一级子文件和子 ...
- linux 查看文件夹下的文件个数(当前目录的文件数)//包含子目录
ls -l |grep "^-"|wc -l //验证了redhat好用 或 find ./company -type f | wc -l 查看某文件夹下文件的个数,包括子文件 ...
- Linux 删除文件夹和文件的命令(转载)
Linux 删除文件夹和文件的命令 听语音 | 浏览:93339 | 更新:2013-05-02 18:40 | 标签:linux 文件夹 linux删除目录很简单,很多人还是习惯用rmdir,不过一 ...
- Linux下的tree命令 --Linux下文件夹树查看
Linux下的tree命令 --Linux下文件夹树查看 有时我们须要生成文件夹树结构,能够使用的有ls -R,可是实际效果并不好 这时须要用到tree命令,可是大部分Linux系统是默认不安装该命令 ...
- ls命名 | Linux统计文件夹内的文件个数
ls命名 man ls -R 递归列出全部的目录内容 recusive -a 列出所有的文件(包括以 . 开头的隐藏文件) all -r 逆序排列 reverse -t 按照时间信息排序 time - ...
随机推荐
- 利用base64函数,对文件进行转码加密
设计此种编码是为了使二进制数据可以通过非纯 8-bit 的传输层传输,例如电子邮件的内容就是通过base64转码后传输的.Base64-encoded后, 数据要比原始数据多占用 33% 左右的空间. ...
- tensorflow max_pool(最大池化)应用
1.最大池化 max pooling是CNN当中的最大值池化操作,其实用法和卷积很类似. tf.nn.max_pool(value, ksize, strides, padding, name=Non ...
- 关于appium+模拟器+idea的细谈
之前转载的虫师的appium移动端自动化的文章,前边appium环境的搭建,这里就不过多介绍了,不明白的小伙伴可以返回去看,后边有不会的步骤, 也都去看,总之,两篇文章结合看! 关于移动端自动化测试- ...
- (转)在Linux里设置用户环境变量的方法
背景:在linux下,root用户安装完jdk后,非root用户不能使用java环境变量. 问题排查: 通过在root和非root用户下分别执行echo $PATH 可以观察环境变量的异同.然后将需要 ...
- Kotlin + Spring Boot 请求参数验证
编写 Web 应用程序的时候,经常要做的事就是要对前端传回的数据进行简单的验证,比如是否非空.字符长度是否满足要求,邮箱格式是否正确等等.在 Spring Boot 中,可以使用 Bean Valid ...
- Excel 一键上传到数据库
<a class="edit" id="batchImport"> 批量导入 </a> js代码弹窗: $("#bat ...
- Redux源码分析之createStore
接着前面的,我们继续,打开createStore.js, 直接看最后, createStore返回的就是一个带着5个方法的对象. return { dispatch, subscribe, getSt ...
- Java大数据人才应用领域广,就业薪酬高
互联网创造了大数据应用的规模化环境,大数据应用成功的案例大都是在互联网上发生的, 互联网业务提供了数据,互联网企业开发了处理软件,互联网企业的创新带来了大数据应用 的活跃,没有互联网便没有今天的大数据 ...
- nodeJS之crypto加密
前面的话 加密模块提供了 HTTP 或 HTTPS 连接过程中封装安全凭证的方法.也提供了 OpenSSL 的哈希,hmac, 加密(cipher), 解密(decipher), 签名(sign) 和 ...
- 从 Vue 1.x 迁移 — Vue.js
闲聊: 又到周五啦,明天不用上班啦哈哈哈哈哈,想想就好开心啊,嘻嘻,小颖这周三的早晨做个一个美梦,把自己愣是笑醒了,梦的大概剧情我忘记了,总之宝宝是被笑醒的,行了之后还傻笑了一段时间,真希望每天早上都 ...