my friend asked me this evening to talk about his OA system (Asp. net) updated today. Registering the algorithm seems to have changed. It seems that the encryption shell has changed. Ask him to help him. it is a DLL Program and it is net2.0. It
1. login and logout
Tty1 ~ is enabled by default in Linux ~ Seven tty7 terminal interfaces, 1-6 text terminals and 7 graphics Terminals
Use CTRL + ALT + F1 to switch
Remote login: Method 1: SSH-l account host name or IP address
Method 2: SSH
PS1: the user's usual prompt.PS2: the first line is not complete. Wait for the prompt entered in the second line. Public setting location:/etc/profile Echo $ PS1 can see the current prompt settingsFor example, Green is displayed and time and shell
To call a function in a shell file compiled by yourself, use the following method:
For example, you have compiled a test. Sh file as follows,
#============ Test. sh:
#! /Bin/shEcho_line (){Echo dateEcho "Wellcome to shell func! "}Echo_line
Exec also allows the script to be executed in the same process, but the original process is ended.
Script content:
Root @ James-desktop:/opt/Qt-everywhere/Marvell/APP/applications/factory-Roast # Cat 1.sh#! /Bin/shA = BEcho "PID for 1.sh:
Shell string truncation problem:1. Linux Shell intercepts the first eight characters of the character variable by using the following methods:1. expr substr "$ A" 1 82. Echo $ A | awk '{print substr (, 1, 8 )}'3. Echo $ A | cut-c1-84. Echo $5. expr $
Browse the structure of this website and find the http://www.fzz8.cn/index.asp? Id = 14 such an interface, add a single quotation mark http://www.fzz8.cn/index.asp behind? Id = 14' after you press enter (figure 1)
The SQL injection
ProgramIt is written by humans, and errors are inevitable. If you want to know what your program is doing, there is a good way to enable the trace execution function. This causes the shell to display each executed command and add "+" to the front. A
-RW-r -- access rights to the file. The first character indicated the type of file.
A leading dash means a regular file, while a 'D' indicates a directory.
The next three characters are the access rights for the file's owner,
The next three
This article mainly summarizes some of the basic knowledge worth noting in shell programming.
1 .#! /Bin/Bash must be placed in the first line of the file
2. num = 2. When values are assigned, spaces are not allowed on both sides.
3. Echo "this
Original article address:
Http://dev.firnow.com/course/6_system/linux/Linuxjs/20071027/80454.html
Both exec and source are Bash Internal commands (builtins commands). Enter man exec or man source in Bash to view all internal command
Ii. Document assistance(File Associations)
File AssociationsYou can specifyShellThe methods used to display and process objects of a specific file type include the following:
◇ Which application is used to double-click a file?ProgramIt
1. I want to know which shells have been installed on my machine?
You can view the following two methods:
First:
[Rocrocket @ wupengchong ~] $ CHSH-l
/Bin/sh
/Bin/bash
/Sbin/nologin
/Bin/zsh
Second:
[Rocrocket @ wupengchong ~] $ CAT/etc/shells
/Bin/
1 -- shell Method for reading files
# Use the READ command to read a row of data while read mylinedoecho "line:" $ mylinedone
# Use the READ command to read a row of Data cat datafile.txt | while read mylinedo echo "line:" $ mylinedone
# Read
Package com. Things. Boring. runtime;
Import java. Io. bufferedreader;Import java. Io. ioexception;Import java. Io. inputstream;Import java. Io. inputstreamreader;
Public class runtimetest {
/*** Run a command in the command line just like
Use the nohup command to make Linux programs always run in the background (from: http://www.einit.com/user1/11/archives/2006/3603.html)
In Unix/Linux, you generally want to run a program in the background. Many of
Shell Structures are divided into three categories: sequential structure, branch structure, and cyclic structure.
1. If statement
Syntax format:
IfThenFi
If the return value of the last command in statement sequence a is 0, execute the command
[This is Android embedded learning series I]
Although I have been using Linux for more than a year, I do not know many principles. Now, let's take notes on learning Android embedded courses with sundy.
Shell is actually an interface for user
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.