Home  >  Q&A  >  body text

java - bin目录有什么特殊含义吗?为什么可执行文件都放在bin目录?

只因为bin是binary的缩写?,可是所有的文件在电脑都是二进制的呀

大家讲道理大家讲道理2743 days ago1097

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-04-18 10:54:37

    The bin directory itself has no special meaning, but due to some conventions, we generally put executable files in the bin directory.
    For example, /usr/bin, /usr /local/bin, /sbin. /usr/bin, /usr/local/bin, /sbin.
    再者, 除了 bin 目录用于存放可执行文件外, 我们还使用 lib 用于存放库文件, includeFurthermore, in addition to the bin directory for storing executable files, we also use lib is used to store library files, and include is used to store header files. These are just some conventions. In order to facilitate management, it does not mean that you must do this.
    In fact, if you want, you You can put your executable file anywhere.

    Also, for computers, files are just a series of binary streams, but for humans, this is not the case. For example, although a file in text format is still a binary stream for computers, it can be processed by humans. Certain means present content that is directly readable by humans. Therefore, from this perspective, there are differences between various file formats.文本文件二进制文件

    reply
    0
  • 迷茫

    迷茫2017-04-18 10:54:37

    Object to the answer above > Yongshun>.
    Bin is the abbreviation of binary, and binary means binary. It does not mean that he does not have a special meaning.
    This is considered from the user's perspective, not from the CPU's perspective.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:54:37

    bin is the abbreviation of binary. Java conventions. Don't worry about this.

    reply
    0
  • Cancelreply