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
When I was at work today, the business side asked...
1. Create and run a container docker run -it --rm...
yum command Yum (full name Yellow dog Updater, Mo...
1. Configure local yum source 1. Mount the ISO im...
When writing a Dockerfile, include an entrypoint ...
What is the Vendor Prefix? Vendor prefix—Browser ...
This article shares the specific code of vue+elem...
Deploy nginx with docker, it's so simple Just...
The main contents of this article are as follows:...
Sometimes you will see English commas ",&quo...
Everyone may be familiar with the select drop-dow...
Table of contents 1. Discover the problem 2. Dele...
1. Multiple calls to single arrow Once a single a...
To install a virtual machine on a Windows system,...
Docker container connection 1. Network port mappi...