mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
14 lines
200 B
Bash
14 lines
200 B
Bash
#!/usr/bin/env bash
|
|
|
|
#This script displays the date and who's logged on
|
|
|
|
#如果想在同一行显示
|
|
#echo -n -e 'The time is:\n\n'
|
|
echo The time is:
|
|
date
|
|
echo The one who has been logged is:
|
|
who
|
|
|
|
|
|
|