当前位置:网站首页>shell 命令输出

shell 命令输出

2022-06-09 01:18:00 ghostwritten

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
原网站

版权声明
本文为[ghostwritten]所创,转载请带上原文链接,感谢
https://ghostwritten.blog.csdn.net/article/details/125162248