version 1.105, 2008/12/09 03:04:39 |
version 1.106, 2008/12/09 15:35:00 |
|
|
static void |
static void |
help(void) |
help(void) |
{ |
{ |
printf("Available commands:\n"); |
printf("Available commands:\n" |
printf("cd path Change remote directory to 'path'\n"); |
"bye Quit sftp\n" |
printf("lcd path Change local directory to 'path'\n"); |
"cd path Change remote directory to 'path'\n" |
printf("chgrp grp path Change group of file 'path' to 'grp'\n"); |
"chgrp grp path Change group of file 'path' to 'grp'\n" |
printf("chmod mode path Change permissions of file 'path' to 'mode'\n"); |
"chmod mode path Change permissions of file 'path' to 'mode'\n" |
printf("chown own path Change owner of file 'path' to 'own'\n"); |
"chown own path Change owner of file 'path' to 'own'\n" |
printf("df [path] Display statistics for current directory or\n"); |
"df [-hi] [path] Display statistics for current directory or\n" |
printf(" filesystem containing 'path'\n"); |
" filesystem containing 'path'\n" |
printf("help Display this help text\n"); |
"exit Quit sftp\n" |
printf("get remote-path [local-path] Download file\n"); |
"get [-P] remote-path [local-path] Download file\n" |
printf("lls [ls-options [path]] Display local directory listing\n"); |
"help Display this help text\n" |
printf("ln oldpath newpath Symlink remote file\n"); |
"lcd path Change local directory to 'path'\n" |
printf("lmkdir path Create local directory\n"); |
"lls [ls-options [path]] Display local directory listing\n" |
printf("lpwd Print local working directory\n"); |
"lmkdir path Create local directory\n" |
printf("ls [path] Display remote directory listing\n"); |
"ln oldpath newpath Symlink remote file\n" |
printf("lumask umask Set local umask to 'umask'\n"); |
"lpwd Print local working directory\n" |
printf("mkdir path Create remote directory\n"); |
"ls [-1aflnrSt] [path] Display remote directory listing\n" |
printf("progress Toggle display of progress meter\n"); |
"lumask umask Set local umask to 'umask'\n" |
printf("put local-path [remote-path] Upload file\n"); |
"mkdir path Create remote directory\n" |
printf("pwd Display remote working directory\n"); |
"progress Toggle display of progress meter\n" |
printf("exit Quit sftp\n"); |
"put [-P] local-path [remote-path] Upload file\n" |
printf("quit Quit sftp\n"); |
"pwd Display remote working directory\n" |
printf("rename oldpath newpath Rename remote file\n"); |
"quit Quit sftp\n" |
printf("rmdir path Remove remote directory\n"); |
"rename oldpath newpath Rename remote file\n" |
printf("rm path Delete remote file\n"); |
"rm path Delete remote file\n" |
printf("symlink oldpath newpath Symlink remote file\n"); |
"rmdir path Remove remote directory\n" |
printf("version Show SFTP version\n"); |
"symlink oldpath newpath Symlink remote file\n" |
printf("!command Execute 'command' in local shell\n"); |
"version Show SFTP version\n" |
printf("! Escape to local shell\n"); |
"!command Execute 'command' in local shell\n" |
printf("? Synonym for help\n"); |
"! Escape to local shell\n" |
|
"? Synonym for help\n"); |
} |
} |
|
|
static void |
static void |