首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    linux文件树

    以前有意找这方面的资料,今天突然发现在系统中就有 linux系统用man hier solaris用man  filesystem 其结果如下        /      This is the root directory.  This is where the whole tree starts.        /bin   This directory contains executable programs which are needed in sin-               gle user mode and to bring the system up or repair it.        /boot  Contains static files for the  boot  loader.   This  directory  only               holds  the  files which are needed during the boot process.  The map               installer and configuration files should go to /sbin and /etc.        /dev   Special or device files,  which  refer  to  physical  devices.   See               mknod(1).        /dos   If  both MS-DOS and Linux are run on one computer, this is a typical               place to mount a DOS file system.        /etc   Contains configuration files which are local to the  machine.   Some               larger  software  packages, like X11, can have their own subdirecto-               ries below /etc.  Site-wide configuration files may be  placed  here               or in /usr/etc.  Nevertheless, programs should always look for these               files in /etc and you may have links for these files to /usr/etc.        /etc/opt               Host-specific configuration files for add-on applications  installed               in /opt.        /etc/sgml               This  directory  contains  the  configuration files for SGML and XML               (optional).        /etc/skel               When a new user account is created, files from  this  directory  are               usually copied into the user’s home directory.        /etc/X11               Configuration files for the X11 window system (optional).        /home  On  machines  with  home  directories  for  users, these are usually               beneath this directory, directly or  not.   The  structure  of  this               directory depends on local administration decisions.        /lib   This directory should hold those shared libraries th

    02

    使用 shell 脚本自动对比两个安装目录并生成差异补丁包

    公司各个业务线的安装包小则几十兆、大则几百兆,使用自建的升级系统向全国百万级用户下发新版本时,流量耗费相当惊人。有时新版本仅仅改了几个 dll ,总变更量不过几十 K 而已,也要发布一个完整版本。为了降低流量费用,我们推出了补丁升级的方式:产品组将修改的 dll 单独挑选出来,加上一个配置文件压缩成包,上传到自建的升级后台;在客户端,识别到补丁包类型后,手动解压并替换各个 dll 完成安装(之前是直接启动下载好的安装包)。这种方式一经推出,受到了业务线的追捧。然而在使用过程中,也发现一些问题,就是在修改完一个源文件后,受影响的往往不止一个 dll,如果仅把其中一两个 dll 替换了,没替换的 dll 很可能就会和新的 dll 产生接口不兼容,从而引发崩溃。而有的安装包包含了几十个、上百个 dll,如果一一对比,非常费时费力。特别是一些 dll 仅仅是编译时间不一样,通过普通的文件对比工具,根本无法判断这个 dll  的源码有没有改过,这让开发人员非常头大。

    04

    python 比较两个目录 脚本

    """ ################################################################################ Usage: "python diffall.py dir1 dir2". Recursive directory tree comparison: report unique files that exist in only dir1 or dir2, report files of the same name in dir1 and dir2 with differing contents, report instances of same name but different type in dir1 and dir2, and do the same for all subdirectories of the same names in and below dir1 and dir2. A summary of diffs appears at end of output, but search redirected output for "DIFF" and "unique" strings for further details. New: (3E) limit reads to 1M for large files, (3E) catch same name=file/dir, (4E) avoid extra os.listdir() calls in dirdiff.comparedirs() by passing results here along. ################################################################################ """

    03
    领券