Skip to main content

Posts

Showing posts from January, 2015

How to Use SVN Command Line Tools in Ubuntu

Prerequisites You have SVN (Subversion) server where your project files will be stored. It also can be installed on same computer where you make your project. You have installed Subversion on local computer where your project is saved. These are some steps you can do. Checkout .  You must set a directory (your project directory) in local computer which files will be stored in SVN repository. $ svn checkout http://yoursvnserver.com/svn/path/to/repo/myproject /home/user/myproject It will create a ".svn" directory inside "/home/user/myproject/" and make "/home/user/myproject" as working copy. Import . This step will copy files from your local project directory to SVN repository. $ svn import /home/user/myproject http://yoursvnserver.com/svn/path/to/repo/myproject   Update or Commit . Update will download changes from SVN repository. Commit will upload files to SVN repository. Update will sync updated files to working copy. For more advance use, yo...

Transfer File Among Linux Servers Using Terminal (Command Line)

When you operate some servers, sometime you need to transfer or copy some files from one server to another. There is command line tool that you can use like SCP. $ scp <file> <username>@<IP address or hostname>:<Destination> for example: $ scp "file.txt" user1@itb.ac.id:/home/user1/files If you want to copy file from remote server to local server just change the command. $ scp <username>@<IP address or hostname>:<Source> <LocalDestination> "LocalDestination" can be set to ' . ' to assign the file to current working directory. ' -r ' parameter can be set to copy directory recursively. Another tool you can use is SFTP. It maintain session so you can move files interactively between servers. $ sftp luki@myserver.com