Accessing Rackspace Cloud Sites FTP from Command Line Interface in Mac is easy. But with OS X 10.8 you have update some parts to get it fully working from CLI. This is only for Mac, more preciously for OS X 10.8. Windows PC users can use this method, which is almost same for Accessing Rackspace Cloud Sites FTP from Command Line Interface.
Accessing Rackspace Cloud Sites FTP from Command Line Interface : Setup
Everyone knows that Rackspace Cloud Sites is an aPaaS and has no root access. But you can use some commands and some scripts for your work, mostly they are sufficient, and that makes this accessing Rackspace Cloud Sites FTP from Command Line Interface in Mac guide unique. First, we are using iTerm2 and for proper setup please follow this guide for Fixing UNIX Commands After OSX 10.8 Updates. We are using tmux as shell, it is not bash.
Accessing Rackspace Cloud Sites FTP from Command Line Interface : The commands
Simply use sftp and hit the return key, it will itself give you the hints for usage :
So to login to your account; you command will be :
---
1 | sftp yourRacspaceUserName@YourRackspaceCloudSitesIP |
Example is, if my username was DonkeyAbhishek; and IP was 56.98.765.876 then the command would be :
1 | sftp DonkeyAbhishek@56.98.765.876 |
All other commands are exactly the same like that previous guide for Windows PC. Here are all the commands (bold are the commands) :
- bye Quit sftp
- cd path Change remote directory to ‘path’
- chgrp grp path Change group of file ‘path’ to ‘grp’
- chmod mode path Change permissions of file ‘path’ to ‘mode’
- chown 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 [-Ppr] remote [local] Download file
- help Display this type of 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 [-Ppr] local [remote] Upload file
- pwd Display remote working directory
- quit Quit sftp
- rename oldpath newpath Rename remote file
- rm path Delete remote file
- rmdir path Remove remote directory
- symlink oldpath newpathSymlink remote file
- version Show SFTP version
- !command Execute ‘command’ in local shell
- ! Escape to local shell
- ? Synonym for help