echoscript.ksh
来自「Solaris环境下Shell编程编程」· KSH 代码 · 共 23 行
KSH
23 行
#!/bin/ksh -x# 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.printprint -n "The name of the machine is "uname -n # uname -n gives the hostnameprintprint -n "The machine platform type is "uname -i # uname -i gives the hardware platformprintprint "Specific processor information for this machine is:"/usr/sbin/psrinfo -vprintprint "Currently the total number of processes "print -n " running on this machine is "ps -ef | tail +2 | wc -l # wc -l gives number of lines
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?