shell 命令输出

process.sh

#!/usr/bin/env bash
echo "Hello $USER"
echo "Hey i am $USER and will be telling you about the current processes"
echo "Running processes List"
ps

执行:

$ bash process.sh 
Hello root
Hey i am root and will be telling you about the current processes
Running processes List
   PID TTY          TIME CMD
  6898 pts/0    00:00:00 bash
 29530 pts/0    00:00:00 bash
 29531 pts/0    00:00:00 ps
Copyright © ghostwritten 浙ICP备2020032454号 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-06-22 08:08:13

results matching ""

    No results matching ""