1. Simulating the Linux login shell#/bin/bashEcho-n "Login:"Read nameEcho-n "Password:"Read passwdif [$name = "CHT"-a $passwd = "abc"];thenecho "The host and password is right!"else echo "Input is error!"Fi2. Compare two number sizes#/bin/bashecho
The Getpass module of the Python Module FoundationThe Getpass module provides portable password input, including the following two functions:1. Getpass.getpass ()2. Getpass.getuser () Getpass.getpass ([prompt[, Stream]])Prompts the user to enter a
Come to a domain name how to determine its cache or not, the high-level professional crawler can certainly do analysis, if not very rigorous analysis, through the shell script can also be implemented, to see me this layer of pages of small crawl bar,
1. Analog Linnux Login Shell#/bin/bashecho-n "Login:" Read nameecho-n "password:" Read passwdif [$name = "CHT"-a $passwd = "abc"];thenecho "The Hos T and password is right! " else echo "Input is error!" Fi2. Compare two number sizes#/bin/bashecho
When we do web development, we generally use cookies or session to save the user's login status, by checking the cookie or session data to verify that the user has access to certain pages that need to be logged in, this is done through the browser,
Start Now:
In cmd use if/? Open if system help (see for yourself I am not all listed), we will find that if there are 3 basic usage!Perform conditional processing in a batch program.
IF [NOT] ERRORLEVEL number commandIF [NOT] string1==string2
printf "%-5s%-10s%-4s\n" No Name Markprintf "%-5s%-10s%-4.2f\n" 1 Sarath 80.3456%-5s well-known a string substitution with a format of left-aligned and a width of 5 (-left justified)Pgrep-f WeChat to find the PID with WeChatvar= "Hello"echo $var and
#### ##### #1 . Virtual Console ##### #######Ctrl+alt+f (1|7) into the graphCtrl+alt+f (2~6) into the Virtual ConsoleRed hat Enterprise Linux Server 7.0 (Maipo) # # system versionKernel 3.10.0-123.el7.x86_64 on a x86_64 # # kernel version , number
When you debug a program under a Linux terminal, you sometimes need to output a lot of information. If you can control the color and display of the font, you can make the output information sharp contrast, easy to observe the data during
From the "Linnux program design," the second chapter, from one by one to knock out, the conclusion is that a few s did not come out effect
#。 /bin/sh and #. There's a difference,/bin/bash.
The first direct typing is the former, always output some-E,
The basic syntax for BASH• The simplest example--hello world www.111cn.net!
• about input, output, and error output
The bash of variables in the Chinese language (and the similarities and differences between C languages)
The basic Process Control
Intranet machine Power Add account, no echo, set password is difficult to get, the following is to add a root level account and set password commandUseradd-p ' OpenSSL passwd-1-salt ' lsof ' admin '-u 0-o-G root-g root-s/bin/bash-d/usr/bin/lsof lsof
1, backup_run.sh
Copy Code code as follows:
#!/bin/sh
# Backup_run
# script to run the backups
# loads in a setting file for the ' user to ' change
Source=/home/bob/backup.defaults
Check_source ()
{
# Check_source
# Can we load
A lot of people have recently shared a few words about a dog's shield, but there are ways to construct some dynamic functions, such as $_get[' func ' ($_request[' pass '). Same, but this method, although the dog shield may not be visible, but the
SEOVIP is now known as a well-known SEO industry site, the reason is this site "born with Wealth", behind the person standing high and famous--seo Liu Yibin. So this site in a short period of time can be SEO training this word to do Baidu first, but
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.