PDA

View Full Version : A couple of unix questions


agent_js03
09-28-2006, 04:42 PM
Hello.

I am a computer science student and I am required to test my applications on a unix server using PuTTy. I was wondering, what commands are necessary to copy a file from my hard disk to the unix server and vice versa? I know cp, but what should I add onto it to do this task? My other question is is there an easier version of the "vi" program out there? The one we use on the server is extremely frustrating and hard to use. I use another version of that program in terminal in Mac os x and that one seems to work well. Anybody know what I am talking about and can clue me in?

Thanks in advance.

juniper
10-03-2006, 04:58 PM
I beleive you are referring to either Pico or EMACS, Also you should use scp opposed to cp it is a secured version of cp but you need ssh running.

example

scp ./textfiletocopy username@remotemachinename:folder/testfiletocopy

for more info on any command type

man andthencommand

if you dont know the command on doing something use

apropos somedescriptiveword

and it will search through the description portion of all the man pages for that word.

sburtchin
10-13-2006, 03:52 AM
"vi" is extremely frustrating only until you learn to use it, which can take quite a while unfortunately. If you plan to do a lot of unix work, it is well worth the effort to learn because it is ideally suited for its application. It's just the fastest way to edit scripts IMO and it is universal.