develog

[bash] sftp 명령어 본문

카테고리 없음

[bash] sftp 명령어

냐옴 2024. 5. 16. 21:46

자주 쓰는 명령어

help                               Display this help text

lls [ls-options [path]]            Display local directory listing
ls [-1afhlnrSt] [path]             Display remote directory listing

lcd path                           Change local directory to 'path'
cd path                            Change remote directory to 'path'

lmkdir path                        Create local directory
mkdir path                         Create remote directory

lpwd                               Print local working directory
pwd                                Display remote working directory

get [-afpR] remote [local]         Download file
put [-afpR] local [remote]         Upload file

reget [-fpR] remote [local]        Resume download file
reput [-fpR] local [remote]        Resume upload file

rename oldpath newpath             Rename remote file
rm path                            Delete remote file
rmdir path                         Remove remote directory

bye                                Quit sftp
exit                               Quit sftp
quit                               Quit sftp

 

sftp help

sftp> help
Available commands:
bye                                Quit sftp
cd path                            Change remote directory to 'path'
chgrp [-h] grp path                Change group of file 'path' to 'grp'
chmod [-h] mode path               Change permissions of file 'path' to 'mode'
chown [-h] own path                Change owner of file 'path' to 'own'
df [-hi] [path]                    Display statistics for current directory or
                                   filesystem containing 'path'
exit                               Quit sftp
get [-afpR] remote [local]         Download file
help                               Display this help text
lcd path                           Change local directory to 'path'
lls [ls-options [path]]            Display local directory listing
lmkdir path                        Create local directory
ln [-s] oldpath newpath            Link remote file (-s for symlink)
lpwd                               Print local working directory
ls [-1afhlnrSt] [path]             Display remote directory listing
lumask umask                       Set local umask to 'umask'
mkdir path                         Create remote directory
progress                           Toggle display of progress meter
put [-afpR] local [remote]         Upload file
pwd                                Display remote working directory
quit                               Quit sftp
reget [-fpR] remote [local]        Resume download file
rename oldpath newpath             Rename remote file
reput [-fpR] local [remote]        Resume upload file
rm path                            Delete remote file
rmdir path                         Remove remote directory
symlink oldpath newpath            Symlink remote file
version                            Show SFTP version
!command                           Execute 'command' in local shell
!                                  Escape to local shell
?                                  Synonym for help
Comments