Data Movement in Linux – Often No More than Renaming

Strictly speaking the file still has not moved.  The data bits are still on the same part of the disk where they were in the first place originally.  The file specification ( the-directory-path plus the filename) that you use to talk about the file is different so that it appears to have moved , whereas it has not in actuality.

In early versions of Unix , the users were not allowed to use mv to move a file from one disk partition to another , you could only copy it ny using the  cp(1) command.  Linux allows you to use the mv command to move a file anyplace.  Normally , mv leaves the data in place and just changes the file name or the directory where the name is placed.  But when the file is moved across the disk partitions ( for example form /usr to /home in a lot of Linux systems) , the data is copied to the new disk partition, the new name is put in place.  In that partition’s directory structure, and the name and file data are removed from the old disk partition.

Car Auto Carrier Sudbury

Badger Linux Net

wwww.badgerlinux.net

Moving and Copying Files and Directories

The command for moving and opying directories and files are mv for moving and cp for copy.  If you want to rename a file,  you can use the move command .  No you are not really moving the file, but in both Linux and Unix , the developers realized that renaming something was a lot like moving it .

Hence the format of the move command is    my < source>  <destination>

With the example files, you could move the file named stupidkirk to a file named  evenmorestupid  by executing the following command

mv  stupidkirk evenmorestupid

This leaves the file in the same directory, but changes its name to  evenmorestupid .

Hence the file is not moved – it is just simply renamed .

Next you can try moving the evenmorestupid  file to the top of the stupidpeople directory.  To do this you first have to move the file up and then move it to the stupidpeople  directory.

This can be done with one simple command :

mv evenmorestupid ../ stupidpeople

Lastly note that the destination file uses the ..( or parent) directory designation.  This tells Linux to go up one directory level and look for a directory called stupidpeople . and then put the file into that directory with the name stupidpeople,  as you did not specify any other name.

Badger Linux Net

wwww.badgerlinux.net


Colloborative Linux Distro

These individual distros and their partners hoped that other distros of Linux would be marked under their respective brands, but would be powered by a consistent United Linux which mean that the user could be confident that the user would be published with a United Linux and thus a measure of consistency and user functionally would easily exist across a customer and user base – for the first time in the Linux unix user base and communities.

Thus the UI ( United Linux) brand would thus of reduced the amount of mainstream Linux distros to the well managed group of five (5) – that at the time being Red Hat, Mandrake , United ,Debian and Slackware. The bets were on that time that in the enterprise sector tht Re Hat and United Linux would come to dominate. Well at the time those were the predictions of the Linux market share dominant distros.

Badger Linux Net

wwww.badgerlinux.net