📄 ckuker.nr
字号:
Changes your working directory to the one given..TPCDUPChanges your working directory one level up..TPPWDDisplays your working directory..TPBACKReturns to your previous working directory..TPMKDIR [ directory ]Creates a directory..TPRMDIR [ directory ]Removes a directory..RE.SSMaking Connections.RS.TPSET LINE [ options ] devicename Opens the named serial port. Synonym: SET PORT..TPOPEN LINE [ options ] devicenameSame as SET LINE. Synonym: OPEN PORT..TPSET MODEM TYPE [ name ]Tells Kermit what kind of modem is on the port..TPDIAL [ number ]Tells Kermit to dial the given phone number with the modem..TPREDIALRedials the most recently dialed phone number..TPANSWERWaits for and answers an incoming call on the modem..TPAUTHENTICATE [ parameters... ]Performs secure authentication on a TCP/IP connection..TPSET NETWORK TYPE { TCP/IP, X.25, ... }Selects network type for subsequent SET HOST commands..TPSET HOST [ options ] host [ port ] Opens a network connection to the given host and port..TPSET HOST * portWaits for an incoming TCP/IP connection on the given port..TPTELNET [ options ] hostOpens a Telnet connection to the host and enters Connect state..TPRLOGIN [ options ] hostOpens an Rlogin connection to the host and enters Connect state..TPIKSD [ options ] hostOpens a connection to an Internet Kermit Service..TPSSH [ options ] hostOpens an SSH connection to the host and enters Connect state..TPFTP OPEN host [ options ]Opens an FTP connection to the host..TPHTTP [ options ] OPEN hostOpens an HTTP connection to the host..TPPTY external-commandRuns the command on a pseudoterminal as if it were a connection..TPPIPE external-commandRuns the command through a pipe as if it were a connection..RE.SSUsing Connections.RS.TPCONNECT [ options ]Enters Connect (terminal) state. Synonym: C..TPREDIRECT commandRedirects the given external command over the connection..TPTELOPT commandSends a Telnet protocol command (Telnet connections only)..TPCtrl-\eC"Escapes back" from Connect state to Command state..TPCtrl-\eB(In Connect state) Sends a BREAK signal (serial or Telnet)..TPCtrl-\e!(In Connect state) Enters inferior shell; "exit" to return..TPCtrl-\e?(In Connect state) Shows a menu of other escape-level options..TPCtrl-\eCtrl-\e(In Connect state) Type twoCtrl-Backslashes to send one of them..TPSET ESCAPE [ character ]Changes Kermit's Connect-state escape character..RE.SSClosing Connections.RS.TPHANGUPHangs up the currently openserial-port or network connection..TPCLOSECloses the currently openserial-port or network connection..TPSET LINE (with no devicename)Closes the currently openserial-port or network connection..TPSET HOST (with no hostname)Closes the currently open serial-port or network connection..TPFTP CLOSECloses the currently open FTP connection..TPHTTP CLOSECloses the currently open HTTP connection..TPEXIT Also closes all connections. Synonym: QUIT..TPSET EXIT WARNING OFFSuppresses warning about open connections on exit or close..RE.SSFile Transfer.RS.TPSEND [ options ] filename [ as-name ]Sends the given file. Synonym: S..TPSEND [ options ] filespecSends all files that match..TPRESEND [ options ] filespecResumes an interupted SEND from the point of failure..TPRECEIVE [ options ] [ as-name ] Waits passively for files to arrive. Synonym: R..TPLOG TRANSACTIONS [ filename ]Keeps a record of file transfers..TPFASTUse fast file-transfer settings (default)..TPCAUTIOUSUse cautious and less fast file-transfer settings..TPROBUSTUse ultra-conservative and slow file-transfer settings..TPSTATISTICS [ options ] Gives statistics about the most recent file transfer..TPWHEREAfter transfer: "Where did my files go?"..TPTRANSMIT [ options ] [ofilename ]Sends file without protocol. Synonym: XMIT..TPLOG SESSION [ filename ]Captures remote text or files without protocol..TPSET PROTOCOL [ name... ]Tells Kermit to use an external file-transfer protocol..TPFTP { PUT, MPUT, GET, MGET, ... }FTP client commands..TPHTTP { PUT, GET, HEAD, POST, ... }HTTP client commands..RE.SSKermit Server.RS.TPENABLE, DISABLEControls which server features can be used by clients..TPSET SERVERSets parameters prior to entering Server state..TPSERVEREnters Server state..RE.SSClient of Kermit or FTP Server.RS.TP[ REMOTE ] LOGIN [ user password ] Logs in to a Kermit server or IKSD that requires it..TP[ REMOTE ] LOGOUTLogs out from a Kermit server or IKSD..TPSEND [ options ] filename [ as-name ] Sends the given file to the server. Synonyms: S, PUT..TPSEND [ options ] filespecSends all files that match..TPRESEND [ options ] filespecResumes an interupted SEND from the point of failure..TPGET [ options ] remote-filespecAsks the server to send the given files. Synonym: G..TPREGET [ options ] remote-filespecResumes an interrupted GET from the point of failure..TPREMOTE CD [ directory ]Asks server to change its workingdirectory. Synonym: RCD..TPREMOTE PWD [ directory ]Asks server to display its working directory. Synonym: RPWD..TPREMOTE DIRECTORY [ filespec... ]Asks server to send a directory listing. Synonym: RDIR..TPREMOTE DELETE [ filespec... ]Asks server to delete files. Synonym: RDEL..TPREMOTE [ command... ](Many other commands: "remote ?" for a list)..TPMAIL [ options ] filespecSends file(s) to be delivered as e-mail (Kermit only)..TPFINISHAsks the server to exit server state (Kermit only)..TPBYEAsks the server to log out and close the connection..RE.SSScript Programming.PP.RSDEFINE, DECLARE, UNDEFINE, UNDECLARE, ASSIGN, EVALUATE, SEXPRESSION,ARRAY, SORT, INPUT, OUTPUT, IF, FOR, WHILE, SWITCH, GOTO, ECHO, ASK,GETC, GETOK, ASSERT, WAIT, SLEEP, FOPEN, FREAD, FWRITE, FCLOSE, STOP,END, RETURN, LEARN, SHIFT, TRACE, VOID, INCREMENT, DECREMENT, ... Forthese and many more you'll need to consult the manual and supplements,and/or visit the Kermit Script Library, which also includes a brieftutorial. Hint: HELP LEARN to find out how to get Kermit to writesimple scripts for you..RE.PPMany of Kermit's commands have synonyms, variants, relatives, and so on.For example, MSEND is a version of SEND that accepts a list of filespecifications to be sent, rather than just one file specification, andMPUT is a synonym of MSEND. MOVE means to SEND and then DELETE the sourcefile if successful. MMOVE is like MOVE, but accepts a list of filespecs,and so on. These are described in the full documentation..PPUse question mark to feel your way through an unfamiliar command, as inthis example:.PP.nf C-Kermit> remote ? One of the following: assign directory kermit print rmdir cd exit login pwd set copy help logout query space delete host mkdir rename type C-Kermit> remote set ? One of the following: attributes file retry transfer block-check receive server window C-Kermit> remote set file ? One of the following: character-set incomplete record-length collision names type C-Kermit> remote set file names ? One of the following: converted literal C-Kermit> remote set file names literal C-Kermit>.PP.fiThis is called menu on demand: you get a menu when you want one, but menusare not forced on you even when know what you're doing. Note that you canalso abbreviate most keywords, and you can complete them with the Tab orEsc key. Also note that ? works for filenames too, and that you can use itin the middle of a keyword or filename, not just at the beginning. Forexample, "send x?" lists all the files in the current directory whose namesstart with 'x'..SH INITIALIZATION FILEIn its default configuration, C-Kermit executes commands from a file called .kermrc in your home directory when it starts, unless it is given the-Y or -y command-line option. Custom configurations might substitute a sharedsystem-wide initialization file. The SHOW FILE command tells whatinitialization file, if any, was used. The standard initialization file"chains" to an individual customization file, .mykermc, in the home directory,in which each user can establish her/his own preferences, define macros, andso on..PPSince execution of the initialization file (at least the standard one)makes C-Kermit take longer to start, it might be better not to have aninitialization file, especially now that Kermit's default startupconfiguration is well attuned to modern computing and networking -- inother words, you no longer have do anything special to make Kermittransfers go fast. So instead of having an initialization file that isexecuted every time Kermit starts, you might consider making one or morekerbang scripts (with names other that .kermrc) that do NOT include an"exit" command, and invoke those when you need the settings, macrodefinitions, and/or scripted actions they contain, and invoke C-Kermitdirectly when you don't..PPTo put it another way... We still distribute the standard initializationfile since it's featured in the manual and backwards compatibility isimportant to us. But there's no harm in not using it if you don't need thestuff that's in it (services directory, dialing directory, networkdirectory, and associated macro definitions). On the other hand, if thereare settings or macros you want in effect EVERY time you use Kermit, theinitialization file (or the customization file it chains to) is the placeto put them, because that's the only place Kermit looks for themautomatically each time you start it..SH MODES OF OPERATIONKermit is said to be in Local mode if it has made a connection to anothercomputer, e.g. by dialing it or establishing a Telnet connection to it. Theother computer is remote, so if you start another copy of Kermit on theremote computer, it is said to be in Remote mode (as long as it has notmade any connections of its own). The local Kermit communicates over thecommunications device or network connection, acting as a conduit betweenthe the remote computer and your keyboard and screen. The remote Kermit isthe file-transfer partner to the local Kermit and communicates only throughits standard input and output..PPAt any moment, a Kermit program can be in any of the following states. It'simportant to know what they are and how to change from one to the other..TPCommand stateIn this state, Kermit reads commands from:.sp\(bu Your keyboard; or:.br\(bu A file, or:.br\(bu A macro definition..spYou can exit from Command state back to Unix with the EXIT or QUITcommand (same thing). You can enter Connect state with any of variouscommands (CONNECT, DIAL, TELNET, etc). You can enter file transferstate with commands like SEND, RECEIVE, and GET. You can enter Serverstate with the SERVER command. The TAKE command tells Kermit to readand execute commands from a file. The (perhaps implied) DO commandtells Kermit to read and execute commands from a macro definition.While in Command state, you can interrupt any command, macro, orcommand file by typing Ctrl-C (hold down the Ctrl key and press the Ckey); this normally brings you back to the prompt..TPShell stateYou can invoke an inferior shell or external command from the Kermit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -