• linux /usr目录

    千次阅读 2012-04-24 15:07:06
    /usr usually contains by far the largest share of data on a system. Hence,this is one of the most important directories in the system as it contains all the user binaries, their documentation, l


    /usr usually contains by far the largest share of data on a system. Hence,this is one of the most important directories in the system as it contains all the user binaries, their documentation, libraries, header files, etc. X and its supporting libraries can be found here. User programs like telnet, ftp are also placed here. In the original Unix implementations, /usr was where the home directories of the users were placed (that is to say, /usr/someone was then the directory now known as /home/someone). In current Unices, /usr is where user-land programs and data (as opposed to 'system land' programs and data) are. The name hasn't changed, but it's meaning has narrowed and lengthened from "everything user related" to "user usable programs and data". As such, some people may now refer to this directory as meaning 'User System Resources' and not 'user' as was originally intended.


    This directory contains the vast majority of binaries on your system. Executables in this directory vary widely. For instance vi, gcc, gnome-session and mozilla and are all found here.


    Once upon a time, this directory contained network games files. Rarely used now.


    The directory for 'header files', needed for compiling user space source code.


    This directory contains program libraries. Libraries are collections of frequently used program routines.


    The original idea behind '/usr/local' was to have a separate ('local') '/usr' directory on every machine besides '/usr', which might be just mounted read-only from somewhere else. It copies the structure of '/usr'. These days, '/usr/local' is widely regarded as a good place in which to keep self-compiled or third-party programs.The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr. Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr.


    This directory contains programs for administering a system, meant to be run by 'root'. Like '/sbin', it's not part of a user's $PATH. Examples of included binaries here are chroot, useradd, in.tftpd and pppconfig.


    This directory contains 'shareable', architecture-independent files (docs, icons, fonts etc). Note, however, that '/usr/share' is generally not intended to be shared by different operating systems or by different releases of the same operating system. Any program or package which contains or requires data that doesn't need to be modified should store that data in '/usr/share' (or '/usr/local/share', if installed locally). It is recommended that a subdirectory be used in /usr/share for this purpose."


    Manual pages. They are organized into 8 sections, which are explained below.

    man1: User programs

    Manual pages that describe publicly accessible commands are contained in this chapter. Most program documentation that a user will need to use is located here.

    man2: System calls

    This section describes all of the system calls (requests for the kernel to perform operations). 

    man3: Library functions and subroutines

    Section 3 describes program library routines that are not direct calls to kernel services. This and chapter 2 are only really of interest to programmers. 

    man4: Special files

    Section 4 describes the special files, related driver functions, and networking support available in the system. Typically, this includes the device files found in /dev and the kernel interface to networking protocol support.

    man5: File formats

    The formats for many data files are documented in the section 5. This includes various include files, program output files, and system files.

    man6: Games

    This chapter documents games, demos, and generally trivial programs.Different people have various notions about how essential this is. 

    man7: Miscellaneous

    Manual pages that are difficult to classify are designated as being section 7. The troff and other text processing macro packages are found here. 

    man8: System administration

    Programs used by system administrators for system operation and maintenance are documented here. Some of these programs are also occasionally useful for normal users.


    The 'linux' sub-directory holds the Linux kernel sources, header-files and documentation.

  • /usr目录下的常用文件夹 /usr/share目录下的常用文件夹 /etc目录下的常用文件夹











  • Linux的/usr目录结构和/var目录结构

    千次阅读 2016-10-05 12:47:29
    紧接上一篇博客所讲述的Linux系统下的根文件系统,我们今天学习一下该根目录下/usr目录结构和/var目录结构。 1、/usr目录系统: /usr/bin:多数日常应用程序存放在该目录中。如果/usr被放在单独的分区中,Linux的单...





















  • Linux /usr、/usr/share、/etc介绍

    千次阅读 2021-03-08 17:16:23
    /usr/share中放置的是一些共享数据,比如帮助文档什么的。/usr/share/man:联机帮助文件/usr/share/doc:软件杂项的文件说明/usr/share/zoneinfo:与时区有关的时区档案 .../usr目录下的常用文件夹 /us











  • linux中/usr 的由来及/usr目录结构

    千次阅读 2014-03-31 16:28:07
    linux 文件结构中,有一个很神奇的目录 —— /usr。之前一直没有怎么关注过它,反正程序都是安装在里边的,也没有什么值得追根溯源的东西。直到有一天 fedora 要简化整个文件系统体系,看到讨论才想到,usr 到底...
  • linux 文件结构中,有一个很神奇的目录 —— /usr。 讨论中,大部分观点认为: usr 是 unix system resources 的缩写; usr 是 user 的缩写; usr 是 unix software resources 的缩写。 根据常识判断,是 ...
  • linux下面/usr/local和opt目录有何区别

    千次阅读 2018-09-30 11:26:27
    听完马哥的Linux培训关于Linux文件系统及文件类型,有一个疑惑,同样是存放第三方应用程序的安装位置,/opt跟/usr/local 有何区别,为什么存在两个相同功能的地方,让.../usr/local下一般是你安装软件的目录,这个...
  • Aisa目录下有: Aden Choibalsan Irkutsk Kuwait Qyzylorda Tel_Aviv Almaty Chongqing Istanbul Macao Rangoon Thimbu Amman Chungking Jakarta Macau Riyadh Thimphu Anadyr Colombo Jayapura Magadan ...
  • 7--惯例与协定等,例如Linux文件系统、网络协定、ASCII code等等的说明 8--系统管理员可用的管理指令 9--跟kernel有关的文件 man page的几个常见组成部分 NAME--简短的指令、数据名称说明 ...
  • Linux】一步一步学Linux——Linux系统目录详解(09)

    千次阅读 多人点赞 2019-07-08 23:10:18
    /usr目录文件06. /var目录文件07. /proc08. 比较重要的一些目录09. 参考 01. 文件系统介绍 Win和Linux文件系统区别 (了解) 在 windows 平台下,打开“计算机”,我们看到的是一个个的驱动器盘符: [外链图片...
  • linux默认安装目录一般是/usr/local

    千次阅读 2011-04-25 14:28:00
  • 删除/usr/share/vim目录后恢复

    千次阅读 2013-03-20 09:54:27
    蛋疼的将/usr/share/vim/ 目录删除后,vim启动老是一行找不到xxxx的错误,其实不影响编辑文本,关键是失去了对.c/.cpp的语法着色,令人很不愉快 查阅www.vim.org后,发现这是vim的运行库, 幸好官方还有一...
  • 如果要增加字体,在其下建个目录即可。
  • 初学LINUX,记录帮助文档,方便自己,方便他人.---------------------------UBUNTU 16.04----------------------------通过命令行模式玩LINUX时,我们需要在终端中输入各种命令来完成预期的工作,但是系统识别的命令有上...
  • Linux 里有/lib和/usr/lib各个目录含义

    千次阅读 2019-06-01 15:37:20
    以下是linux系统常见的重要目录以及各个目作用: / 根目录。 包含了几乎所的文件目录。相当于中央系统。进入的最简单方法是:cd /。 /boot 引导程序,内核等存放的目录。 这个目录,包括了在引导过程中所必需的文.....
  • Linux 文件与目录管理

    千次阅读 2016-08-24 20:20:44
    概述Linux目录结构为树状结构,最顶级的目录为根目录 /。 其他目录通过挂载可以将它们添加到树中,通过解除挂载可以移除它们。 首先先知道什么是绝对路径与相对路径吧~ 绝对路径: 路径的写法,由根目录 / 写起...
  • Linux 的软件安装目录是也是有讲究的,理解这一点,在对系统管理是有益的/usr:系统级的目录,可以理解为C:/Windows/,/usr/lib理解为C:/Windows/System32。/usr/local:用户级的程序目录,可以理解为C:/Progrem ...
  • linux系统目录结构

    万次阅读 2020-09-08 09:54:03
    linux系统目录结构 /:根目录,所有的目录、文件、设备都在/之下,/就是Linux文件系统的组织者,也是最上级的领导者。 /bin:bin 就是二进制(binary)英文缩写。在一般的系统当中,都可以在这个目录下找到linux常用...
  • 在ubuntu中,应用程序启动的快捷方式通常都保存在 /usr/share/applications 目录
  • Linux 目录结构

    千次阅读 2016-09-12 11:35:24
    简述对于每一个学习 Linux 的人来说,了解 Linux 文件系统的目录结构至关重要。想要熟练使用 Linux,让 Linux 听命于自己,就必须掌握这些目录。简述 目录结构 目录说明目录结构Linux 和 Windows 的最大不同之处在于...
  • 解决: CAN’T EXEC “LOCALE”: NO SUCH FILE OR DIRECTORY AT /USR/SHARE/PERL5/DEBCONF/ENCODING.PM问题:apt-get时出现问题:Can’t exec “locale”: No such file or directory at /usr/share/perl5/Debconf/...
  • 报错内容如下: rpm -ivh MySQL-server-5.6.24-1.el6.x86_64.rpm 准备中... ################################# [100%] file /usr/share/mysql/charsets/README from install of MySQL-serv...
  • mkdir: 无法创建目录"/usr/local/share/man/man1": 文件已存在  这问题可够怪异的。怎么办? sudo mv /usr/local/share/man/man1 /usr/local/share/man/man1.bak  再编译,即可。为什么有这样的怪问题,吾亦...
  • gcc位于/usr/lib/i686-linux-gnu目录

    千次阅读 2013-06-14 09:47:49
    使用gcc -v可以查看gcc的版本 gcc -v Using built-in specs. ...Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.7-1ubuntu2' --with-bugurl=file:///usr/share/doc/gcc
  • Linux标准目录结构

    千次阅读 2017-10-30 22:22:04
    Linux标准目录结构 .../:根目录,一般根目录下只存放目录,不要存放文件,/etc、.../bin:/usr/bin:可执行二进制文件的目录,如常用的命令ls、tar、mv、cat等。   /boot:放置linux系统启动时用到的一些文件。
  • linux下安装MySQL出错file /usr/share/mysql/charsets/latin2.xml from install of MySQL-...... linux64 red hat 6.3企业版 开始错误装了32位mysql最后怎么也装不上64mysql了,折腾了一番最后全部卸载搞定: file ...
  • 这个问题有两个解决办法: 1.这个选项在内核中位置Location: -->General setup -->Initial RAM filesystem and RAM disk (initramfs/initrd) support ...下面是默认的路径时/usr/share/v86d...默认时选择编译



1 2 3 4 5 ... 20
收藏数 180,359
精华内容 72,143


linux 订阅