1. General methods
Regedit/E c: \ 3389.reg "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ winstations \ RDP-TCP"
Type C: \ 3389.reg | find "portnumber"
Del c: \ 3389.reg
2. XP and 2003Reg query
ShellA process is a process that executes other processes, but when executing a command,ShellThe process instructs the kernelProgramRun the command separately as another process and write the output to the terminal.
Through Command Options, we
Preface: Do not ask why you need to configure the network in Shell (command line) when the desktop system is popular. If you have any questions, please stop reading this article.
$ Iwlist wlan0 scan # list valid Wireless Networks$
The general statement is:
For f in 'ls ./'
However, if the file name contains spaces, for example, "a B", although ls can be correctly listed, for will use spaces as separators to assign A and B to F respectively, resulting in two file names.
Sometimes, you can extract only a part of a text segment by using shell's greedy match. % is a match from the right to the left, and # Is a match from the left to the right, as shown in the following example:
[Root @ WWW ~] #Qq = www.qq.com
Get the current period: 'date + % Y % m % d', 'date + % F', or $ (date + % Y % m % d)Get the period of yesterday: 'date-d Yesterday + % Y % m % d'Get date of the day before yesterday: 'date-D-2day + % Y % m % d'And so on, for example, get the date 10
In Linux applications, there are many ways to call my shell (which is too powerful): fork (), exec * (), pipe, system () in this example, the system ()
It is very convenient to call. It is explained now.
# Include
# Include
Int main ()
{
Variable configuration rules
The variable and the variable content are linked with an equal sign "=", as shown below:"Myname = vbird 』
The equal sign cannot be directly followed by a space character, as shown below:"Myname = vbird" or "myname
This book has been read and written before. It is good to read again to deepen your memory.
Chapter 4 file security and permissions
1. directory permission bit
The directory permission bit is different from the file. The read permission bit of the
An operating system can be divided into two parts: kernel and shell ).A shell program encapsulates the kernel that communicates directly with the hardware: hardware kernel shell Application
In some operating systems, the kernel and shell are
Alas, I didn't learn shell, and my colleagues encountered a problem. I asked my classmates if it was necessary to learn it. It wasn't complicated, but the syntax was too strange and I really didn't understand it.
I wrote a simple script.
#!
When writing a program, you sometimes need to call the shell script in a Java program. You can use the exec method of runtime to call the shell program and run the script.
Each Java application hasRuntimeClass instance, so that the application can
Source program from http://www.unixreview.com/documents/urm0108e/
The statement in the original program that filters out its own process has a bug. If you put killprog in the path of a $ PATH variable and then start killprog from other paths, $0
1. Delete 0-byte filesFind-type F-size 0-exec Rm-RF {}\;
2. View ProcessesSort by memory from large to smallPS-e-o "% C: % P: % Z: % A" | sort-K5-NR
3. sort by CPU utilization from large to smallPS-e-o "% C: % P: % Z: % A" | sort-NR
4. Print the URL
########################
Summary of several special shell variables:
########################
######################################## ####################
#
# Http://hi.baidu.com/xece/modify/blog/75327e382149dae23b87ce5a
##########################
I have been busy recently, and occasionally spend some time reading books to supplement my energy. Recently I am studying programming languages-I am very touched by the road to practice. What I 've learned by mistake is a more system, the complete
It is a good thing. In many places of life, people like to use abbreviations, which saves time and effort. Bash also has its own abbreviation, alias,Alias always has a lot to do. Why not? As mentioned above, we often talk about a large number of
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service