-
Stty and control characters in the bourne shell.
Special functions can be performed with control characters (Ctrl Control series key combinations), such as stopping and starting screen output, deleting the entire command line, or stopping the execution of a command. Of course, these control characters can be redefined with the stty command.
Control the character keyword purpose.
control +c intr aborts the currently running command.
control +d eof deletes the current character, points to the end of the file, or exits the terminal.
control + u kill deletes all characters to the left of the cursor (without the cursor).
control +w werase deletes the last word on the command line.
Control +S Stop to abort the screen output.
Control +Q Start to restore the screen output and undo the control +s operation.
The control +a cursor jumps to the current head of the line (bash).
The control +e cursor jumps to the end of the current line (bash).
control +k to remove all characters (bash) to the right of the cursor (including the cursor).
control +z pauses the current command and prepares to use bg to go to the background to resume execution (bash).
In the STTY command of the Bourne shell, Erase Werase Kill means: delete a character (delete), the last word (ctrl-w) and the current line (ctrl-u), and the most commonly used customizations are as follows:
l stty erase h --erase means to delete a character, h means to hit the backspace key, and the delete key is used by default.
l stty werase ^?wereae means to delete the last word, ?Indicates that the delete key is pressed.
l stty kill [kill, [kill, delete, ctrl-u, ctrl-u by default.]
l stty ek -- revert erase and kill to their default values (delete and ctrl-u).
l stty -echo -- turns off the echo of the command, i.e. any character typed is not displayed on the screen.
-
Obviously, you're not a complete **··
-
read -u3 i means to read a line of data from fd 3 (file descriptor) into the i variable, and you understand the meaning of read -u4 j.
And 3 so, the whole **.
while read -u3 i &&read -u4 j;do
echo $i $j
Done 3 means that the content is constantly read from the afile and bfile into i and j respectively, and then used.
echo prints out. This loop continues until it reaches the end of at least one of the afiles or bfiles.
Let's say the content of your afile is ab
The contents of the cbfile are 12
34 This program will be printed.
a 1b 2c 3
-
Linux everything has existed in the form of files, so learning is very important for Linux file management, Linux has the operation of files to open,,Save, etc.,Corresponding to the requirements of the subject,Modify the stty file,You need to use the vim device,The command is as follows,(Need to switch to the directory where the stty file is located):
vi stty 。to modify the STTY. If you don't know how to use vim, I recommend reading a book called "Linux Should Be Learned", Chapter 4 of which is dedicated to how to use vim. ****:
-
Guess: Could it be that you set some command that causes the ioctl error?
You can take a look at this.
-
Too professional! I don't know much, you can go to the cuug official website, ask the teacher who consulted, and let him give you a ***, their training institution is very good, you can try it.
-
If it's written by hand, can I add some points?
There is an error in the run, you can continue to ask me.
The shell script gets its own pid which is the $$ variable. >>>More
The tragedy of the commons means that people overuse public resources, which leads to the depletion of resources. >>>More
Examples of white lies are as follows:
White Lie Example One: >>>More
Go to the Internet to check, if you can't find it, make it up yourself!