Find the answer to your Linux question:
Results 1 to 4 of 4
Hello All, if I cannot solve my odd GUI issue (in the topic 'Runlevel') then I must reinstall Fedora But I have some very important files I need to save. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    57

    Move Files in CMD Line


    Hello All,

    if I cannot solve my odd GUI issue (in the topic 'Runlevel') then I must reinstall Fedora

    But I have some very important files I need to save.

    What commands can I run to copy these files to a webserver (my net still works) or a thumbdrive?

    Thanks

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    The "copy" command is 'cp'. So for example, to copy a single file, you could do:
    Code:
    cp file /path/to/new/location/
    To copy an entire directory, you use the '-R' flag:
    Code:
    cp -R directory/ /path/to/new/location/
    Best of luck.

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    57
    Is there any way to copy it to a remote server (say FTP)

  4. #4
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Ah, yes indeed. The commandline FTP client is called (gasp!) "ftp".
    Code:
     cd /directory/where/the/file/is
    ftp <server to upload to>
    [ enter username ]
    [ enter password ]
    put <name of file>
    exit
    That will upload it for you.


    NOTE: You may have to change directory before uploading the file on the server (into /www or something). If this is the case, you can just the 'cd' command and it will change your directory on the server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •