Fork me on GitHub
  1. Linux学习笔记——有效群组(effective group)与初始群组(initial group)

    Wed 18 December 2013   Write By xymelon

    有效群组(effective group)与初始群组(initial group)



    Tagged as : Linux
  2. Linux学习笔记——'Pattern Space' and 'Hold Space' in sed

    Mon 02 December 2013   Write By xymelon


    When sed reads a file line by line, the line that has been currently read is inserted into the pattern buffer (pattern space). Pattern buffer is like the temporary buffer, the scratchpad where the current information is stored. When you tell sed to print, it prints the pattern buffer.

    Hold buffer / hold space is like a long-term storage, such that you can catch something, store it and reuse it later when sed is processing another line. You do not directly process the hold space, instead, you need to copy it or append to the pattern space if you want to do something with it. For example, the print command p prints the pattern space only. Likewise, s operates on the pattern space.

    Tagged as : Linux
  3. Linux学习笔记——权限管理(2)

    Sat 23 November 2013   Write By xymelon


    SUID:当s这个标志出现在文件拥有者权限的x权限上时,如【-rwsr-xr-x】,此时被称为Set UID,简称为SUID的特殊权限,且只对文件有效。

    1. SUID权限仅对二进制程序(binary program)有效;
    2. 执行者对于该程序需要具有x的可执行权限;
    3. 本权限尽在执行该程序的过程中有效(run-time);
    4. 执行者将具有该拥有者(owner)的权限。
    Tagged as : Linux

Page 1 / 1