⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0208-0210.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:




<HTML>

<HEAD>

<TITLE>Sams Teach Yourself Linux in 24 Hours:Internet Downloading and Browsing:EarthWeb Inc.-</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311623 //-->

<!-- TITLE=Sams Teach Yourself Linux in 24 Hours//-->

<!-- AUTHOR=Bill Ball//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=13 //-->

<!-- PAGES=0193-0210 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->







<P><CENTER>

<a href="0204-0207.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="../ch14/0211-0216.html">Next</A>

</CENTER></P>



<A NAME="PAGENUM-208"><P>Page 208</P></A>



<H3><A NAME="ch13_ 15">

Connecting with Other Computers with the telnet<BR>

Command

</A></H3>



<P>You can use the telnet command to log in to remote computers to run programs, view

files, or download data. The telnet command has a number of options, but is generally used

with a hostname, or remote computer system's name, on the command line to start a

telnet session, for example:

</P>



<!-- CODE SNIP //-->

<PRE>

# telnet computer.somewhere.com

</PRE>

<!-- END CODE SNIP //-->



<P>This command will connect you to the remote computer, and you'll receive a login

prompt. You'll generally need to have a username and password in order to enter the remote

system. For security reasons, few computer systems allow unknown users anonymous access.

You may be able to find a list of computer systems providing access by using your favorite

search engines, such as through a Web search site.

</P>



<TABLE BGCOLOR=#FFFF99><TR><TD>TIME SAVER</TD></TR><TR><TD>

<BLOCKQUOTE>

If you've &quot;telnetted&quot; to a remote computer system through an active

Internet connection, or through a shell account through a direct dial-in to the

computer, you can easily transfer programs using the

sz and rz (send and receive) programs (if those programs are resident on the remote computer). After you've dialed

in to a remote computer directly through the phone line, you can transfer files

to your computer with: sz -w 2048 filename.tgz.

<BR>

This command will send the file filename.tgz using the ZMODEM

communications protocol. Your communications program should automatically

start receiving the file using this protocol (most communications programs,

anyway). If you're connected through an Internet connection, the companion program,

rz, should be automatically started to receive the file. If not, you can start the

rz program manually. See the sz and rz manual pages for more information.

</BLOCKQUOTE></TD></TR></TABLE>



<P>You may also run the telnet command in an interactive mode, opening and closing

sessions to different remote computers. Like the

ftp command, the telnet command has built-in help. If you'd like to get a list of available help topics, you can use the question mark

(?), for example:

</P>



<!-- CODE //-->

<PRE>

# telnet

telnet&gt; ?

Commands may be abbreviated.  Commands are:



close           close current connection

logout          forcibly logout remote user and close the connection

display         display operating parameters

mode            try to enter line or character mode (`mode ?' for more)

open            connect to a site

quit            exit telnet

send            transmit special characters (`send ?' for more)<BR>

</PRE>

<!-- END CODE //-->





<A NAME="PAGENUM-209"><P>Page 209</P></A>







<!-- CODE //-->

<PRE>

set             set operating parameters (`set ?' for more)

unset           unset operating parameters (`unset ?' for more)

status          print status information

toggle          toggle operating parameters (`toggle ?' for more)

slc             change state of special charaters (`slc ?' for more)

auth            turn on (off) authentication (`auth ?' for more)

z               suspend telnet

environ         change environment variables (`environ ?' for more)

?               print help information

telnet&gt;

</PRE>

<!-- END CODE //-->



<P>If you'd like to experiment with this command without an active Internet connection,

you can telnet to your own computer from a terminal window under X11, or through

the console. As with the ftp command, you should first determine the hostname of

your computer with the hostname command, then either specify the hostname on the

telnet command line, or run telnet, and use its

open command to start the session, for example:

</P>



<!-- CODE //-->

<PRE>

#  hostname

localhost.localdomain

# telnet localhost

Trying 127.0.0.1...

Connected to localhost.

Escape character is `^]'.



Welcome to Red Hat Linux!

Kernel 2.0.31 on an i586

login: bball

Password:

Last login: Fri Dec 12 16:51:44 on tty1

#

</PRE>

<!-- END CODE //-->



<P>As you can see, after entering the username and password at the login prompt, you'll

be presented with the shell prompt command line.

</P>





<A NAME="PAGENUM-210"><P>Page 210</P></A>





<P><CENTER>

<a href="0204-0207.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="../ch14/0211-0216.html">Next</A>

</CENTER></P>











</td>
</tr>
</table>

<!-- begin footer information -->









</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -