美文网首页
Linux 常用命令

Linux 常用命令

作者: 蜗牛Michael | 来源:发表于2019-12-03 16:59 被阅读0次

    查看文件准确的字节数

    wc type.txt

    命令参数:
    -c 统计字节数。
    -l 统计行数。
    -m 统计字符数。这个标志不能与 -c 标志一起使用。
    -w 统计字数。一个字被定义为由空白、跳格或换行字符分隔的字符串。
    -L 打印最长行的长度。
    -help 显示帮助信息
    --version 显示版本信息

    说明:
    57 243 9599 type.txt
    行数 单词数 字节数 文件名

    将RFC文本的行与下一行连接起来

    RFC txt文档默认换行方式是这样的,现在要将其下一行与上一行末尾连起来。

    🦋 michael ☯︎ : ~$ cat rfc.txt
    The pseudo-random number generation algorithm MUST be chosen so that
       different hosts do not generate the same sequence of numbers.  If the
       host has access to persistent information that is different for each
       host, such as its IEEE 802 MAC address, then the pseudo-random number
       generator SHOULD be seeded using a value derived from this
       information.  This means that even without using any other persistent
       storage, a host will usually select the same IPv4 Link-Local address
       each time it is booted, which can be convenient for debugging and
       other operational reasons.  Seeding the pseudo-random number
       generator using the real-time clock or any other information which is
       (or may be) identical in every host is NOT suitable for this purpose,
       because a group of hosts that are all powered on at the same time
       might then all generate the same sequence, resulting in a never-
       ending series of conflicts as the hosts move in lock-step through
       exactly the same pseudo-random sequence, conflicting on every address
       they probe.
    
    🦋 michael ☯︎ : ~$ cat rfc.txt | xargs echo
    The pseudo-random number generation algorithm MUST be chosen so that different hosts do not generate the same sequence of numbers. If the host has access to persistent information that is different for each host, such as its IEEE 802 MAC address, then the pseudo-random number generator SHOULD be seeded using a value derived from this information. This means that even without using any other persistent storage, a host will usually select the same IPv4 Link-Local address each time it is booted, which can be convenient for debugging and other operational reasons. Seeding the pseudo-random number generator using the real-time clock or any other information which is (or may be) identical in every host is NOT suitable for this purpose, because a group of hosts that are all powered on at the same time might then all generate the same sequence, resulting in a never- ending series of conflicts as the hosts move in lock-step through exactly the same pseudo-random sequence, conflicting on every address they probe.
    
    

    相关文章

      网友评论

          本文标题:Linux 常用命令

          本文链接:https://www.haomeiwen.com/subject/vsxhgctx.html