레이블이 telnet인 게시물을 표시합니다. 모든 게시물 표시
레이블이 telnet인 게시물을 표시합니다. 모든 게시물 표시

4/13/2020

리눅스 통신

** 리눅스 통신


` PING


- ping

- Analyzing network and host connections

- Tracking network performance and managing it

- Testing hardware and software issues


` FTP

- FTP is File Transfer Protocol.

- ftp

- Logging in and establishing a connection with a remote host.

- Upload and download files.

- Navigating through directories.

- Browsing contents of the directories.


- dir : Display files in the current directory remote computer

- cd "dirname" : Change directory to "dirname" on remote computer

- put file : upload 'file' from local to remote computer

- get file : Download 'file' from remote to local computer

- quit : Logout



` Telnet

- telnet

- Connect to a remote Linux computer.

- Run programs remotely and conduct administration.

- Similar to the Remote Desktop found in Windows Machine.


` SSH


- SSH username@ip-address or hostname

- Securely connect to a remote computer

- Compared to Telnet, SSH is more secure


`` Summary

- Communication between Linux/UNIX and other different computers, networks and remote users is possible.

- The ping command checks whether the connection with a hostname or IP-address is working or not. Run 'ping IP address or Hostname' on the terminal.

- FTP is preferred protocol for sending and receiving large files. You can establish a FTP connection with a remote host and then use commands for uploading, downloading files, checking file and browsing them.

- Telnet utility helps you to connect to a remote Linux computer and work on it.

- SSH is a replacement for Telnet and is used by system administrators to control remote Linux servers.

---------------------------------------------------------------------



`` Environment Variables


` Platform = Operating System + Processor

` Variable ?

- Location for storing a value

- Referred to with its symbolic name

- The value stored can be displayed, deleted, edited and re-saved


` Environment Variables ?

- Dynamic values

- Exist in every operating system

- Can be created, edited, saved and deleted

- Gives information about the system behavior

- Change the way software/programs behave


- PATH : This variable contains a colon(:)-separated list of directories in which your system looks for executable files.

- USER : The username

- HOME : Default path to the user's home directory

- EDITOR : Path to the program which edits the content of files

- UID : User's unique ID

- TERM : Default terminal emulator

- SHELL : Shell being used by the user

- ENV : displays all the environment variables


` Accessing Variable values

- echo $VARIABLE


` Creating New Variables

- VARIABLENAME = variablevalue


` Deleting Variables

- unset


`` Summary

- Environment variables govern behavior of programs in your Operating system.

- echo $VARIABLE : To display value of a variable

- env : Displays all environment variables

- VARIABLE_NAME = variable_value : Create a new variable

- unset : Remove a variable

- export Variable = value : To set value of an environment variable

6/19/2007

[Linux] telnet 기본 구문 및 telnet 명령의 명령줄 옵션

** telnet 기본 구문 및 telnet 명령의 명령줄 옵션

telnet [hostname]
(hostname : 원격 컴퓨터 이름, 원격 호스트를 지정하지 않으면, telnet 대화식 명령 모드로 시작됨)

-d : 디버깅을 작동시킨다.

-a : 자동 로그인을 시도한다.

-n tracefile : 추적을 켜고 추적 데이터를 tracefile에 저장한다.

-e escape_char : 세션의 이스케이프 문자를 escape_char가 되도록 설정한다. 인수에서 escape_char 문자가 빠지면, 이 telnet 세션에는 이스케이프 문자가 없게된다.

-l user : 자동 로그인을 위해 사용자 이름(user)을 원격 시스템으로 보낸다. 이 인수는 자동으로
-a 인수를 포함한다.

port : 원격 시스템에 연결될 포트 번호를 나타낸다. 이 인수는 다른 네트워크 프로그램을 지정하는 데 사용된다. 지정하지 않으면, telnet 기본 telnet 포트에 연결된다.

telnet : 세션 예