Linux openSUSE Terminal Tutorial for Beginners

December 8, 2017 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Moving

  1. 6. Moving Stuff

    Next Experiments the Dynamics of Files and Directories
    And in this Moving dimension Files or Directories are taken as the Same.
    * Again you find here the ‘mv‘ Command as a Contraction of ‘Move‘ *
    So now for instance Make and Empty ‘bottle’:

    touch ~/livingroom/bottle

    And then we Displace it in another Room:

    mv ~/livingroom/bottle ~/bedroom/

    Then verify Listing the ‘bedroom’ contents:

    ls ~/bedroom/

    And what you Find? The:

    bottle

    Also if only an empty one, sorry :))

    Again you can Move & Rename at the same time like:

    mv ~/bedroom/bottle ~/bathroom/can

    Here we have magically trasformed an empty ‘bottle’ inside the ‘bedroom’ in an empty ‘can’ inside to the ‘bathroom’.
    And as I said in the introduction the Command for Directories works the Same!
    So now ‘Like Alice in the Wonderland’ we Move the Directory ‘livingroom’ we set into the ‘garden’ in a ‘teapot’ in the bedroom!

    mv ~/garden/livingroom ~/bedroom/teapot

    Patiently Verify it with:

    ls ~/bedroom/teapot

    Finding What?

     

    Simple :) An Empty Space!


Tags: , , ,