Posts Tagged ‘unix’
How To Move Files from One Server to Another With SCP SSH
You can easily move files from one server to another with the SCP command.
How To Move Files from One Server to Another With SCP SSH
1. Open an SSH session in Terminal
2. Navigate to files/folder you wish to move
3. Optionally tar.gz the files/folder
4. In Terminal type: scp file.tar.gz user@remote.server.com:/path/to/where/to/want/to/put/file.tar.gz
That will open an SSH tunnel from [...]
Basic SSH and UNIX Commands
Navigation Commands
ls this is the list command, it will list the content of the current directory
ls -alh this lists all files and folders + permissions and sizes in a readable format
cd this is the change directory command used in conjunection with a folder name like this: cd users/foo/ this would take to to the foo [...]
UNIX Command for Unpacking a Tar file to Different Directory
1. Open Terminal
2. Type this command:
tar -xvzf /path/to/tar/file.tar.gz -C /path/to/dir/you/want/files/expanded
the -C in essence changes the file path for the unpacked files.
UNIX Command for Unpacking a Tar file
1. Open Terminal
2. Type: tar -xvzf /path/to/file.tar.gz
( x= extract v=verbose z=(un)compress f=file )
This command will unpack the files to the root directory, replacing any old file that is within its packed structure.













