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
1. Two properties of table reset: ①border-collaps...
Note: You cannot use scoped animations! ! ! ! via...
Starting and shutting down Tomcat under Linux In ...
1. Docker pull pulls the image When using $ docke...
1. Warm and gentle Related address: http://www.web...
This article shares the specific code of react to...
CSS Sprite, also known as CSS Sprite, is an image...
After reinstalling my computer recently, I downlo...
HTML is made up of tags and attributes, which are...
Overview I have been using Docker for more than a...
es installation docker pull elasticsearch:7.4.0 #...
Table of contents introduce start Install ① Direc...
Since we are going to upload pictures, the first ...
Table of contents 1. Nginx implements load balanc...
This article shares the specific code for WeChat ...