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
Table of contents 2. Field concatenation 2. Give ...
This axios package is used in the vue3 demo. For ...
BMP is an image file format that is independent o...
Display Definition ID When the auto-increment ID ...
<br />For some time, I found that many peopl...
It has been a long time since the last update of ...
Table of contents 1. Brief Overview 2. Detailed e...
A considerable number of websites use digital pagi...
1. Uninstalling MySQL 5.7 1.1查看yum是否安裝過mysql cd y...
Without further ado, let’s get started with resou...
1. Virtual environment virtualenv installation 1....
I encountered a case at work that I had never wri...
One of the most important features of a style she...
I haven’t blogged for half a year, which I feel a ...
Dependence on knowledge Go cross-compilation basi...