Created
December 20, 2017 15:58
-
-
Save jayjariwala/0250fc6c38fcd8168a1a093045420fc2 to your computer and use it in GitHub Desktop.
SFTP commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To check the current directory | |
pwd - remote system | |
lpwd - local system | |
cd, lcd | |
# Copy the file from remote to local | |
get filename | |
~from local to remote | |
put filename | |
#copy the folder with recursive files from remote to local | |
get -r FolderName | |
~ From local to remote | |
put -r FolderName | |
#Copy the folder with keeping the same permission from remote to local | |
get -Pr FolderName | |
df -h | |
! | |
df -h | |
exit | |
#file manipulatons | |
chown userID file | |
get /etc/passwd | |
!less passwd | |
~ change group ID | |
chgrp groupID file | |
get /etc/group | |
!less group | |
~chmod works the normal way | |
chmod 777 publicFile | |
all the following commands works the normal way | |
ln | |
rm | |
rmdir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment