What are some basic SFTP copmmands?

SFTP (Secure File Transfer Protocol) is the safest file transfer protocol used to access, manage, and transfer files over an entirely secured SSH network.
Some of the common used SFTP commands are:
  • You can see your present remote working directory with the help of the pwd command.
sftp> pwd
  • Use the lpwd command to view the local present working directory.
sftp> lpwd
  •  Use the ls command to see the list of files & directories present inside the remote SFTP.
sftp> ls home/user/path
  •  Use the lls command to see the list of files & directories present inside the local server.
sftp> lls home/user/path
  • To browse through the directories, you can use the cd command.
sftp> cd home/user/path
  • Use the lcd command to change the present working directory of your local server.
sftp> lcd home/user/path
Some other useful SFTP commands.
  • To get the information about the remote server :
sftp> df
  • To change the file permission of a file on the remote server :
sftp> chmod 644 filename.php
  • To create a new directory on the remote server :
sftp> mkdir directory_name
  • To delete a file on the remote server :
sftp> rm filename.php
  • To rename a file on the remote server :
sftp> rename filaname.php new_filename.php
  • To delete an empty directory on the remote server :
sftp> rmdir directory_name
To learn more about SFTP and its commands, check this blog.
  • best PuTTY Commands for sftp, commands, ssh, ftp command for beginner, FileZilla, FTP, local server command, filezilla top commands, best sftp commands, ftp top commands, SFTP, sftp commands for beginners, remote server sftp command, server, linux commands, use of Secure ftp command, remote server top commands, scp commands for beginners, ssh top commands, use of sftp commands with example, putty, sftp commands example, how to use sftp commands
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are some Basic SSH commands?

List of some basic SSH commands are: ls – This command is used to list all files and...

How to connect to SSH?

Putty is an open-source SSH client used to connect to a remote server. This article describes how...

20 Basic Linux Commands and their Uses.

Following are the top 20 basic Linux Commands with Live Examples that would definitely help you...

How to Block/Unblock IPs from SSH?

You can easily block or unblock IPs  from SSH. #1. Block An IP Address from SSH First of all,...

How to install CpCleaner in cPanel through SSH?

CpCleaner is a cPanel plugin created to give cPanel users the option to clean junk files that...