First look at the example code: #/bin/bash cal date -u echo "Hello, welcome ${LOGNAME}! A full day has begun!" read -p "input your password!" pwd if test $pwd == "123" then echo "Your login sucessfully!" for file in /tmp/* do echo $file done else echo "Deny logon" fi cal print calendar date -u displays or sets the global time (Greenwich Mean Time) ${LOGNAME} Current logged in user The above examples are very simple, you can try to test them. Thank you for your learning and support for 123WORDPRESS.COM. |
>>: Detailed explanation of using Docker to build externally accessible MySQL
Error screenshot Can't find where the excepti...
background Ever wondered how to create a shadow e...
First of all, you can understand the difference b...
This article shares the installation and configur...
The final effect is as follows: The animation is ...
This article example shares the specific code for...
In a cluster with master-slave replication mode, ...
I think the commands I use most often are: Choice...
I have recently been developing a visual operatio...
In Linux system, newly install docker and enter t...
Record the problem points of MySQL production. Bu...
FFMPEG 3.4.1 version parameter details Usage: ffm...
Table of contents Storage Engine Memory Managemen...
What is DNS The full name of DNS is Domain Name S...
Table of contents Overview Promise Race Method Re...