Skip to content

Instantly share code, notes, and snippets.

@jayjariwala
Created December 20, 2017 15:58
Show Gist options
  • Save jayjariwala/0250fc6c38fcd8168a1a093045420fc2 to your computer and use it in GitHub Desktop.
Save jayjariwala/0250fc6c38fcd8168a1a093045420fc2 to your computer and use it in GitHub Desktop.
SFTP commands
#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