Anda di halaman 1dari 2

-------------SFTP COMMANDS:

-------------Connecting SFTP:
--------------[root@tecmint ~]# sftp tecmint@27.48.137.6
Connecting to 27.48.137.6...
tecmint@27.48.137.6's password:
sftp>
Getting Help:
------------sftp> ?
Available commands:
cd path
lcd path
chgrp grp path
chmod mode path
chown own path
help
get remote-path [local-path]
lls [ls-options [path]]
ln oldpath newpath
lmkdir path
lpwd
ls [path]
lumask umask
mkdir path
put local-path [remote-path]
pwd
exit
quit
rename oldpath newpath
rmdir path
rm path
symlink oldpath newpath
version
!command
!
?

Change remote directory to 'path'


Change local directory to 'path'
Change group of file 'path' to 'grp'
Change permissions of file 'path' to 'mode'
Change owner of file 'path' to 'own'
Display this help text
Download file
Display local directory listing
Symlink remote file
Create local directory
Print local working directory
Display remote directory listing
Set local umask to 'umask'
Create remote directory
Upload file
Display remote working directory
Quit sftp
Quit sftp
Rename remote file
Remove remote directory
Delete remote file
Symlink remote file
Show SFTP version
Execute 'command' in local shell
Escape to local shell
Synonym for help

Check Present Working Directory:


-------------------------------sftp> lpwd
Local working directory: /
sftp> pwd
Remote working directory: /tecmint/
Listing Files:
-------------sftp> ls
sftp> lls
Upload Files:
------------sftp> put local.profile
Uploading local.profile to /tecmint/local.profile
Upload Multiple Files:
---------------------sftp> mput *.xls

Download Files:
--------------sftp> get SettlementReport_1-10th.xls
Fetching /tecmint/SettlementReport_1-10th.xls to SettlementReport_1-10th.xls
sftp> mget *.xls
Switching Directories:
---------------------sftp> cd test
sftp>
sftp> lcd Documents
Create Directories:
------------------sftp> mkdir test
sftp> lmkdir Documents
Remove Directories:
------------------sftp> rm Report.xls
sftp> rmdir sub1

Anda mungkin juga menyukai