echoscript.sh
来自「Solaris环境下Shell编程编程」· Shell 代码 · 共 23 行
SH
23 行
#!/bin/sh# This script will print useful information about the current machine.# It will print the machine name, model type, specific processor # information, and lastly the current number of processes running.echoecho "The name of the machine is \c"uname -n # uname -n gives the hostnameechoecho "The machine platform type is \c"uname -i # uname -i gives the hardware platformechoecho "Specific processor information for this machine is:"psrinfo -vechoecho "Currently the total number of processes "echo " running on this machine is \c"ps -ef | tail +2 | wc -l # wc -l gives number of lines
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?