[AIX 네트워크 관리 8] TCP/IP (2) 원격 로그인, 파일 전송, 원격 인쇄, 상태 확인

핵심 정리

  • 원격 로그인·실행: telnet(tn, tn3270 포함, 신뢰 명령, 다른 OS에도 접속), rlogin(UNIX끼리, 비신뢰), rsh/remsh(원격 명령 실행, 명령을 안 주면 rlogin), rexec(.netrc의 사용자·암호 사용). rlogin·rsh는 $HOME/.rhosts와 /etc/hosts.equiv에 있는 호스트는 암호 없이 들어올 수 있어 비신뢰 명령이며, 보안이 필요하면 꺼 둡니다. 셋 다 Kerberos V.5 인증을 쓸 수 있습니다.
  • talk 사용자@호스트로 실시간 대화를 하며 양쪽에 talkd가 실행 중이어야 합니다.
  • 파일 전송: ftp(기본 ASCII, 바이너리는 binary, get/put)는 파일 속성·하위 디렉터리를 보존하지 않으므로 그런 경우 rcp를 씁니다. tftp/utftp는 파일 하나씩 전송하는 TFTP이며 보안 수준이 높으면 쓸 수 없습니다.
  • 원격 인쇄: 원격 호스트의 /etc/hosts.lpd에 내 호스트 이름이 있어야 하며(바꾼 뒤 refresh), enq -P 큐:프린터 파일로 보냅니다(큐는 보통 rp…, 프린터는 drp…).
  • 상태 명령: finger(사용자), host(이름↔주소), ping(도달 여부), rwho(로컬 네트워크 로그인 사용자), whois(인터넷 연결 시).
항목 내용
버전 AIX 5.3, AIX 6.1 (내용이 같음)
원문 Networks and communication management — 5.3판 6673쪽, 6.1판 108118쪽
파일 $HOME/.rhosts, /etc/hosts.equiv, $HOME/.netrc, /etc/hosts.lpd, /usr/lib/lpd/qconfig
관련 명령어 telnet, rlogin, rsh, rexec, talk, ftp, rcp, tftp, enq, finger, ping

다른 시스템이나 사용자와 통신하는 방법은 여러 가지입니다. 여기서는 두 가지를 다룹니다. 첫째는 로컬 호스트를 원격 호스트에 연결하는 방법이고, 둘째는 원격 사용자와 대화하는 방법입니다.

영어 원문

Methods for communicating with other systems and users

There are several methods of communicating with other systems and users. Two methods are discussed here. The first method is by connecting a local host to a remote host. The second method is by conversing with a remote user.

로컬 호스트를 원격 호스트에 연결하기

원격 로그인과 명령 실행을 위한 TCP/IP 호스트 연결 명령입니다.

내 컴퓨터가 아닌 다른 컴퓨터에 접근해야 하는 이유는 여러 가지입니다. 예를 들어 시스템 관리자가 내가 작업하던 민감한 파일의 권한을 다시 줘야 하거나, 내가 다른 사람의 워크스테이션에서 개인 파일에 접근해야 할 수 있습니다. 다른 사람의 컴퓨터에서 내 컴퓨터에 연결할 수도 있습니다. rlogin, rexec, telnet 같은 원격 로그인 기능은 로컬 호스트를 입출력 터미널 호스트처럼 동작하게 합니다. 키 입력은 원격 호스트로 보내지고 결과는 로컬 모니터에 표시됩니다. 원격 로그인 세션을 끝내면 모든 기능이 로컬 호스트로 돌아옵니다.

TCP/IP에는 원격 로그인과 명령 실행을 위한 다음 명령이 있습니다.

rexec

rlogin 명령으로 원격 호스트에 로그인했을 때 여러 외부 호스트에서 대화식으로 명령을 실행하게 합니다. 네트워크에 보안이 더 필요하면 시스템 관리자가 이 명령을 꺼 둡니다. rexec 명령을 내면 로컬 호스트는 원격 호스트의 $HOME/.netrc 파일에서 내 사용자 이름과 로컬 호스트의 암호를 찾습니다. 찾으면 요청한 명령이 실행되고, 찾지 못하면 요청을 처리하기 전에 로그인 이름과 암호를 입력해야 합니다.

rlogin

비슷한 외부 호스트에 로그인하게 합니다. 서로 다른 원격 호스트에 쓸 수 있는 telnet과 달리 rlogin은 UNIX 호스트에서만 쓸 수 있습니다. 네트워크에 보안이 더 필요하면 시스템 관리자가 이 명령을 꺼 둡니다.

rlogin은 로컬 호스트를 원격 호스트에 연결한다는 점에서 telnet과 비슷합니다. 다른 점은 rlogin이 신뢰(trusted) 명령이 아니어서 시스템에 보안이 더 필요하면 끌 수 있다는 것뿐입니다. rlogin이 신뢰 명령이 아닌 이유는, 로컬 사용자가 소유한 $HOME/.rhosts 파일과 시스템 관리자가 소유한 /etc/hosts.equiv 파일에 로컬 호스트에 접근할 수 있는 원격 호스트 목록이 있기 때문입니다. 그래서 터미널을 켜 둔 채 자리를 비우면 권한 없는 사용자가 이 파일들에 든 이름과 암호를 살펴보거나, 더 나쁘게는 원격 호스트에 피해를 줄 수 있습니다. 원격 사용자가 rlogin 명령을 낸 뒤 암호를 입력하게 하는 것이 이상적이지만, 이 권장 기능은 얼마든지 우회할 수 있습니다.

$HOME/.rhosts 파일과 /etc/hosts.equiv 파일 어디에도 로그인하려는 원격 호스트의 이름이 없으면 로컬 호스트는 암호를 묻습니다. 입력한 암호는 먼저 원격 암호 파일로 확인하며, 암호가 틀리면 로그인 프롬프트가 다시 나옵니다. 로그인 프롬프트에서 물결표와 마침표(~.)를 누르면 원격 로그인 시도를 끝냅니다.

rlogin 명령도 Kerberos V.5로 사용자를 인증하도록 구성할 수도 있습니다. 그러면 $HOME/.rhosts 파일을 쓰거나 네트워크로 암호를 보내지 않고 사용자를 식별할 수 있습니다. 자세한 내용은 TCP/IP (1)의 인증과 보안 rcmds를 봅니다.

rsh와 remsh

비슷한 외부 호스트에서 명령을 실행하게 합니다. 필요한 입력은 모두 원격 호스트가 해야 합니다. 네트워크에 보안이 더 필요하면 시스템 관리자가 이 명령들을 꺼 둡니다.

rsh 명령은 두 가지로 쓸 수 있습니다.

  • 명령 이름을 지정하면 원격 호스트에서 명령 하나를 실행합니다.
  • 명령 이름을 지정하지 않으면 rlogin 명령을 실행합니다.

rsh 명령을 내면 로컬 호스트는 원격 호스트의 /etc/hosts.equiv 파일에서 로그인 권한을 찾습니다. 찾지 못하면 $HOME/.rhosts 파일을 찾습니다. 두 파일 모두 로그인 권한이 있는 원격 호스트의 목록입니다. 원격 사용자는 rsh 명령을 낸 뒤 암호를 입력해야 합니다. rlogin 명령을 낼 필요를 없앨 수도 있습니다. rsh 명령은 원격 호스트에서 명령을 실행하게 하지만 암호 요구를 우회하는 수단은 주지 않습니다. 원격 호스트에 접근하는 데 암호가 필요하면 rsh 명령을 쓸 때도 암호가 필요합니다. 두 명령 모두 $HOME/.rhosts와 /etc/hosts.equiv 파일에 접근하기 때문입니다.

rsh 명령도 Kerberos V.5로 사용자를 인증하도록 구성할 수도 있습니다. 그러면 $HOME/.rhosts 파일을 쓰거나 네트워크로 암호를 보내지 않고 사용자를 식별할 수 있습니다. 자세한 내용은 TCP/IP (1)의 인증과 보안 rcmds를 봅니다.

telnet, tn, tn3270

telnet 명령은 TELNET 프로토콜을 구현한 터미널 에뮬레이션 프로그램으로, 비슷하거나 다른 외부 호스트에 로그인하게 합니다. TCP/IP로 네트워크의 다른 호스트와 통신합니다.

참고: 편의상 이제부터 telnet은 telnet, tn, tn3270 명령을 함께 가리킵니다.

telnet 명령은 사용자가 원격 호스트에 로그인하는 한 가지 방법입니다. telnet 명령의 가장 중요한 특징은 신뢰 명령이라는 것입니다. 반대로 원격 로그인을 하게 하는 rlogin 명령은 신뢰 명령으로 여기지 않습니다. 시스템에 따라 권한 없는 사용자가 파일에 접근하거나, 민감한 데이터를 훔치거나, 파일을 지우거나, 바이러스나 웜을 심지 못하게 보안이 더 필요할 수 있습니다. TCP/IP의 보안 기능은 이런 일을 막는 데 도움이 되도록 설계되었습니다.

telnet 명령으로 원격 호스트에 로그인하려는 사용자는 그 컴퓨터에 승인된 사용자의 이름과 암호를 대야 합니다. 로컬 호스트에 로그인하는 절차와 비슷합니다. 원격 호스트에 로그인하면 사용자의 터미널은 그 호스트에 바로 연결된 것처럼 동작합니다.

telnet 명령은 터미널 협상(terminal negotiation)이라는 옵션을 지원합니다. 원격 호스트가 터미널 협상을 지원하면 telnet 명령은 로컬 터미널 유형을 원격 호스트에 보냅니다. 원격 호스트가 로컬 터미널 유형을 받아들이지 않으면 telnet 명령은 3270 터미널과 DEC VT100 터미널을 에뮬레이트하려 합니다. 에뮬레이트할 터미널을 지정하면 터미널 유형을 협상하지 않습니다. 로컬과 원격 호스트가 터미널 유형에 합의하지 못하면 로컬 호스트는 기본값 none을 씁니다.

telnet 명령은 3270 터미널 유형 3277-1, 3278-1, 3278-2, 3278-3, 3278-4, 3278-5를 지원합니다. 컬러 디스플레이에서 3270 모드로 telnet을 쓰면 기본으로 색과 필드가 3279 디스플레이처럼 표시됩니다. 위 터미널 유형 목록의 키보드 매핑 파일 가운데 하나를 편집해 다른 색을 고를 수 있습니다. telnet 세션이 끝나면 디스플레이는 세션 시작 전의 색으로 돌아갑니다.

telnet 명령도 Kerberos V.5로 사용자를 인증하도록 구성할 수도 있습니다. 그러면 $HOME/.rhosts 파일을 쓰거나 네트워크로 암호를 보내지 않고 사용자를 식별할 수 있습니다. 자세한 내용은 TCP/IP (1)의 인증과 보안 rcmds를 봅니다.

참고: rsh와 rexec 명령으로 원격 호스트에서 명령을 실행할 수 있지만 둘 다 신뢰 명령이 아니므로, 컴퓨터에 구성된 모든 보안 수준을 만족하지 못할 수 있습니다. 그래서 시스템에 보안이 더 필요하면 이 명령들을 끌 수 있습니다.

영어 원문

Local host connections to a remote host

These TCP/IP host connection commands are for remote login and command execution.

There are several reasons why you might need to access a computer other than your own. For example, your system administrator might need to reassign permissions to a sensitive file you have been working on, or you might need to access a personal file from someone else's workstation. You can even connect to your own computer from someone else's computer station. Remote login functions, such as the rlogin, rexec, and telnet commands, enable the local host to perform as an input/output terminal host. Key strokes are sent to the remote host, and the results are displayed on the local monitor. When you end the remote login session, all functions return to your local host.

TCP/IP contains the following commands for remote login and command execution:

  • rexec — The rexec command makes it possible to execute commands interactively on different foreign hosts when you log in to a remote host with the rlogin command. This command is disabled by the system manager if extra security is needed for your network. When you issue the rexec command, your local host searches the $HOME/.netrc file of the remote host for your user name and a password from your local host. If these are found, the command you requested to be run on the local host will then be run. Otherwise, you will be required to supply a login name and password before the request can be honored.
  • rlogin — The rlogin command makes it possible to log in to similar foreign hosts. Unlike telnet, which can be used with different remote hosts, the rlogin command can be used on UNIX hosts only. This command is disabled by the system manager if extra security is needed for your network. The rlogin command is similar to the telnet command in that both allow a local host to connect to a remote host. The only difference is that the rlogin command is not a trusted command and can be disabled if your system needs extra security. The rlogin command is not a trusted command because both the $HOME/.rhosts file, which is owned by the local user, and the /etc/hosts.equiv file, which is owned by your system manager, keep a listing of remote hosts that have access to the local host. Therefore, if you leave your terminal on while unattended, an unauthorized user could examine the names and passwords contained in these files, or worse, could damage a remote host in some way. Ideally, remote users should be required to type a password after issuing the rlogin command, but it is quite possible to bypass this recommended feature. If neither the $HOME/.rhosts file nor the /etc/hosts.equiv file contains the name of a remote host that is trying to log in, the local host prompts for a password. The remote password file is first checked to verify the password entered; the login prompt is again displayed if the password is not correct. Pressing tilde and period (~.) at the login prompt ends the remote login attempt. The rlogin command can also be configured to use Kerberos V.5 to authenticate the user. This option allows the user to be identified without the use of a $HOME/.rhosts file or passing the password across the network. For more information about this use of the rlogin command, see “Authentication and the secure rcmds” on page 104.
  • rsh and remsh — The rsh and remsh commands make it possible to execute commands on similar foreign hosts. All required input must be performed by the remote host. The rsh and remsh commands are disabled by the system manager if extra security is needed for your network. The rsh command can be used in two ways: • To execute a single command on a remote host when a command name is specified • To execute the rlogin command when no command name is specified When the rsh command is issued, your local host searches the /etc/hosts.equiv file on the remote host for permission to log in. If that is unsuccessful, the $HOME/.rhosts file is searched. Both of these files are lists of remote hosts having login permission. Remote users should be required to type a password after issuing the rsh command. It is also possible to eliminate the need to issue the rlogin command. The rsh command permits the execution of commands on a remote host, but does not provide a means of bypassing the password requirement. If a password is needed to access a remote host, then a password is needed to use the rsh command as well because both commands access the $HOME/.rhosts and /etc/hosts.equiv files. The rsh command can also be configured to use Kerberos V.5 to authenticate the user. This option allows the user to be identified without either the use of a $HOME/.rhosts file or passing the password across the network. For more information about this use of the rsh command, see “Authentication and the secure rcmds” on page 104.
  • telnet, tn, and tn3270 — The telnet command is a terminal emulation program that implements the TELNET protocol and allows you to log in on a similar or dissimilar foreign host. It uses TCP/IP to communicate with other hosts in the network. Note: For convenience, telnet hereafter refers to the telnet, tn, and tn3270 commands. The telnet command is one way a user can log in to a remote host. The most important feature of the telnet command is that it is a trusted command. In contrast, the rlogin command, which also allows for remote login, is not considered a trusted command. A system may need extra security to prevent unauthorized users from gaining access to its files, stealing sensitive data, deleting files, or placing viruses or worms on the system. The security features of TCP/IP are designed to help prevent these occurrences. A user who wishes to log in to a remote host with the telnet command must provide the user name and password of an approved user for that computer. This is similar to the procedure used for logging in to a local host. When successfully logged in to a remote host, the user's terminal runs as if directly connected to the host. The telnet command supports an option called terminal negotiation. If the remote host supports terminal negotiation, the telnet command sends the local terminal type to the remote host. If the remote host does not accept the local terminal type, the telnet command attempts to emulate a 3270 terminal and a DEC VT100 terminal. If you specify a terminal to emulate, the telnet command does not negotiate for terminal type. If the local and remote hosts cannot agree on a terminal type, the local host defaults to none. The telnet command supports these 3270 terminal types: 3277-1, 3278-1, 3278-2, 3278-3, 3278-4, and 3278-5. If you are using the telnet command in 3270 mode on a color display, the colors and fields are displayed just as those on a 3279 display, by default. You can select other colors by editing one of the keyboard mapping files in the preceding list of terminal types. When the telnet session has ended, the display is reset to the colors in use before the session began. The telnet command can also be configured to use Kerberos V.5 to authenticate the user. This option allows the user to be identified without either the use of a $HOME/.rhosts file or passing the password across the network. For more information about this use of the telnet command, see “Authentication and the secure rcmds” on page 104.
  • Note: The rsh and rexec commands can be used to execute commands on a remote host, but neither is a

trusted command, so they may not meet all security levels configured into your computer. As a result, these commands can be disabled if your system requires extra security.

원격 호스트에 로그인하기

telnet 명령으로 원격 호스트에 로그인할 수 있습니다. 그러려면 원격 호스트의 올바른 사용자 ID와 암호가 있어야 합니다.

원격 호스트(이 예에서는 host1)에 로그인하려면 다음을 입력합니다.

text
telnet host1

화면에 다음과 비슷한 정보가 나옵니다.

text
Trying . . .
Connected to host1
Escape character is ’^T’.
AIX telnet (host1)
AIX Operating System
Version 7.1
(/dev/pts0)
login:_

로그인하면 명령을 낼 수 있습니다. 시스템에서 로그아웃하고 연결을 닫으려면 Ctrl-D를 누릅니다.

로그인할 수 없으면 Ctrl-T를 눌러 연결을 취소합니다.

영어 원문

Remote host logins

You can log in to a remote host by using the telnet command.

In order to do this, you must have a valid user ID and password for the remote host.

To log in to a remote host (host1 in this example), type:

text
telnet host1

Information similar to the following displays on your screen:

text
Trying . . .
Connected to host1
Escape character is ’^T’.
AIX telnet (host1)
AIX Operating System
Version 7.1
(/dev/pts0)
login:_

After you have logged in, you can issue commands. To log out of the system and close the connection, press the Ctrl-D key sequence.

If you cannot log in, cancel the connection by pressing the Ctrl-T key sequence.

원격 사용자와 대화하기

talk 명령으로 원격 호스트의 다른 사용자와 실시간으로 대화합니다.

  1. 로컬과 원격 호스트 모두에서 talkd 데몬이 실행 중이어야 합니다.
  2. 원격 호스트의 사용자가 로그인해 있어야 합니다.

talk 명령은 바인드할 올바른 주소가 필요합니다. 원격 터미널의 호스트 이름은 ping 같은 다른 네트워크 명령이 쓸 수 있는, 동작하는 네트워크 인터페이스에 바인드되어 있어야 합니다. 네트워크 인터페이스가 없는 독립형 터미널 기계라면 talk 명령이 동작하도록 호스트 이름을 루프백 주소(127.0.0.1)에 바인드해야 합니다.

전자 우편으로 로컬 네트워크의 다른 사용자와 텍스트 메시지를 주고받을 수 있습니다. 컴퓨터 시스템이 알맞게 구성되어 있고 알맞은 전자 주소를 알면 세계 어디의 원격 시스템 사용자에게도 전자 우편 메시지를 보낼 수 있습니다.

TCP/IP에는 원격 통신을 위한 다음 명령이 있습니다.

명령 설명
mail 전자 메모와 편지를 보내고 받습니다.
talk 원격 호스트의 사용자와 대화식으로 이야기하게 합니다.
  1. 원격 호스트에 로그인한 원격 사용자 dale@host2와 이야기하려고 jane@host1이 다음을 입력합니다.
text
talk dale@host2

dale@host2의 화면에 다음과 비슷한 메시지가 나옵니다.

text
Message from TalkDaemon@host1 at 15:16...
talk: connection requested by jane@host1.
talk: respond with: talk jane@host1

이 메시지는 jane@host1이 대화하려 한다고 dale@host2에게 알립니다.

  1. 초대를 받아들이려면 dale@host2가 다음을 입력합니다.
text
talk jane@host1

이제 dale@host2와 jane@host1이 대화식으로 이야기할 수 있습니다.

  1. 어느 사용자든 언제든 Ctrl-C를 눌러 대화를 끝낼 수 있습니다. 그러면 명령줄 프롬프트로 돌아갑니다.
영어 원문

Conversing with a remote user

Use the talk command to have a real-time conversation with another user on a remote host.

  1. The talkd daemon must be active on both the local and remote host.

  2. The user on the remote host must be logged in.

The talk command requires a valid address on which to bind. The host name of the remote terminal must be bound to a working network interface that is usable by other network commands, such as the ping command. If a machine has no network interface that is a standalone terminal, it must bind its host name to the loopback address (127.0.0.1) in order for the talk command to work.

Using electronic mail, you can send text messages to other users on a local network and receive mail from them as well. If a computer system is configured appropriately and you know the appropriate electronic address, you can send electronic mail messages across the world to someone on a remote system.

TCP/IP contains the following commands for remote communications:

  • mail — Sends and receives electronic memos and letters
  • talk — Lets you have an interactive conversation with a user on a remote host
  1. To talk to the remote user dale@host2 logged in on a remote host, jane@host1 types:
text
talk dale@host2

A message similar to the following displays on the screen of dale@host2:

text
Message from TalkDaemon@host1 at 15:16...
talk: connection requested by jane@host1.
talk: respond with: talk jane@host1

This message informs dale@host2 that jane@host1 is trying to converse with her.

  1. To accept the invitation, dale@host2 types:
text
talk jane@host1

Users dale@host2 and jane@host1 are now able to have an interactive conversation.

  1. To end a conversation at any time, either user can press the Ctrl-C key sequence. This returns them to the command line prompt.

파일 전송

비교적 짧은 파일은 전자 우편으로 보낼 수 있지만, 큰 파일을 전송하는 더 효율적인 방법이 있습니다.

전자 우편 프로그램은 보통 비교적 적은 양의 텍스트를 보내도록 설계되어 있으므로, 큰 파일을 효과적으로 전송하려면 다른 수단이 필요합니다. ftp, rcp, tftp 명령은 TCP/IP로 로컬 호스트에서 원격 호스트로 직접 연결을 맺습니다. BNU(Basic Network Utilities)도 TCP/IP로 외부 호스트와 직접 연결을 맺을 수 있습니다.

영어 원문

File transfers

Although it is possible to send relatively short files using electronic mail, there are more efficient ways of transferring large files.

Electronic mail programs are usually designed to transmit relatively small amounts of text; therefore, other means are needed to transfer large files effectively. The ftp, rcp, and tftp commands rely on TCP/IP to establish direct connections from your local host to a remote host. Basic Network Utilities (BNU) can also use TCP/IP to provide direct connections with foreign hosts.

ftp와 rcp 명령으로 파일 전송하기

원격 호스트에서 파일을 복사하려면 ftp 명령을 씁니다. ftp 명령은 파일 속성을 보존하거나 하위 디렉터리를 복사하지 않습니다. 둘 가운데 하나가 필요하면 rcp 명령을 씁니다.

명령 설명
ftp FTP(File Transfer Protocol)로 EBCDIC과 ASCII처럼 파일 시스템이나 문자 표현이 다른 호스트 사이에 파일을 전송합니다. 암호를 원격 호스트로 보내 보안을 제공하며, 자동 로그인, 파일 전송, 로그오프를 할 수 있습니다.
rcp 로컬 호스트와 원격 호스트 사이, 서로 다른 두 원격 호스트 사이, 같은 원격 호스트의 파일 사이에서 파일을 하나 이상 복사합니다. 원격 파일 작업에만 쓴다는 점 말고는 cp 명령과 비슷합니다. 네트워크에 보안이 더 필요하면 시스템 관리자가 이 명령을 꺼 둡니다.

ftp와 rcp 명령으로 파일을 전송하기 전에 다음 조건을 확인합니다.

  1. 자동 로그인 기능을 쓰려면 원격 호스트의 $HOME/.netrc 파일에 원격 로그인 권한이 지정되어 있어야 합니다. 그렇지 않으면 원격 호스트의 로그인 이름과 암호를 알아야 합니다. .netrc 파일은 TCP/IP (1)의 .netrc 파일 만들기를 봅니다. 또는 Kerberos V.5 인증을 쓰도록 시스템을 구성할 수 있으며, 이때는 .netrc나 $HOME/.rhosts 파일 대신 그것을 씁니다. 인증과 보안 rcmds를 봅니다.

  2. 원격 호스트에서 파일을 복사하려면 그 파일의 읽기 권한이 있어야 합니다.

    참고: 원격 호스트의 파일과 디렉터리에 대한 읽기·쓰기 권한은 쓰는 로그인 이름이 정합니다.

  3. 로컬 호스트의 파일을 원격 호스트로 복사하려면 복사한 파일이 들어갈 디렉터리의 쓰기 권한이 있어야 합니다. 또 원격 호스트의 그 디렉터리에 넣으려는 파일과 이름이 같은 파일이 있으면, 원격 호스트의 그 파일에 덧붙일 쓰기 권한이 있어야 합니다.

원격 호스트에 바로 로그인하기

TCP/IP로 파일을 전송할 때 이 절차로 원격 호스트에 바로 로그인할 수 있습니다.

  1. cd 명령으로 보낼 파일이 든 디렉터리(보낼 때)나 전송한 파일을 둘 디렉터리(받을 때)로 옮깁니다.
  2. 다음을 입력해 원격 호스트에 바로 로그인합니다.
text
ftp HostName

자동 로그인 권한이 있으면 로컬 호스트에 다음과 비슷한 정보가 나옵니다.

text
Connected to canopus.austin.century.com.
220 canopus.austin.century.com FTP server
(Version 4.1 Sat Nov 23 12:52:09 CST 1995) ready.
331 Password required for dee.
230 User dee logged in.
ftp>

그렇지 않으면 다음과 비슷한 정보가 나옵니다.

text
Connected to canopus.austin.century.com.
220 canopus.austin.century.com FTP server
(Version 4.1 Sat Nov 23 12:52:09 CST 1995) ready.
Name (canopus:eric): dee
331 Password required for dee.
Password:
230 User dee logged in.
ftp>
  1. 시스템이 물으면 로그인 이름과 암호를 입력합니다.

이제 두 호스트 사이에 파일을 복사할 수 있습니다.

원격 호스트에 간접으로 로그인하기

TCP/IP로 파일을 전송할 때 이 절차로 원격 호스트에 간접으로 로그인할 수 있습니다.

  1. cd 명령으로 보낼 파일이 든 디렉터리(보낼 때)나 전송한 파일을 둘 디렉터리(받을 때)로 옮깁니다.
  2. 다음을 입력해 원격 호스트에 간접으로 로그인합니다.
text
ftp
  1. ftp> 프롬프트가 나오면 다음을 입력합니다.
text
open HostName

자동 로그인 권한이 있으면 로컬 호스트에 다음과 비슷한 정보가 나옵니다.

text
Connected to canopus.austin.century.com.
220 canopus.austin.century.com FTP server
(Version 4.1 Sat Nov 23 12:52:09 CST 1995) ready.
331 Password required for dee.
230 User dee logged in.
ftp>

그렇지 않으면 다음과 비슷한 정보가 나옵니다.

text
Connected to canopus.austin.century.com.
220 canopus.austin.century.com FTP server
(Version 4.1 Sat Nov 23 12:52:09 CST 1995) ready.
Name (canopus:eric): dee
331 Password required for dee.
Password:
230 User dee logged in.
ftp>
  1. 시스템이 물으면 이름과 암호를 입력합니다.

원격 호스트의 파일을 로컬 호스트로 복사하기

ftp 명령으로 원격 호스트의 파일을 로컬 호스트로 복사합니다. 먼저 원격 시스템에 바로 또는 간접으로 로그인해야 합니다(위 절차 참고).

참고: ftp 명령은 기본 전송 유형 ASCII로 파일을 복사합니다.

  1. dir 하위 명령을 실행해 복사할 파일이 현재 디렉터리에 있는지 확인합니다(ftp 명령의 dir 하위 명령은 ls -l 명령과 같이 동작합니다). 파일이 없으면 cd 하위 명령으로 알맞은 디렉터리로 옮깁니다.
  2. 바이너리 이미지로 복사하려면 다음을 입력합니다.
text
binary
  1. 파일을 내 호스트로 복사하려면 다음을 입력합니다.
text
get FileName

파일은 ftp 명령을 낸 디렉터리에 놓입니다.

  1. 세션을 끝내려면 Ctrl-D를 누르거나 quit을 입력합니다.

로컬 호스트의 파일을 원격 호스트로 복사하기

ftp 명령으로 로컬 호스트의 파일을 원격 호스트로 복사합니다. 먼저 원격 시스템에 바로 또는 간접으로 로그인해야 합니다(위 절차 참고).

참고: ftp 명령은 기본 전송 유형 ASCII로 파일을 복사합니다.

  1. 파일을 $HOME 디렉터리가 아닌 곳에 두려면 cd 하위 명령으로 원하는 디렉터리로 옮깁니다.
  2. 바이너리 이미지로 복사하려면 다음을 입력합니다.
text
binary
  1. 파일을 원격 호스트로 복사하려면 다음을 입력합니다.
text
put FileName
  1. 세션을 끝내려면 Ctrl-D를 누르거나 quit을 입력합니다.
영어 원문

File transfers using the ftp and rcp commands

Use the ftp command to copy a file from a remote host. The ftp command does not preserve file attributes or copy subdirectories. If either of these conditions are necessary, use the rcp command.

  • ftp — Uses the File Transfer Protocol (FTP) to transfer files between hosts that use different file systems or character representations, such as EBCDIC and ASCII. It provides for security by sending passwords to the remote host and also permits automatic login, file transfers, and log off.
  • rcp — Copies one or more files between a local host and a remote host, between two separate remote hosts, or between files at the same remote host. This command is similar to the cp command except that it works only for remote file operations. If extra security is needed for your network, this command is disabled by the system manager.

Before attempting file transfer using the ftp and rcp commands, make sure the following conditions are true:

  1. You must have remote login permission specified in the remote host's $HOME/.netrc file if the automatic login feature is to be used. Otherwise, you must know a login name and password for the remote host. For more information about the .netrc file, see Creating the .netrc file. Alternatively, the system can be configured to use Kerberos V.5 authentication. This is used instead of the .netrc or $HOME/.rhosts files. See Authentication and the secure rcmds.

  2. If you wish to copy a file from a remote host, you must have read permission for that file.

Note: The read and write permissions for files and directories on a remote host are determined by the login name used.

  1. If you wish to copy a file from your local host to a remote host, you must have write permission for the directory that is to contain the copied file. Also, if the directory on the remote host contains a file with the same name as the file that you wish to place in it, you must have write permission to append the file on the remote host.

Logging in to a remote host directly

When using TCP/IP to transfer files, you can use this procedure to log in to a remote host directly.

  1. Use the cd command to change to the directory that contains the file you want to send (sending a file) or to the directory where you want the transferred file to reside (receiving a file).

  2. Log in to the remote host directly by typing:

text
ftp HostName

If you have automatic login permission, information similar to the following is displayed on your local host:

text
Connected to canopus.austin.century.com.
220 canopus.austin.century.com FTP server
(Version 4.1 Sat Nov 23 12:52:09 CST 1995) ready.
331 Password required for dee.
230 User dee logged in.
ftp>

Otherwise, information similar to the following is displayed on your local host:

text
Connected to canopus.austin.century.com.
220 canopus.austin.century.com FTP server
(Version 4.1 Sat Nov 23 12:52:09 CST 1995) ready.
Name (canopus:eric): dee
331 Password required for dee.
Password:
230 User dee logged in.
ftp>
  1. Enter your login name and password when prompted by the system.

You are now ready to copy a file between two hosts.

Logging in to a remote host indirectly

When using TCP/IP to transfer files, you can use this procedure to log in to a remote host indirectly.

  1. Use the cd command to change to the directory that contains the file you want to send (sending a file) or to the directory where you want the transferred file to reside (receiving a file).

  2. Log in to the remote host indirectly by typing:

text
ftp
  1. When the ftp> prompt is displayed, type:
text
open HostName

If you have automatic login permission, information similar to the following is displayed on your local host:

text
Connected to canopus.austin.century.com.
220 canopus.austin.century.com FTP server
(Version 4.1 Sat Nov 23 12:52:09 CST 1995) ready.
331 Password required for dee.
230 User dee logged in.
ftp>

Otherwise, information similar to the following is displayed on your local host:

text
Connected to canopus.austin.century.com.
220 canopus.austin.century.com FTP server
(Version 4.1 Sat Nov 23 12:52:09 CST 1995) ready.
Name (canopus:eric): dee
331 Password required for dee.
Password:
230 User dee logged in.
ftp>
  1. Type in your name and password when prompted by the system.

Copying a file from a remote host to a local host

Use the ftp command to copy a file from a remote host to a local host.

To copy a file from a remote host to a local host using the ftp command, you must first log in to the remote system either directly or indirectly. See Logging in to a remote host directly or Logging in to a remote host indirectly for instructions.

Note: The ftp command uses the ASCII default transfer type to copy files.

To copy a file from a remote host to a local host:

  1. Determine if the file that you want to copy is in the current directory by running the dir subcommand. (The dir subcommand for the ftp command works in the same way as the ls -l command.) If the file is not there, use the cd subcommand to move to the proper directory.

  2. To copy your local file using binary image, type:

text
binary
  1. To copy a file to your host, type:
text
get FileName

The file is placed in the directory from which you issued the ftp command.

  1. To end the session, press the Ctrl-D key sequence, or type quit.

Copying a file from a local host to a remote host

Use the ftp command to copy a file from a local host to a remote host.

To copy a file from a local host to a remote host using the ftp command, you must first log in to the remote system either directly or indirectly. See Logging in to a remote host directly or Logging in to a remote host indirectly for instructions.

Note: The ftp command uses the ASCII default transfer type to copy files.

To copy a file from a local host to a remote host:

  1. If you want to place the file in a directory other than the $HOME directory, use the cd subcommand to move to the desired directory.

  2. To copy your local file using binary image, type:

text
binary
  1. To copy a file to the remote host, type:
text
put FileName
  1. To end the session, press the Ctrl-D key sequence, or type quit.

tftp와 utftp 명령으로 파일 전송하기

tftp와 utftp 명령으로 TFTP(Trivial File Transfer Protocol)를 써서 호스트와 파일을 주고받습니다.

TFTP는 파일 하나씩 전송하는 프로토콜이므로 tftp와 utftp 명령은 ftp 명령의 기능을 모두 제공하지는 않습니다. 네트워크에 보안이 더 필요하면 시스템 관리자가 이 명령을 끌 수 있습니다.

참고: 호스트가 높은 보안 수준으로 동작하면 tftp 명령을 쓸 수 없습니다.

tftp와 utftp 명령으로 파일을 전송하기 전에 다음 조건을 확인합니다.

  1. 원격 호스트에서 파일을 복사하려면 원하는 파일이 든 디렉터리의 읽기 권한이 있어야 합니다.
  2. 원격 호스트로 파일을 복사하려면 파일을 둘 디렉터리의 쓰기 권한이 있어야 합니다.

원격 호스트에서 파일 복사하기

  1. 원격 호스트에 연결하려면 다음을 입력합니다.
text
tftp host1

이 예에서 host1은 연결할 호스트의 이름입니다. tftp> 프롬프트가 나옵니다.

  1. 연결되었는지 확인하려면 다음을 입력합니다.
text
status

다음과 비슷한 메시지가 나옵니다.

text
Connected to host1
Mode: netascii Verbose: off Tracing: off
Remxt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
  1. get 하위 명령, 전송할 파일의 이름, 로컬 시스템에서 파일에 줄 이름을 입력합니다.
text
get /home/alice/update update

원격 호스트의 /home/alice 디렉터리에는 다른 사용자의 읽기 권한이 설정되어 있어야 합니다. 이 예에서는 host1의 /home/alice/update 파일을 로컬 시스템 현재 디렉터리의 update 파일로 전송합니다.

  1. 세션을 끝내려면 다음을 입력하거나 Ctrl-D를 누릅니다.
text
quit

원격 호스트로 파일 복사하기

  1. 원격 호스트에 연결하려면 다음을 입력합니다.
text
tftp host1

이 예에서 host1은 연결할 호스트의 이름입니다. tftp> 프롬프트가 나옵니다.

  1. 연결되었는지 확인하려면 다음을 입력합니다.
text
status

다음과 비슷한 메시지가 나옵니다.

text
Connected to host1
Mode: netascii Verbose: off Tracing: off
Remxt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
  1. put 하위 명령, 로컬 호스트에서 전송할 파일의 이름, 원격 호스트에서 파일의 경로와 이름을 입력합니다.
text
put myfile /home/alice/yourfile

원격 호스트의 /home/alice 디렉터리에는 다른 사용자의 쓰기 권한이 설정되어 있어야 합니다. 사용자의 현재 작업 디렉터리에 있는 myfile 파일이 host1으로 전송됩니다. 기본값을 정해 두지 않았으면 경로 이름을 지정해야 합니다. myfile 파일은 원격 호스트에 yourfile로 나타납니다.

  1. 세션을 끝내려면 다음을 입력하거나 Ctrl-D를 누릅니다.
text
quit
영어 원문

File transfers using the tftp and utftp commands

Use the tftp and utftp commands for the Trivial File Transfer Protocol (TFTP) to transfer files to and from hosts.

Because TFTP is a single-file transfer protocol, the tftp and utftp commands do not provide all of the features of the ftp command. If extra security is required for your network, the system manager can disable this command.

Note: The tftp command is not available when your host is operating at a high level of security.

Before attempting a file transfer using the tftp and utftp commands, make sure the following conditions are true:

  1. If you wish to copy a file from a remote host, you must have read permission for the directory that contains the desired file.

  2. If you wish to copy a file to a remote host, you must have write permission for the directory in which the file is to be placed.

Copying a file from a remote host

When using TCP/IP to copy files, you can use this procedure to copy files from a remote host.

  1. To establish a connection to a remote host, type:
text
tftp host1

In this example, host1 is the name of the host to which you wish to connect. The tftp> prompt is displayed.

  1. To determine that a connection has been established, type:
text
status

A message similar to the following is displayed:

text
Connected to host1
Mode: netascii Verbose: off Tracing: off
Remxt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
  1. Enter the get subcommand, the name of the file to be transferred, and the name to be assigned to the file on the remote system:
text
get /home/alice/update update

The /home/alice directory on the remote host must have read permission set for other users. In this example, the /home/alice/update file is transferred from host1 to the update file in the current directory on the local system.

  1. To end the session, type:
text
quit

or press the Ctrl-D key sequence.

Copying a file to a remote host

When using TCP/IP to copy files, you can use this procedure to copy a file to a remote host.

  1. To establish a connection to a remote host, type:
text
tftp host1

In this example, host1 is the name of the host to which you wish to connect. The tftp> prompt is displayed.

  1. To determine that a connection has been established, type:
text
status

A message similar to the following is displayed:

text
Connected to host1
Mode: netascii Verbose: off Tracing: off
Remxt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
  1. Enter the put subcommand, the name of the file to be transferred from the local host, and the path and file name for the file on the remote host:
text
put myfile /home/alice/yourfile

The /home/alice directory on the remote host must have write permission set for others. The myfile file, located in the user's current working directory, is transferred to host1. The path name must be specified unless a default has been established. The myfile file appears on the remote host as yourfile.

  1. To end the session, type:
text
quit

or use the Ctrl-D key sequence.

원격 시스템으로 파일 인쇄하기

호스트에 로컬 프린터가 붙어 있으면 다음 절차는 원격 프린터로 인쇄하는 방법입니다. 로컬 프린터가 없으면 다음 절차는 기본값이 아닌 원격 프린터로 인쇄하는 방법입니다.

  1. 원격 호스트의 /etc/hosts.lpd 파일에 내 호스트 이름이 있어야 합니다.

    참고: 큐 시스템은 멀티바이트 호스트 이름을 지원하지 않습니다. 시스템을 다시 시작하지 않고 /etc/hosts.lpd 파일의 변경을 적용하려면 SRC(System Resource Controller)의 refresh 명령을 씁니다.

  2. 로컬 /usr/lib/lpd/qconfig 파일에서 큐 이름과 원격 프린터 이름을 알아낼 수 있어야 합니다.

enq 명령이나 SMIT로 이 작업을 할 수 있습니다.

참고: 이 절은 원격 호스트로 인쇄하는 가장 간단한 방법만 설명합니다. 원격 인쇄에 관한 더 많은 정보와 아이디어는 enq 명령을 봅니다.

영어 원문

Printing files to a remote system

If you have a local printer attached to your host, then the following procedures refer to printing to a remote printer. If you have no local printer, then the following procedures refers to printing to a nondefault remote printer.

  1. Your host name must appear in the /etc/hosts.lpd file of the remote host.

Note: The queuing system does not support multibyte host names. To implement changes to the /etc/hosts.lpd file without restarting the system, use the System Resource Controller (SRC) refresh command.

  1. You must be able to determine the queue name and the remote printer name in your local /usr/lib/lpd/qconfig file

You can use either the enq command or the System Management Interface Tool (SMIT) to complete this task.

Note: This section explains how to print to a remote host at the simplest level possible. For more information and ideas about remote printing, see enq command.

원격 인쇄 큐에 인쇄 작업 넣기

TCP/IP로 파일을 인쇄할 때 이 절차로 원격 인쇄 큐에 작업을 넣을 수 있습니다.

원격 인쇄 큐에 작업을 넣으려면 원격 호스트의 /etc/hosts.lpd 파일에 내 호스트 이름이 있어야 합니다(큐 시스템은 멀티바이트 호스트 이름을 지원하지 않습니다). 시스템을 다시 시작하지 않고 /etc/hosts.lpd 파일의 변경을 적용하려면 SRC의 refresh 명령을 씁니다. 또 로컬 /usr/lib/lpd/qconfig 파일에서 큐 이름과 원격 프린터 이름을 알아낼 수 있어야 합니다.

  1. 알맞은 큐 이름과 원격 장치 이름을 찾습니다. 큐 이름은 보통 rp로 시작하고 숫자가 뒤따릅니다. 원격 프린터 이름은 보통 drp로 시작하고 숫자가 뒤따릅니다.
  2. 다음 명령을 입력합니다.
text
enq -P QueueName : PrinterName FileName

QueueName은 /usr/lib/lpd/qconfig 파일에 있는 큐 이름(예: rp1)이고, PrinterName은 프린터 이름(예: drp1)입니다. QueueName과 PrinterName 사이의 콜론(:)을 빠뜨리지 마십시오. FileName은 인쇄할 파일의 이름입니다.

enq 명령을 쓰는 예입니다.

  • memo 파일을 기본 프린터로 인쇄하려면 다음을 입력합니다.
text
enq memo
  • prog.c 파일을 쪽 번호와 함께 인쇄하려면 다음을 입력합니다.
text
pr prog.c | enq

pr 명령은 쪽마다 맨 위에 파일을 마지막으로 고친 날짜, 파일 이름, 쪽 번호가 든 머리말을 넣습니다. 그다음 enq 명령이 파일을 인쇄합니다.

  • report 파일을 fred 큐에 구성된 다음 사용 가능 프린터로 인쇄하려면 다음을 입력합니다.
text
enq -P fred report
  • sam으로 시작하는 여러 파일을 fred 큐에 구성된 다음 사용 가능 프린터로 인쇄하려면 다음을 입력합니다.
text
enq -P fred sam*

sam으로 시작하는 파일이 모두 인쇄 작업 하나에 들어갑니다. 일반 상태 명령은 인쇄 작업의 제목만 보여 주며, -T 플래그로 다른 값을 지정하지 않았으면 큐의 첫 파일 이름이 제목입니다. 인쇄 작업에 든 모든 파일 이름을 보려면 긴 상태 명령 enq -A -L을 씁니다.

영어 원문

Placing a print job in a remote print queue

When using TCP/IP to print files, you can use this procedure to place a job in a remote print queue.

In order for you to place a job in a remote printing queue, your host name must appear in the /etc/hosts.lpd file of the remote host (the queuing system does not support multibyte host names). To implement changes to the /etc/hosts.lpd file without restarting the system, use the System Resource Controller (SRC) refresh command. Also, you must be able to determine the queue name and the remote printer name in your local /usr/lib/lpd/qconfig file.

  1. Find the appropriate queue name and remote device name. The queue name usually begins with the letters rp followed by a numeral or set of numerals. The remote printer name usually begins with the letters drp followed by a numeral or set of numerals.

  2. Enter the following command:

text
enq -P QueueName : PrinterName FileName

where QueueName is the name of the queue (such as rp1), and PrinterName is the name of the printer (such as drp1) as found in the /usr/lib/lpd/qconfig file. Do not omit the colon (:) between the QueueName and the PrinterName. FileName is the name of the file that you wish to print.

The following are examples of how the enq command can be used:

  • To print the file memo on the default printer, type:
text
enq memo
  • To print the file prog.c with page numbers, type:
text
pr prog.c | enq

The pr command puts a heading at the top of each page that includes the date the file was last modified, the name of the file, and the page number. The enq command then prints the file.

  • To print the file report on the next available printer configured for the fred queue, type:
text
enq -P fred report
  • To print several files beginning with the prefix sam on the next available printer configured for the fred queue, type:
text
enq -P fred sam*

All files beginning with the prefix sam are included in one print job. Normal status commands show only the title of the print job, which in this case is the name of the first file in the queue unless a different value was specified with the -T flag. To list the names of all the files in the print job, use the enq -A -L long status command .

SMIT로 작업을 큐에 넣기

TCP/IP로 파일을 큐에 넣을 때 smit 명령을 쓸 수 있습니다.

  1. SMIT로 작업을 큐에 넣으려면 다음 명령을 입력합니다.
text
smit
  1. Spooler를 고르고 인쇄 작업 시작(start a print job) 메뉴를 고릅니다.
  2. File to Print 옵션을 고르고 인쇄할 파일 이름을 입력합니다.
  3. Print Queue 옵션을 고르고 인쇄할 원격 프린터 이름을 고릅니다.

이제 원격 프린터로 인쇄할 수 있습니다.

영어 원문

Enqueuing a job using SMIT

When using TCP/IP to enqueue files, you can use the smit command.

  1. To enqueue a job using SMIT, type the following command:
text
smit
  1. Select the Spooler, and start a print job menu.

  2. Select the File to Print option, and type the name of the file you wish to print.

  3. Select the Print Queue option, and select the name of the remote printer to which you wish to print.

You are now ready to print to a remote printer.

원격 시스템에서 파일 인쇄하기

원격 호스트에 있는 파일을 인쇄해야 할 때가 있습니다. 인쇄물이 나오는 곳은 원격 호스트가 쓸 수 있는 원격 프린터에 따라 다릅니다.

  1. rlogin이나 telnet 명령으로 원격 시스템에 로그인할 수 있어야 합니다.
  2. 로컬 프린터로 인쇄할 원격 파일의 읽기 권한이 있어야 합니다.

참고: 이 절차는 원격 호스트로 인쇄하는 가장 간단한 방법만 설명합니다. 원격 인쇄에 관한 더 많은 정보와 아이디어는 enq 명령을 봅니다.

원격 시스템에서 인쇄하는 방법은 다음과 같습니다.

  1. rlogin이나 telnet 명령으로 원격 시스템에 로그인합니다.
  2. 알맞은 큐 이름과 원격 장치 이름을 찾습니다. 큐 이름은 보통 rp, 원격 프린터 이름은 보통 drp로 시작하고 숫자가 뒤따릅니다.
  3. 다음 명령을 입력합니다.
text
enq -P QueueName : PrinterName FileName

QueueName은 /usr/lib/lpd/qconfig 파일에 있는 큐 이름(예: rp1)이고, PrinterName은 프린터 이름(예: drp1)입니다. QueueName과 PrinterName 사이의 콜론(:)을 빠뜨리지 마십시오. FileName은 인쇄할 파일의 이름입니다.

  1. Ctrl-D를 누르거나 quit을 입력해 원격 호스트와의 연결을 끝냅니다.
영어 원문

Printing files from a remote system

Occasionally, you might need to print a file that is located on a remote host. The location of the printout depends upon which remote printers are available to the remote host.

  1. You must be able to log in to the remote system using the rlogin or telnet command.

  2. You must have read permission for the remote file that you wish to print on your local printer.

Note: This procedure explains how to print to a remote host at the simplest level possible. For more information and ideas about remote printing, read about the enq command.

To print from a remote system:

  1. Log in to the remote system using the rlogin or telnet command.

  2. Find the appropriate queue name and remote device name. The queue name usually begins with the letters rp followed by a numeral or set of numerals. The remote printer name usually begins with the letters drp followed by a numeral or set of numerals.

  3. Type the following command:

text
enq -P QueueName : PrinterName FileName

where QueueName is the name of the queue (such as rp1), and PrinterName is the name of the printer (such as drp1) as found in the /usr/lib/lpd/qconfig file. Do not omit the : (colon) between the QueueName and the PrinterName. FileName is the name of the file that you want to print.

  1. End the connection to the remote host by pressing the Ctrl-D sequence or by typing quit.

상태 정보 보기

TCP/IP 명령으로 네트워크의 상태를 판단하고, 사용자 정보를 보고, 다른 호스트나 사용자와 통신하는 데 필요한 호스트 정보를 풀 수 있습니다.

영어 원문

Displaying status information

You can use TCP/IP commands to determine the status of a network, display information about a user, and resolve host information needed to communicate to another host or user.

TCP/IP 상태 명령

TCP/IP에는 로컬·원격 호스트와 그 네트워크의 상태를 판단하는 상태 명령이 있습니다.

명령 설명
finger 또는 f 지정한 호스트의 현재 사용자 정보를 보여 줍니다. 사용자의 로그인 이름, 전체 이름, 터미널 이름, 로그인 날짜와 시각이 들어 있을 수 있습니다.
host 호스트 이름을 인터넷 주소로, 또는 인터넷 주소를 호스트 이름으로 풉니다.
ping 네트워크나 호스트의 상태를 판단하는 데 도움을 줍니다. 네트워크나 호스트가 지금 동작하는지 확인하는 데 가장 많이 씁니다.
rwho 로컬 네트워크의 호스트에 로그인한 사용자를 보여 줍니다. 로컬 네트워크의 모든 사람에 대해 사용자 이름, 호스트 이름, 로그인 날짜와 시각을 보여 줍니다.
whois 사용자 ID나 별명이 누구의 것인지 알려 줍니다. 로컬 네트워크가 인터넷에 연결되어 있을 때만 쓸 수 있습니다.
영어 원문

TCP/IP status commands

TCP/IP contains status commands to determine the status of local and remote hosts and their networks.

  • finger or f — Displays information about the current users on a specified host. This information can include the user's login name, full name, and terminal name, as well as the date and time of login.
  • host — Resolves a host name into an Internet address or an Internet address into a host name.
  • ping — Helps determine the status of a network or host. It is most commonly used to verify that a network or host is currently running.
  • rwho — Shows which users are logged in to hosts on a local network. This command displays the user name, host name, and date and time of login for everyone on the local network.
  • whois — Identifies to whom a user ID or nickname belongs. This command can only be used if your local network is connected to the Internet.

호스트에 로그인한 모든 사용자 정보 보기

원격 호스트에 로그인한 모든 사용자의 정보를 보는 절차입니다.

  1. 통신하려는 원격 호스트에 로그인합니다.
  2. 호스트 alcatraz에 로그인한 모든 사용자의 정보를 보려면 다음을 입력합니다.
text
finger @alcatraz

다음과 비슷한 정보가 나옵니다.

text
brown    console  Mar 15 13:19
smith    pts0     Mar 15 13:01
jones    tty0    Mar 15 13:01

사용자 brown은 콘솔에, smith는 의사 터미널 회선 pts0에서, jones는 tty0에서 로그인했습니다. 시스템 관리자가 finger 명령이 다르게 동작하도록 설정했을 수 있습니다. finger 명령을 쓰다 문제가 생기면 시스템 관리자에게 문의합니다.

영어 원문

Displaying information about all users logged in to a host

Use this procedure to view information about all users logged in to a remote host.

To display information about all users logged in to a remote host:

  1. Log in to the remote host with which you want to communicate.

  2. To display information about all users logged in to host alcatraz, type:

text
finger @alcatraz

Information similar to the following is displayed:

text
brown    console  Mar 15 13:19
smith    pts0     Mar 15 13:01
jones    tty0    Mar 15 13:01

User brown is logged in at the console, user smith is logged in from a pseudo teletype line pts0, and user jones is logged in from a tty0. Your system administrator can set up your system so that the finger command works differently. If you encounter any problems using the finger command, contact your system administrator.

호스트에 로그인한 사용자 한 명의 정보 보기

원격 호스트에 로그인한 특정 사용자의 정보를 보는 절차입니다.

  1. 통신하려는 원격 호스트에 로그인합니다.
  2. 호스트 alcatraz의 사용자 brown 정보를 보려면 다음을 입력합니다.
text
finger brown@alcatraz

다음과 비슷한 정보가 나옵니다.

text
Login name:  brown
Directory:  /home/brown     Shell:  /home/bin/xinit -L -n Startup
On since May 8 07:13:49 on console
No Plan.

시스템 관리자가 finger 명령이 다르게 동작하도록 설정했을 수 있습니다. finger 명령을 쓰다 문제가 생기면 시스템 관리자에게 문의합니다.

영어 원문

Displaying information about a user logged in to a host

Use this procedure to view information about a specific user logged in to a remote host.

To display information about a single user logged in to a remote host:

  1. Log in to the remote host with which you want to communicate.

  2. To display information about user brown on host alcatraz, type:

text
finger brown@alcatraz

Information similar to the following is displayed:

text
Login name:  brown
Directory:  /home/brown     Shell:  /home/bin/xinit -L -n Startup
On since May 8 07:13:49 on console
No Plan.

Your system administrator can set up your system so that the finger command works differently. If you encounter any problems using the finger command, contact your system administrator.