Use secuecrt to interact files between the local host and remote host

Source: Internet
Author: User
Glossary

Local host: Run secuecrt to manage remote Linux or Unix machines (generally Windows)

Remote Host: the host managed by secuecrt (generally Linux or UNIX)

1. Enable SFTP

2. Introduction to SFTP commands

Serial number

Command

Purpose

1

ASCII

Set transmission mode to ASCII

2

Binary

Set the transmission mode to binary

3

CD

Change the default directory

4

Detail

Displays detailed information about a remote directory.

5

Ldetai

Displays detailed information about the local directory.

6

Ls

Display remote file or directory list

7

Lls

Display local file or directory list

8

Mkdir

Create a directory on the remote host

9

Lmkdir

Create a directory on the local host

10

MV

Move files or directories on a remote host

11

PWD

Displays the current path of the remote host.

12

Lpwd

Displays the current path of the local host.

13

Rmdir

Delete remote directory

14

Lrmdir

Delete local directory

15

Rm

Delete remote files

16

Lrm

Delete local files

17

Put

Upload the file master on the local host to a remote

18

Get

Download files from the remote host to a Local Machine

3. transfer files on the local host to the remote host

Row number

Command and output result

1

SFTP> lpwd

2

C:/users/Administrator/Documents

3

SFTP> LCD D :\

4

SFTP> lls orachk-2.2.5.zip

5

Orachk-2.2.5.zip

6

SFTP> pwd

7

/Root

8

SFTP> Cd/home/Oracle

9

SFTP> pwd

10

/Home/Oracle

11

SFTP> mkdir limit HK

12

SFTP> Cd memory HK

13

SFTP> pwd

14

/Home/Oracle/mongohk

15

SFTP> ls

16

SFTP> put orachk-2.2.5.zip

17

Uploading orachk-2.2.5.zip to/home/Oracle/20.hk/orachk-2.2.5.zip
100% 5635kb 5635kb/s 00:00:00
D:/orachk-2.2.5.zip: 5770368 bytes transferred in 0 seconds (5635 kb/s)

18

SFTP> ls

19

Orachk-2.2.5.zip

Upload successful.

 

4. transfer files on the remote host to the local host

Row number

Command and output result

1

SFTP> LCD D :\

2

SFTP> Get/home/Oracle/orachk/orachk_infa_infadb_073014_001038.zip

3

Downloading export hk_infa_infadb_073014_001038.zip from/home/Oracle/orachk/orachk_infa_infadb_073014_001038.zip
100% 639kb 639kb/s 00:00:00
/Home/Oracle/orachk/orachk_infa_infadb_073014_001038.zip: 655172 bytes transferred in 0 seconds (639 kb/s)

4

SFTP> lls D: \ orachk_infa_infadb_073014_001038.zip

5

Orachk_infa_infadb_073014_001038.zip

Download successful.


This article focuses on the system architecture, operating system, storage devices, databases, middleware, and applications.

Join the system performance optimization professional group to discuss performance optimization technologies. GROUP: 258187244

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.