Ntsd.exe is used to end the process, beginning from 2000, the system comes with user mode debugging tools. By the debugger attached (attach) the process will exit together with the debugger, it can be used to terminate the process at the command line. Use ntsd automatic permission to access the debug, which can kill most of the process (in theory only System, SMSS.EXE and CSRSS.EXE three process can not be the end of the first two are pure kernel mode, and the last that is the Win32 sub- system, ntsd itself needs it).
Ntsd.exe usage:
ntsd-c q-p PID
Or
ntsd-c q pn ImageName
- C is that implementation of the debug command, q that after the implementation of exit (quit),-p that is followed is the process you want to end the corresponding PID,-pn that is followed is that you want to end the process name (process_name. exe For example: QQ.exe, explorer.exe, etc. It is noteworthy that the suffix name. exe can not be omitted, otherwise the system will tell you "do not support this interface")
View pid and process name, we can see in Task Manager, in exceptional circumstances, you can use the tasklist command.
For instance, we want to end a process pid to 3212 maxthon.exe
Then we can at the command prompt, type:
ntsd-c q-p 3212
Or
ntsd-c q-pn maxthon.exe
To enable a better understanding of the various systems of common commands, I order personal computer systems over the years a number of commonly used small collection to share, we want some help! If the Hello command skills can also be with me, and shared with Oh.
2010年8月8日星期日
Summary tab key skills
For tab masters, strongly recommend to see "quick rename" and "at the command prompt," these two! These two parts in the published version of the invisible!
Tab key on the keyboard in case key (Caps Lock) of the above, it is more of a familiar, does not know a hidden world of magic button.
Tab key is short for tabulator key, which means "for the table were, tab machines (typewriter used for the tab) Tab key." It is the most basic usage is the form used to draw no borders. Following figure, the interval between words are pressing the Tab key once to achieve. It generally is equal to eight spaces in length, when it's in front of a word when the word length together and just be divisible by 8, as shown in the last line.
Why not call for the tab key Tab key then? Because the Tab key to not only be used to watch, and it has many practical uses, far beyond the scope of watchmaking.
Basic Usage
1, changing the focus
Focus to the next button, input box or links. For example, the closure of a notebook is not saved, a prompt will pop up (below), this time, "Yes" button has a dotted line, if you press space or carriage return is equivalent to use the mouse to click the "Yes" button. Want to use the keyboard to "click" "No" button, press the Tab key, the dotted line will be transferred to the "No" on, then press space on it.
There is also a very common usage, QQ in forums or when the log, enter the complete account number, do not need to re-use mouse to click the password box, simply press the Tab key you can locate the cursor to the password box. If you want to turn location, the press the key combination Shift + Tab.
2, rapid re-named
In Vista or Windows Server 2008 under, Tab key and a wonderful use: select an icon on the desktop, press F2 to enter rename state, renamed after, and then press the Tab key will enter the next file to rename state. Would like to turn to rename a file, you can press the key combination Shift + Tab. Rename multiple files at a time when very convenient. (Thanks to dofy test.)
3, switching window
Veterans who often use Alt + Tab key combination to quickly switch between windows. The first press the key combination Alt key and press the Tab key, you can quickly switch to the previous window. Hold down the Alt keys in the case, press the Tab key will appear once the current open windows icon, then press the Tab key you can switch between each icon. Alt + Shift + Tab key combination is the reverse switch. Release the Alt key will switch the window. In Vista, press this key combination still appears thumbnail window.
4, tab, or label switching
Ctrl + Tab: Switch to next tab or browser tabs.
Ctrl + Shift + Tab: reverse switch.
Firefox users can install this extension, Ctrl-Tab to achieve with a preview of the label switching. By the way, press Ctrl + Shift + A key combination can preview all the labels, you can immediately enter in the search box to filter the tag. Extension installation address is: http://en.design-noir.de/mozilla/ctrl-tab/
Advanced Usage
1, at the command prompt
At the command prompt, Tab key is very useful, it can automatically populate the names of files and folders (if a bit strange call is automatically populated). Some readers may already know, but there is another part of this little-known techniques a secret. First look at a presentation picture, may be a bit dizzy, sparking the cursor disappear when the time is pressing the tab of the moment:
The following example is explained in detail below:
Suppose "D: \ cfan" path, there are folders: a, ab, a file: abc.txt, ac.txt. Click "Start → Run," enter "cmd", press Enter to open a command prompt. Input "D:", carriage return after the switch to the D drive, enter "cd cfan" command into the "D: \ cfan" this folder. In the "D: \ cfan>" behind the importation of "dir" (Note that there is a space behind dir):
① Automatically populate a folder or file name: Press the Tab key can be directly filled circle the names of folders and files, use Shift + Tab can fill a.
② automatically populate a specific letter at the beginning of the folder or file name: enter "a", then press the Tab key, you can turn a folder filled with "a" and documents "abc.txt". Enter the name of a very long time a folder or file is useful.
③ automatically populate a specific file extension name: Enter "*. txt", then press the Tab key, you can turn populate file "abc.txt", "ac.txt". At the command prompt, the asterisk on behalf of any character.
④ automatically populate the second letter to a specific folder and file name: enter "? B *", then press the Tab key, you can turn a folder filled with "ab" and documents "abc.txt". Question mark represents a character in here.
⑤ automatically populate the file name specified length of file name: Enter "???. txt ", then press the Tab key, you can turn populate file" abc.txt "and" ac.txt ".
2, the input methods
Google Pinyin input method in the middle, Tab key is the back flip. Shift + Tab is a forward flip. Sogou Pinyin input method in the middle, press the Tab key to enter the stroke screening model. Use is to enter a word or multiple word spelling, press the tab key, then h (cross), s (vertical), p (write), n (strokes), z (discount) enter the first word in turn The order of strokes, has been to find the word so far. In this mode, the Separation of Chinese secondary code can also be used, for example, to enter a Chinese character "han" is on the list but could not find, then input "xian", then press the Tab key, then enter the "han" two parts " Female "," leisure "and the initials" nx ", you can see only a" han "word has.
3, where in Photoshop
After pressing the Tab key will hide the toolbar and the panel, only the menu bar. This shortcut key combination of regular full-screen shortcut "f" to use.
4, under the EmEditor and EditPlus
In EmEditor and EidtPlus when writing code under the program, select multiple lines, press the Tab key to quickly select multiple rows for the indentation. Shift + Tab key combination is the reverse indentation.
5, in the browser
Some time back to support the Forum with the key combination "Ctrl + Enter" to quickly submit, but this combination of keys does not necessarily support each browser. I used to use the Tab + Enter key combination to quickly submit, with the Tab key to move the focus to "submit" button (a small number of cases need to press the Tab key several times), press the Enter key. "Ctrl + Enter" key combination you need to call Javascript script to achieve, even if the page with the author this method does not use scripts can be quickly submitted.
6, replacement Tab key
Opening when the Tab key that can generate a tab, if want to replace tabs, how do? Very simple, in Word, press the key combination Ctrl + H, in the "Find what" type "^ t", "replaced by" do not fill in, click Replace All to quickly remove tabs. In EmEditor, the same press the key combination Ctrl + H, in the "Find", type "\ t", "replaced by" do not fill in, and check "Use the escape sequence", click "Replace All" button.
Tab key on the keyboard in case key (Caps Lock) of the above, it is more of a familiar, does not know a hidden world of magic button.
Tab key is short for tabulator key, which means "for the table were, tab machines (typewriter used for the tab) Tab key." It is the most basic usage is the form used to draw no borders. Following figure, the interval between words are pressing the Tab key once to achieve. It generally is equal to eight spaces in length, when it's in front of a word when the word length together and just be divisible by 8, as shown in the last line.
Why not call for the tab key Tab key then? Because the Tab key to not only be used to watch, and it has many practical uses, far beyond the scope of watchmaking.
Basic Usage
1, changing the focus
Focus to the next button, input box or links. For example, the closure of a notebook is not saved, a prompt will pop up (below), this time, "Yes" button has a dotted line, if you press space or carriage return is equivalent to use the mouse to click the "Yes" button. Want to use the keyboard to "click" "No" button, press the Tab key, the dotted line will be transferred to the "No" on, then press space on it.
There is also a very common usage, QQ in forums or when the log, enter the complete account number, do not need to re-use mouse to click the password box, simply press the Tab key you can locate the cursor to the password box. If you want to turn location, the press the key combination Shift + Tab.
2, rapid re-named
In Vista or Windows Server 2008 under, Tab key and a wonderful use: select an icon on the desktop, press F2 to enter rename state, renamed after, and then press the Tab key will enter the next file to rename state. Would like to turn to rename a file, you can press the key combination Shift + Tab. Rename multiple files at a time when very convenient. (Thanks to dofy test.)
3, switching window
Veterans who often use Alt + Tab key combination to quickly switch between windows. The first press the key combination Alt key and press the Tab key, you can quickly switch to the previous window. Hold down the Alt keys in the case, press the Tab key will appear once the current open windows icon, then press the Tab key you can switch between each icon. Alt + Shift + Tab key combination is the reverse switch. Release the Alt key will switch the window. In Vista, press this key combination still appears thumbnail window.
4, tab, or label switching
Ctrl + Tab: Switch to next tab or browser tabs.
Ctrl + Shift + Tab: reverse switch.
Firefox users can install this extension, Ctrl-Tab to achieve with a preview of the label switching. By the way, press Ctrl + Shift + A key combination can preview all the labels, you can immediately enter in the search box to filter the tag. Extension installation address is: http://en.design-noir.de/mozilla/ctrl-tab/
Advanced Usage
1, at the command prompt
At the command prompt, Tab key is very useful, it can automatically populate the names of files and folders (if a bit strange call is automatically populated). Some readers may already know, but there is another part of this little-known techniques a secret. First look at a presentation picture, may be a bit dizzy, sparking the cursor disappear when the time is pressing the tab of the moment:
The following example is explained in detail below:
Suppose "D: \ cfan" path, there are folders: a, ab, a file: abc.txt, ac.txt. Click "Start → Run," enter "cmd", press Enter to open a command prompt. Input "D:", carriage return after the switch to the D drive, enter "cd cfan" command into the "D: \ cfan" this folder. In the "D: \ cfan>" behind the importation of "dir" (Note that there is a space behind dir):
① Automatically populate a folder or file name: Press the Tab key can be directly filled circle the names of folders and files, use Shift + Tab can fill a.
② automatically populate a specific letter at the beginning of the folder or file name: enter "a", then press the Tab key, you can turn a folder filled with "a" and documents "abc.txt". Enter the name of a very long time a folder or file is useful.
③ automatically populate a specific file extension name: Enter "*. txt", then press the Tab key, you can turn populate file "abc.txt", "ac.txt". At the command prompt, the asterisk on behalf of any character.
④ automatically populate the second letter to a specific folder and file name: enter "? B *", then press the Tab key, you can turn a folder filled with "ab" and documents "abc.txt". Question mark represents a character in here.
⑤ automatically populate the file name specified length of file name: Enter "???. txt ", then press the Tab key, you can turn populate file" abc.txt "and" ac.txt ".
2, the input methods
Google Pinyin input method in the middle, Tab key is the back flip. Shift + Tab is a forward flip. Sogou Pinyin input method in the middle, press the Tab key to enter the stroke screening model. Use is to enter a word or multiple word spelling, press the tab key, then h (cross), s (vertical), p (write), n (strokes), z (discount) enter the first word in turn The order of strokes, has been to find the word so far. In this mode, the Separation of Chinese secondary code can also be used, for example, to enter a Chinese character "han" is on the list but could not find, then input "xian", then press the Tab key, then enter the "han" two parts " Female "," leisure "and the initials" nx ", you can see only a" han "word has.
3, where in Photoshop
After pressing the Tab key will hide the toolbar and the panel, only the menu bar. This shortcut key combination of regular full-screen shortcut "f" to use.
4, under the EmEditor and EditPlus
In EmEditor and EidtPlus when writing code under the program, select multiple lines, press the Tab key to quickly select multiple rows for the indentation. Shift + Tab key combination is the reverse indentation.
5, in the browser
Some time back to support the Forum with the key combination "Ctrl + Enter" to quickly submit, but this combination of keys does not necessarily support each browser. I used to use the Tab + Enter key combination to quickly submit, with the Tab key to move the focus to "submit" button (a small number of cases need to press the Tab key several times), press the Enter key. "Ctrl + Enter" key combination you need to call Javascript script to achieve, even if the page with the author this method does not use scripts can be quickly submitted.
6, replacement Tab key
Opening when the Tab key that can generate a tab, if want to replace tabs, how do? Very simple, in Word, press the key combination Ctrl + H, in the "Find what" type "^ t", "replaced by" do not fill in, click Replace All to quickly remove tabs. In EmEditor, the same press the key combination Ctrl + H, in the "Find", type "\ t", "replaced by" do not fill in, and check "Use the escape sequence", click "Replace All" button.
Using DOS commands to see one through the system quickly
As long as a DOS command on the system can touch one of these conditions clear.
The first step: Click "Start → Run" to open the Run dialog box, enter "cmd" (without quotation marks, the same below) and press the Enter key, open a command prompt window.
Step Two: At the command prompt, enter "systeminfo> c: \ sysInfo.txt", press the Enter key implementation. Haha, this time in the root directory on C will create a sysInfo.txt file that contains your host name, operating system details, product ID, processor type, memory, BIOS version, system directory path, virtual memory details , the patch installation conditions and LAN connections and other detailed reports.
Step Three: If you bother to call the resource manager and then step by step into the C drive directory go to open sysInfo.txt, directly at the command prompt and enter "start c: \ sysInfo.txt", you can quickly open the report file.
Tip:
★ "systeminfo" is the XP system, view system information carried by a command line tool, it can take some special parameters to specify the connection the remote system, specify the display format of the results, the specific can enter "systeminfo /?" Command to see ; ">" is a DOS redirect command, other commands can export the results shown to a text file, which is specified later in the export file name. "Start" is under a DOS start command, its role is similar to our Explorer double-click a file.
The first step: Click "Start → Run" to open the Run dialog box, enter "cmd" (without quotation marks, the same below) and press the Enter key, open a command prompt window.
Step Two: At the command prompt, enter "systeminfo> c: \ sysInfo.txt", press the Enter key implementation. Haha, this time in the root directory on C will create a sysInfo.txt file that contains your host name, operating system details, product ID, processor type, memory, BIOS version, system directory path, virtual memory details , the patch installation conditions and LAN connections and other detailed reports.
Step Three: If you bother to call the resource manager and then step by step into the C drive directory go to open sysInfo.txt, directly at the command prompt and enter "start c: \ sysInfo.txt", you can quickly open the report file.
Tip:
★ "systeminfo" is the XP system, view system information carried by a command line tool, it can take some special parameters to specify the connection the remote system, specify the display format of the results, the specific can enter "systeminfo /?" Command to see ; ">" is a DOS redirect command, other commands can export the results shown to a text file, which is specified later in the export file name. "Start" is under a DOS start command, its role is similar to our Explorer double-click a file.
Very difficult to solve computer way to delete files
In such cases: Computer Mou There is a folder on the hard disk After many ways for Chang Shi Du Wufashanchu, in resource management device which will remove the time "Can not delete file: can not read the source file or disk" error suggested, In the console with the following rd (rmdir) command to delete when it says "system can not find the file specified" try unixutil the unlink and rm all else fails it. Even tried to check the file system for problems, but still not found the problem. The existence of this folder is simply a scourge, want to get rid.
Below to Windows XP as an example, delete this folder and effective method:
You first need to understand and are familiar with the operation of the command:
If you want to delete the folder or file is a hidden attribute, deletion of the command is:
rd / a folder
del / a File
Hypothesis can not afford to delete the folder in the "g: \ delete" directory the following, the operation is as follows:
1, "start" "" "Run" in the "Run" dialog box, type: cmd
2, at the command prompt, type:
g: - Enter
cd \ delete - Enter
Manually switch to the current position "g: \ delete" directory.
If the command is successful in front of the flashing cursor will appear "g: \ delete>" prompt.
3, type "dir / x" command, then press Enter to run the command. Window displays the directory delete all the files, folders, information, information in the columns displayed in the penultimate as "8.3" format short name. Truncated name will generally be a "~ 1" at the end.
4, choose you need to delete the file or folder where the line, see the penultimate line of the column to its files, folders, copy down the name, then "g: \ delete>" command prompt and enter :
If it is delete the folder on the input: rd folder (copy) - Enter
If you delete the file, enter: del files (copy) - Enter
At this point, should be able to successfully remove such a file or folder it!
However, it is difficult to remove the folder, there is one thing we should borrow, is to use it to store useful information without fear of being easily removed!
Below to Windows XP as an example, delete this folder and effective method:
You first need to understand and are familiar with the operation of the command:
If you want to delete the folder or file is a hidden attribute, deletion of the command is:
rd / a folder
del / a File
Hypothesis can not afford to delete the folder in the "g: \ delete" directory the following, the operation is as follows:
1, "start" "" "Run" in the "Run" dialog box, type: cmd
2, at the command prompt, type:
g: - Enter
cd \ delete - Enter
Manually switch to the current position "g: \ delete" directory.
If the command is successful in front of the flashing cursor will appear "g: \ delete>" prompt.
3, type "dir / x" command, then press Enter to run the command. Window displays the directory delete all the files, folders, information, information in the columns displayed in the penultimate as "8.3" format short name. Truncated name will generally be a "~ 1" at the end.
4, choose you need to delete the file or folder where the line, see the penultimate line of the column to its files, folders, copy down the name, then "g: \ delete>" command prompt and enter :
If it is delete the folder on the input: rd folder (copy) - Enter
If you delete the file, enter: del files (copy) - Enter
At this point, should be able to successfully remove such a file or folder it!
However, it is difficult to remove the folder, there is one thing we should borrow, is to use it to store useful information without fear of being easily removed!
linux more command: read files by page
Description:
more command and command similar to cat, cat command is the entire contents of a file to standard output, and more orders are displayed as a page file, user-friendly read.
Syntax:
more [-dlfpcsu] [-num] [+ / pattern] [+ num] [fileNames ..]
Options description:
-D: prompt the user, the screen shown below [Press space to continue, q to quit.], If the user pressed the wrong button, it will show [Press h for instructions.] Instead of beeps;
-L: Cancel meet the special characters ^ L (feed characters) will be suspended during the function;
-F: When calculating the number of rows to the number of rows in fact, rather than wrap the line after the number of (some single words too long will be extended to more than two lines or two lines);
-P: no way to scroll display on each page, but first clear the screen after the display;
-C: with the-p similar, except that the first display and then clear the other old data;
-S: When faced with two lines or more consecutive blank line, the substitution for the line of blank lines;
-U: do not display the next quote (according to the specified terminal environment variable TERM vary);
+ /: Search for each file before displaying the string (pattern), and then start from the string after the show;
-Num: Display to num lines;
+ Num: num lines from the beginning to show;
Implementation of the example:
01 $ more text
02 test.sh
03 link
04 123
05 $ more -2 text
06 test.sh
07 link
08 --More--(76%)
09 $ more +2 text
10 link
11 123
12 $ ls -l | more
Extended reading:
more interactive command options:
Press the spacebar (space) next page;
Press b button will back a display;
Press q to exit;
/ Pattern: search forward from the current location of a specified pattern of characters specified location
more command and command similar to cat, cat command is the entire contents of a file to standard output, and more orders are displayed as a page file, user-friendly read.
Syntax:
more [-dlfpcsu] [-num] [+ / pattern] [+ num] [fileNames ..]
Options description:
-D: prompt the user, the screen shown below [Press space to continue, q to quit.], If the user pressed the wrong button, it will show [Press h for instructions.] Instead of beeps;
-L: Cancel meet the special characters ^ L (feed characters) will be suspended during the function;
-F: When calculating the number of rows to the number of rows in fact, rather than wrap the line after the number of (some single words too long will be extended to more than two lines or two lines);
-P: no way to scroll display on each page, but first clear the screen after the display;
-C: with the-p similar, except that the first display and then clear the other old data;
-S: When faced with two lines or more consecutive blank line, the substitution for the line of blank lines;
-U: do not display the next quote (according to the specified terminal environment variable TERM vary);
+ /: Search for each file before displaying the string (pattern), and then start from the string after the show;
-Num: Display to num lines;
+ Num: num lines from the beginning to show;
Implementation of the example:
01 $ more text
02 test.sh
03 link
04 123
05 $ more -2 text
06 test.sh
07 link
08 --More--(76%)
09 $ more +2 text
10 link
11 123
12 $ ls -l | more
Extended reading:
more interactive command options:
Press the spacebar (space) next page;
Press b button will back a display;
Press q to exit;
/ Pattern: search forward from the current location of a specified pattern of characters specified location
linux mv command: move a file or rename
Basic operation for:
mv command to rename a file or directory, or file into another location.
Syntax:
mv [-if] the source file target file # file rename
mv [-if] file ... directory # the file (one or more) moved to the specified directory
Options description:
-I: If the specified directory has the same title, is first asked to overwrite the old file;
-F: the mv operation to cover an existing target file does not give any instructions;
Implementation of the example:
view sourceprint? 1 $ mv text.txt text.log # files will be renamed as text.log text.txt
2 $ mv text.log yesterday.log logs # will text.log and yesterday.log into the logs directory
3 $ mv info / logs # the info into the logs directory directory. Note that if the logs directory does not exist, then the command info renamed logs.
#After No. Description.
mv command to rename a file or directory, or file into another location.
Syntax:
mv [-if] the source file target file # file rename
mv [-if] file ... directory # the file (one or more) moved to the specified directory
Options description:
-I: If the specified directory has the same title, is first asked to overwrite the old file;
-F: the mv operation to cover an existing target file does not give any instructions;
Implementation of the example:
view sourceprint? 1 $ mv text.txt text.log # files will be renamed as text.log text.txt
2 $ mv text.log yesterday.log logs # will text.log and yesterday.log into the logs directory
3 $ mv info / logs # the info into the logs directory directory. Note that if the logs directory does not exist, then the command info renamed logs.
#After No. Description.
订阅:
评论 (Atom)