The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Moving files not directory. senthil_is Shell Programming and Scripting 1 05-09-2008 01:21 AM
Moving specific files Stud33 Shell Programming and Scripting 4 03-31-2007 09:50 PM
Moving Files iAm4Free Shell Programming and Scripting 5 03-28-2007 04:13 AM
moving between vi files aya_r Shell Programming and Scripting 2 08-23-2005 04:36 AM
moving only files... sskb UNIX for Dummies Questions & Answers 12 11-19-2001 03:28 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-30-2003
rocker40 rocker40 is offline
Registered User
  
 

Join Date: Oct 2003
Location: Pratt,KS
Posts: 78
moving files ??

I am using AIX Version 5.1
If I moved a file say using this command [mv file.exp /rd/rpt]
but the directory rpt did not exist would this dump the file?
I went back to the directory I was moving it from and the file was gone and when I looked in the directory I moved it to of course that directory was not found. Is there anyway to remedy this problem?
Thanks
  #2 (permalink)  
Old 10-30-2003
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,407
Your file should be in the /rd directory but now named "rpt" ---- unless you did another mv file2.exp /rd/rpt which would over-write it.
  #3 (permalink)  
Old 10-30-2003
rocker40 rocker40 is offline
Registered User
  
 

Join Date: Oct 2003
Location: Pratt,KS
Posts: 78
so whats gone is gone?

so the second time I did that the file before is replaced the next one I out in and the first one is gone?
I understand I believe
Thank you
  #4 (permalink)  
Old 10-30-2003
fundidor fundidor is offline
Registered User
  
 

Join Date: Oct 2003
Location: Rio de Janeiro - Brazil
Posts: 37
Hi!

This is my first post. Please excuse me for asking such a poor question.

I am a MacOsX user and have learned by myself how to log to my other Macs on a Network. (typing ssh bernardo@192.168.0.1 on the unix terminal).

Could any of you guys teach me how to move files from one computer to another once I have logged in?
  #5 (permalink)  
Old 11-02-2003
tommy tommy is offline
Registered User
  
 

Join Date: Nov 2003
Location: Finland
Posts: 31
Try "scp /sourcedirectory/sourcefile user@targethost:/targetdirectory/targetfile".

To get more information type "scp" w/o any options or refer to www.openssh.org's
man pages.

Hope this helped.

---Tommy
  #6 (permalink)  
Old 11-02-2003
fundidor fundidor is offline
Registered User
  
 

Join Date: Oct 2003
Location: Rio de Janeiro - Brazil
Posts: 37
Hi Tommy!

Thanks for replying!

Letīs say that I am logged using my computer at home, with my another computer at work, and imagine that the IP address is 192.168.0.1 (just an example).

Would this be the comand line?

scp /users/bernardo/desktop/myfile.txt bernardo@192.168.0.1:/users/bernardo/desktop/myfile.txt

Thanks again!

Bernardo Hohl
Rio de Janeiro - Brazil
  #7 (permalink)  
Old 11-03-2003
tommy tommy is offline
Registered User
  
 

Join Date: Nov 2003
Location: Finland
Posts: 31
Quote:
scp /users/bernardo/desktop/myfile.txt bernardo@192.168.0.1:/users/bernardo/desktop/myfile.txt
Yes, that should work if you have ssh (and scp) installed in both servers and you have necessary port opened in your firewall (normally tcp 22, opened by client side).

---Tommy

Last edited by tommy; 11-03-2003 at 11:08 AM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0