zoukankan      html  css  js  c++  java
  • RH033读书笔记(6)-Lab 7 Standard I/O and Pipes

    Lab 7 Standard I/O and Pipes

    1. [student@stationX ~]$ cat /proc/cpuinfo /proc/meminfo

    2. [student@stationX ~]$ cat /proc/cpuinfo /proc/meminfo | less

    3. [student@stationX ~]$ cat /proc/cpuinfo /proc/meminfo | mail -s "System Stats for $(hostname)" root@localhost

    4. Check the email account root@localhost
    • Log in as root
    • Run the command mutt.
    • press y.
    • Select the message you want to view with the up and down arrows and press Enter to
    view it.
    • Note that while viewing a message, the up and down arrows move between messages,
    not lines. To scroll within the current message, use Enter and Backspace
    • Press q to exit message view

    5. [student@stationX ~]$ date > cpumem.info
    [student@stationX ~]$ cat /proc/cpuinfo /proc/meminfo > cpumem.info

    6. [student@stationX ~]$ date > cpumem.info
    [student@stationX ~]$ cat /proc/cpuinfo /proc/meminfo >> cpumem.info

    7. [student@stationX ~]$ cat cpumem.info | mail -s "System Info for $(hostname) - 2" root@localhost

    8. [student@stationX ~]$ (date ; cat /proc/cpuinfo /proc/meminfo) | tee cpumem.info | mail -s "System Stats for `hostname`" root

    9. [student@stationX ~]$ date ; cat /proc/cpuinfo /proc/meminfo | tee cpumem.info | mail -s "System Stats for `hostname`" root
    date would print to the screen and only cat's output would be piped to tee.

  • 相关阅读:
    经典SQL例题
    truncate,delete,drop的异同点
    scp 在不同主机之间数据传输
    自定义标签库
    servlet 学习
    HTTP协议 学习
    Tomcat服务器的数字证书 HTTPS 连接!
    JSP开发 路径问题汇总
    java 文件上传 下载 总结
    myeclipse 出现换行符和空格符 解决方案 换行出现乱码
  • 原文地址:https://www.cnblogs.com/thlzhf/p/3440660.html
Copyright © 2011-2022 走看看