zoukankan      html  css  js  c++  java
  • install

    程序包:GNU coreutils


    语法:

      类似于“cp”,复制文件后默认具有执行权限(755)。

    选项:  包含公共选项

      -d,创建目录。

      -m,指定复制后的权限设定(默认设定755)。

      -o,指定复制后的用户属主。

      -g,指定复制后的用户属组。

      -t,指定目标是个目录文件。

      -T,指定目标是个普通文件。

    例子:

    $ rm -fr dest/
    
    $ install -oview -gview -m700 -d dest/include/
    $ install -oview -gview -m700 -d dest/lib/
    $ install -oview -gview -m700 -d dest/bin/
    
    $ install -oview -gview -m700 -t dest/include *.h
    $ install -oview -gview -m700 -t dest/lib *.so
    
    $ install -oview -gview -m700 -T *.out dest/bin/hello
    
    $ tree -pug dest/
    dest/
    ├── [drwx------ view     view    ]  bin
    │   └── [-rwx------ view     view    ]  hello
    ├── [drwx------ view     view    ]  include
    │   └── [-rwx------ view     view    ]  hello.h
    └── [drwx------ view     view    ]  lib
        └── [-rwx------ view     view    ]  libhello.so
    
    3 directories, 3 files
    一切代码都是为了生活,一切生活都是调剂
  • 相关阅读:
    python中break与continue区别
    jmeter正则表达式
    python的input()函数与getpass标准库
    python实例练习-01登录
    python数据类型-字符串
    jmeter操作mysql
    jmeter文件下载
    字符逆序
    求解立方根
    求最小公倍数
  • 原文地址:https://www.cnblogs.com/argor/p/7910676.html
Copyright © 2011-2022 走看看