首页 > 系统相关 >Windows和Linux中的库、对象、可执行文件后缀名

Windows和Linux中的库、对象、可执行文件后缀名

时间:2023-09-22 13:12:49浏览次数:43  
标签:可执行文件 Files obj Windows Object 后缀名 Linux

中国软件工程师面试常问的问题
Just a "Scientific"(Interview) Explanation for Interview Problems for Software Engineers (most Chinese Interviews)

Windows和Linux中的库、对象、可执行文件后缀名

library, object, executable files suffix name in Windows and Linux

Linux通常依靠文件权限和shebang行(例如“#!/bin/bash”)来识别可执行文件,而Windows主要使用文件扩展名。
Linux often relies on file permissions and shebang lines (e.g., #!/bin/bash) to identify executable files, whereas Windows primarily uses file extensions.


Libraries:

  1. Windows:

    • 动态链接库 (DLLs): .dll
    • 静态库: .lib
    • Dynamic Link Libraries (DLLs): .dll
    • Static Libraries: .lib
  2. Linux:

    • 动态共享库(共享对象):.so
    • 静态库:.a
    • Dynamic Shared Libraries (Shared Objects): .so
    • Static Libraries: .a

对象文件:
Object Files:

  1. Windows:

    • 对象文件:.obj
    • 库对象文件:.lib.obj
    • Object Files: .obj
    • Library Object Files: .lib, .obj
  2. Linux:

    • 对象文件:.obj
    • Object Files: .o

可执行文件:
Executable Files:

  1. Windows:

    • 可执行文件:.exe
    • 命令脚本:.bat.cmd
    • Executable Files: .exe
    • Command Scripts: .bat, .cmd
  2. Linux:

    • 可执行文件:(不需要特定的扩展名,但通常不需要扩展名或.out
    • Shell脚本:.sh
    • Executable Files: (No specific extension required, but commonly no extension or .out)
    • Shell Scripts: .sh

对象文件是在计算机程序编译过程中生成的中间文件。它包含机器代码、汇编代码,或者有时两者的组合,以及链接和程序执行所需的其他信息。对象文件是程序员编写的高级源代码和最终可执行程序之间的桥梁。
An object file is an intermediate file generated during the compilation of a computer program. It contains machine code, assembly code, or sometimes a combination of both, along with other information needed for linking and program execution. Object files serve as a bridge between the high-level source code written by programmers and the final executable program.

标签:可执行文件,Files,obj,Windows,Object,后缀名,Linux
From: https://www.cnblogs.com/qianxinn/p/17722065.html

相关文章

  • (MongoDB)windows 下使用 MongoDB
    1.安装MongoDBServer 访问 https://www.mongodb.com/try/download/community,找到“MongoDBCommunityServerDownload”并下载  2.安装MongoDB  安装MongoDBServer,并安装随带的MongoDBCompass 安装完成后,MongoDBServer将即时启动(需要重启), 查看......
  • linux查看用户的所有组,和组下面有多少用户
    1.查看用户的所有组idgroups[root@ceph1~]#idtest01uid=1000(test01)gid=1001(test01)groups=1001(test01),1000(test)[root@ceph1~]#idtest02uid=1001(test02)gid=1002(test02)groups=1002(test02),1000(test)[root@ceph1~]#idtest03uid=1002(test03)gid......
  • Linux_JXNUFourWeek_Linux过滤器
    frompixivgrep行过滤grep匹配内容源输入grepandAndfile.txt//这条命令将会匹配Andfile.txt中文本的全部包含and的行grep-iandAndfile.txt//-i会忽略大小写grep-nandAndfile.txt//-n会显示出匹配出来的行的行号grep-vandAndfile.txt//-v是反向,即这里表......
  • Jenkins问题记录:Windows Server Jenkins修改配置后重启系统,Jenkins被初始化,启动后需要
    现象:WindowsServerJenkins修改配置后重启系统,Jenkins被初始化,启动后需要重新安装插件,配置管理员密码,项目列表丢失原因:修改"C:\ProgramFiles\Jenkins\jenkins.xml"配置,可能是配置异常,系统重启后,Jenkins自动重置了解决:重新安装Jenkins,配置文件就重新初始化,再启动不需要再安......
  • windows中实现本地scp命令向服务器远程免密传输文件
     先安装git,官网:https://git-scm.com/  001、打开git,生成本地密钥文件ssh-keygen##然后全部回车  002、查看密钥文件 ......
  • Linux系统添加历史命令操作记录(系统设置)
    Linux系统添加历史命令操作记录原创 浩道 浩道Linux 2023-09-2207:50 发表于广东收录于合集#linux学习320个关注上方浩道Linux,回复资料,即可获取海量Linux、Python、网络通信、网络安全等学习资料!前言大家好,这里是浩道Linux,主要给大家分享Linux、Python、网络通信、......
  • Windows关闭默认共享
    Windows启动时都会默认打开admin$ipc$和每个盘符的共享,对于不必要的默认共享,一般都会把它取消掉,可当又需要打开此默认共享时,又该从哪里设置呢。经过自己的验证,汇总出一下方法。一:查看window共享资源运行–>cmd–>输入netshare 二:彻底关闭WINDOWS默认共享1、如果你不在......
  • linux 中 find命令 -maxdepth 和 -mindepth 选项
     001、[root@pc1dir001]#lstest01test02ww.txtxx.map[root@pc1dir001]#tree.├──test01│  ├──cc.csv│  └──kk.txt├──test02│  ├──dirxx│  │  └──diryy│  │  ├──rr.ped│  │  └......
  • 3-Linux文档查看指令,关机重启、相关知识点的拓展与总结
    一、文档的查看指令1、tail指令作用:查看一个文件的末n行语法:#tail-n文件的路径说明:-n可以不写,不写,默认表示10行。案例:新建一个1.txt文档,使用tail指令查看root/1.txt文件的末5行和末10行tail-5/root/1.txttail/root/1.txt2、head指令作用:查看文件的头n行语法:#hea......
  • linux 中同时限定多个目录进行查找
     001、不限制[root@pc1dir001]#ls##测试目录文件test01test02test03[root@pc1dir001]#tree.├──test01│  ├──cc.csv│  └──kk.txt├──test02│  ├──mm.txt│  └──yy.csv└──test03├──ee.txt└......