Skip to content
SRE运维进阶之路
云原生
Kubernetes
Docker
etcd
基础知识
操作系统
计算机网络
Linux运维
编程语言
Shell
Python
Golang
前端开发
监控工具
Prometheus
Grafana
ELK
Zabbix
自动化工具
Jenkins
Ansible
web中间件
Nginx
Tomcat
数据库
MySQL
Redis
github icon
outlook icon
2.2 牛刀小试
author icon
LinuxStory
calendar icon
2021年5月11日
category icon
Linux
tag icon
Bash
timer icon
小于 1 分钟
#
2.2 牛刀小试
系统管理员通常会写一些脚本来完成自动化工作。试举例说明使用脚本的便利之处。
请尝试写一个脚本。调用脚本,会打印当前系统时间和日期,所有已登录的用户和系统运行时间。并将这些信息保存到一个日志文件中。
上一页
2.1 调用一个脚本