Common sftp commands are: 1. pwd looks at the directory of the remote server, which is the default current directory of the sftp server; 2. lpwd looks at the Linux local directory; 3. ls looks at the current directory under the sftp server. ; 4. lls looks in the current directory of linux.
Commonly used commands for sftp are:
1. sftp user@ip
You need to use sftp, of course you have to log in to the sftp server. After executing the above command in the Linux shell, the Linux shell will prompt the user to enter the password. Let's enter the password. In this way, the sftp connection is successfully established.
2. help
After establishing the connection, the $ in the linux shell is programmed sftp>, which is also correct. Now execute the following help to see which commands sftp supports.
3. pwd and lpwd
pwd looks at the directory of the remote server, which is the default current directory of the sftp server. lpwd looks at the linux local directory.
4. ls and lls
ls looks at the stuff in the current directory of the sftp server, and lls looks at the stuff in the current directory of linux.
5. put a.txt
This is to upload the a.txt file in the current directory of linux to the current directory of the sftp server.
6. get b.txt
This is to download the b.txt file in the current directory of the SFTP server to the current directory of Linux.
7. !command
This refers to executing the command command on linux. For example, !ls lists the stuff in the current directory of linux, !rm a. txt is to delete the a.txt file in the current directory of linux.
This command is very useful, because when you enter the command after sftp>, the default value is for the sftp server, so executing rm a.txt deletes the a.txt file on the sftp server, not the local linux a.txt file on.
8. EXIT and QUIT
Exit.
Related learning recommendations: linux video tutorial
The above is the detailed content of What are the common commands for sftp?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver Mac version
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software