Some simple sftp commands
Some standard commands for command line SFTP include:
cdChange the directory on the remote computer chmodChange the permissions of files on the remote computer chownChange the owner of files on the remote computer dir(orls)List the files in the current directory on the remote computer exit(orquit)Close the connection to the remote computer and exit SFTP getCopy a file from the remote computer to the local computer help(or?)Get help on the use of SFTP commands lcdChange the directory on the local computer llsSee a list of the files in the current directory on the local computer lmkdirCreate a directory on the local computer ln(orsymlink)Create a symbolic link for a file on the remote computer lpwdShow the current directory (present working directory) on the local computer lumaskChange the local umask value mkdirCreate a directory on the remote computer putCopy a file from the local computer to the remote computer pwdShow the current directory (present working directory) on the remote computer renameRename a file on the remote host rmDelete files from the remote computer rmdirRemove a directory on the remote host (the directory usually has to be empty) versionDisplay the SFTP version !In Unix, exit to the shell prompt, where you can enter commands. Enter exitto get back to SFTP. If you follow!with a command (e.g.,!pwd), SFTP will execute the command without dropping you to the Unix prompt.
.