How to move a file to the rear using the Terminal

Hello world

I just recently started to learn how to use the terminal in OS X I learned how to move files from one directory to another, but I don't know how to move a file back again. Here is an example:

(I'm already in the Desktop directory) In my office, I have a folder named "music" and a file called "algo.rtf". In order to move the "algo.rtf" file in the "music" folder, I type the following command: "musica algo.rtf mv / '. That works perfectly fine, when I check, the file is now in the new folder.

But what happens if I want to move the file "algo.rtf" which is now in "musica" on the desktop? I can't understand. I tried the following:

'cd musica' (so now I'm in the folder where the file is) and from there I typed: "mv algo.rtf Desktop /" (but then it is said; no such directory not found)

I understand that he says no "found" because it is looking for a folder named "Desktop" in the folder named "music" and this is why it does not work.

But that still doesn't help me much because I still don't know how to bring it back to "Desktop". If anyone knows how to do this, I would be very happy for your response!

Thank you.

Use:

MV algo.rtf...

(140623)

Tags: Mac OS & System Software

Similar Questions

  • How to move audio files of the program in the time line?

    All of a sudden I can't move audio files of the program in the time line - I read that Adobe said in previous forums click with the right button on the A1, but nothing in this discussion has helped me solve this problem. It was working before. I am a beginner user, so I could be missing something really obvious. My time scale is in blue. I noticed in some tutorial videos that it was yellow.

    Hi lauranoel,

    The reason is due to a bug, explained here: FAQ: why no audio or video will not at the track where I drop?

    Next time, just remove and In or Out to mark, and then drag the clip.

    Thank you

    Kevin

  • How to move a file in the cc Web site?

    I have some of my belongings organized into collections (folders), and now I want to move an item in one of the folders.  How do I do that?

    To move a file in a folder in the creative cloud, follow these steps:

    1. Select the file, and then click the move (the icon to the left of the trash can) in the toolbar.
    2. In the Select A Destination Collection dialog box, select a folder.
    3. Click on move.
  • How can I configure the folder in which a movie TS file stores the report?

    How can I configure the folder in which a movie TS file stores the report?

    Thank you

    Too bad... I found it

    Thank you

  • Windows Live Mail - How can I move old files to the newly created folders mail?

    How can I move old files to the newly created folders mail?

    original title: windows live mail/vista/records
    1. Simple click on the header of a message to select it.
    2. CTRL + F3 will highlight all.
    3. Right-click on highlighted messages and drag them to the new folder.
    4. Release the mouse button and select copy here.
    5. If the move is successful, delete the original folder if you wish.
  • Moving files: I am wanting to put the existing files to a new folder, how do I create a new folder and move those file to the new folder?

    I am wanting to put the existing files to a new folder, how do I create a new folder and move those file to the new folder?

    I am wanting to put the existing files to a new folder, how do I create a new folder and move those file to the new folder?

    Hello

    Go t the location where you want to create the new folder, right-click and select new/folder. Name the folder.

    Go to where the files, select the files and then use the right mouse button to drag the files into the new folder. When you drop the file, a pop-up menu, select the Move option.

    Let us know if you have any other questions.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?

    Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?

    Hello.

    Please try following steps to recreate a link to the PDF files.

    1. move and place the PDF file all missing in the any folder to the new computer.

    2 open the Control Panel file Muse and hit open assets of Windows > assets

    3. right click on a missing PDF file and choose repeat the link.

    4. Select the correct file to recreate a link and it will connect all the missing files in the folder.

    Let me know if you were talking about something else.

    Concerning

    Vivek

  • How to send a file to the cloud?

    (1) how to send a file to the cloud?

    (2) at - it a difficulty to find and recover a file that has been sent to the cloud? If the use is similar to the use of an external hard drive, I don't mind.

    The following contains information on how to activate and use iCloud drive. Note that with iCloud as it exists currently with OS X El Capitan, for any file stored in iCloud drive a local copy is also stored on your Mac.

    iCloud Drive FAQ - Apple Support

  • How to move my taskbar to the side down

    How to move my taskbar to the side down

    Hello

    Right-click on the taskbar and make sure lock the taskbar don't are NOT checked.

    On the left, click on an empty area, and then drag to the bottom.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How read datalog multiple files at the same time?

    Hello friends...

    can someone help me to show how read datalog multiple files at the same time?

    Here is the example of my case.

    I have 500 files in a folder. each file contains a waveform and its setting.

    and then I want to do a card spectral these files, because these files have been saved in the order.

    the point is to know how to read these 500 files at once? I made a program to read these files, but the program can read these files in one by one. So it is very uncomfortable to read 500 files one by one. can someone help me solve this problem? Thank you. I hope you can show me the program. Thank you again...

    Hi jojo,

    Well, in the range of functions daughter, you will find a function to list the contents of the folder. This allows to get the names of all the files datalog, and then use a loop FOR to read.

    No one is obliged to provide 500 names of files manually - that's why we use a programming language to let the computer do the stupid work

  • How to open a file with the extension .odg using Vista?

    How to open a file with the extension .odg using Vista?

    Hi Defiant503,

    Thank you for visiting the forums of answers.microsoft.com.

    I did some research and a file ending with .odg is an OpenDocument Document OpenOffice/StarOffice (Ver 2) of graphics by Sun Microsystems, Inc.    This means that in order to open this file, you will need this program to open it.  You will not be able to open this file with Vista.

    I hope this information helps.

    Kavita M
    Microsoft Answers Support Engineer
    Visit the Microsoft Answers Feedback Forum site
    and let us know what you think.

  • I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    Hi sindres79946597,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.

    Now, reboot your system, when you open multiple PDFs that all will open in a new window so that you can easily compare.

    Kind regards
    Nicos

  • How to open a file with the extension x3f (sigma)

    How to open a file with the extension x3f (sigma)?

    Doesn't look good: Lightroom / Camera Raw: Sigma SD1 - when Merrill sensors will benefit, please!

  • How to share several files at the same time?

    iI am trying to share a number of edited files and sending one at a time takes too much time. How to share several files at the same time?

    Yes, you can select and send/share several files at once.

    Start https://cloud.acrobat.com/send. Click Select files to send and then follow the instructions in file selection. If you want to add more files, simply click on add files:

    You can include up to 50 files by "transaction".

  • How can I transfer files to the cloud?

    How can I transfer files to the cloud?

    The first thing to do is to transfer a copy of the file / files out of your Onedrive account to your computer.
    Then go to https://cloud.acrobat.com/ where you can sign if necessary.
    Then, download the files that you want to the section "Files" of your account.

    Submit a Word file to PDF Pack you'll want the file / files available on their computer for submission to the subscription to the service.

    Be well...

Maybe you are looking for