OpenSSH@windows
利用cwTex,己經作出了很多的文件pdf檔,但是在windows中怎樣才能將文件分享在網路上呢,所以使用OpenSSH作檔案分享的伺服器,是不錯的idea。
另外也可以參考DRBL OpenSSH@windows
- 到Cygwin去下載setup.exe,安裝在c:\cygwin
- 設定環境變數CYGWIN=ntsec或是tty ntsec
- 利用ssh-host-config設定sshd成服務類型
- 在cygwin的環境下,利用命令"net start sshd"或是"cygrunsrv --start sshd"來啟動sshd。
- 自我測試"ssh localhost"
4NT command line editing
Command Line Editing
The command line works like a single-line word processor, allowing you to edit any part of the command at any time before you press Enter to execute it, or Esc to erase it.
The command line as typed can contain up to a maximum of 8,191 characters, and it can expand to a maximum of 16,383 characters after variable, function and alias substitution. See Command Line Length Limits.
If you do not alter the default key mapping, you can use the following editing keys (among others) when you are typing a command (the words Ctrl and Shift mean to press the Ctrl or Shift key together with the other key named). The keystrokes listed here are merely default values, but most editing keys can be redefined via Command Line Editing Keys or General Input Keys directives.
Cursor Movement Keys:
Left
Move the cursor left one character.
Right
Move the cursor right one character.
Ctrl-Left
Move the cursor left one word.
Ctrl-Right
Move the cursor right one word.
Home
Move the cursor to the beginning of the command.
End
Move the cursor to the end of the command.
Insert and Delete Keys:
Ins
Toggle between insert and overstrike mode (cursor shape indicates mode).
Del
Delete the character under (or to the right of) the cursor, or the highlighted text.
Bksp
Delete the character to the left of the cursor, or the highlighted text.
Ctrl-L
Delete the word or partial word to the left of the cursor.
Ctrl-R or Ctrl-Bksp
Delete the word or partial word to the right of the cursor.
Ctrl-Home
Delete from the beginning of the line to the cursor.
Ctrl-End
Delete from the cursor to the end of the line.
Esc
Delete the entire line.
Ctrl-V
Paste the first line of text from the clipboard at the current cursor position.
Ctrl-C
(TC) Paste all of the text from the clipboard at the current cursor position.
Highlighting (4NT):
Shift-Right
Highlight character right of cursor and move cursor
Shift-Left
Highlight character left of cursor and move cursor
Shift-Home
Highlight from cursor to beginning-of-line and move cursor
Shift-End
Highlight from cursor to end-of-line and move cursor
Ctrl-Shift-Right
Highlight word right of cursor and move cursor
Ctrl-Shift-Left
Highlight word left of cursor and move cursor
Ctrl-Y
Copy highlighted text to the clipboard
Execution:
Ctrl-K
Save the current command line in the history list without executing it, and then clear the command line
Ctrl-C or Ctrl-Break
Cancel the command line without saving in the history list. (See also: the CUA directive).
Enter
Execute the command line.
Miscellaneous:
F1
Get help for the command (first argument on the line)
Ctrl-F1
Get help for the current word.
Ctrl-F
Expand an alias.
Ctrl-X
Expand an environment variable.
Ctrl-A
Toggle between LFN and SFN.
Alt-PgUp, Alt-PgDn, Alt-Home, Alt-End, Alt-Up, Alt-Down
(4NT) Scroll the window within the console buffer. (Use the cursor pad keys, not the numeric keypad keys.)
To highlight text on the command line use the mouse (TC), or hold down the Shift key and use any of the cursor movement keys listed above. You can select a complete word by placing the cursor anywhere in the word and double-clicking with the mouse. Once you have selected or highlighted text on the command line, any new text you type will replace the highlighted text. If you press Bksp or Del while there is text highlighted on the command line, the highlighted text will be deleted.
While you are working at the prompt you can use the clipboard to copy text between the command processor and other applications (see Highlighting and Copying Text for additional details). You can also use Drag and Drop to paste a filename from another application onto the command line.
Most of the command line editing capabilities are also available when the command processor prompts you for a line of input. For example, you can use the command line editing keys when DESCRIBE prompts for a file description, when INPUT prompts for input from an alias or batch file, or when LIST prompts you for a search string.
If you want your input at the command line to be in a different color from the command processor's prompts or output, you can use the Colors tab of the configuration dialogs, or the InputColors directive in the .INI file.
The command processor will prompt for additional command line text when you include the escape character as the very last character of a typed command line. The default escape character is the caret "^", but in general, it's best to use the symbolic "%=" EscapeChar representation for portability. For example:
[c:\] echo The quick brown fox jumped over the lazy %=
More? sleeping dog. > alphabet
Sometimes you may want to enter one of the command line editing keystrokes on the command line instead of performing the key's usual action. For example, suppose you have a program that requires a Ctrl-R character on its command line. Normally you couldn't type this keystroke at the prompt, because it would be interpreted as a "Delete word right" command. To get around this problem, use the special keystroke Alt-255. You enter Alt-255 by holding down the Alt key while you type 0255 on the numeric keypad, then releasing the Alt key. This forces the command processor to interpret the next keystroke literally and place it on the command line, ignoring any special meaning it would normally have as a command line editing or history keystroke. You can use Alt-255 to suppress the normal meaning of command line editing keystrokes even if they have been reassigned with key mapping directives in the .INI file, and Alt-255 itself can be reassigned with the CommandEscape directive.
Alternative Keyboard Input Method:
The method mentioned above for Alt-255 can be used to generate other characters. You must use the number keys on the numeric keypad, not the row of keys at the top of your keyboard. When this Alt + keypad approach is used in a Unicode environment, the command processor will assume that a 3-digit decimal value means an ASCII character, while a 4-digit decimal value mean a Unicode glyph. Make sure that your hardware, character set, code page and font all support the desired combination. Use caution with this method if you plan on manipulating the generated character in other Windows components. See the section on ASCII, Key Codes and ANSI X3.64 Commands for some additional information.