LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   moving files & directories (https://www.linuxquestions.org/questions/linux-newbie-8/moving-files-and-directories-4175462657/)

textillis 05-20-2013 03:14 AM

moving files & directories
 
I've tried to the man file and can't make head nor tail of it.

Could someone please take a look at this and tell me why i can't move the contents of a directory into its parent?

Like i tried to here:

Code:

bash-4.2# pwd
/home/tex/slackware/packages/source
bash-4.2# dir
Xfburn                          libdvd                    libisofs
Xfce-Theme-Manager          libisoburn                    libisofs-1.2.4.tar.gz
Xfce-Theme-Manager.tar.gz  libisoburn-1.2.4.tar.gz  xfburn-0.4.3.tar.bz2
bash-4.2# cd Xfburn
bash-4.2# dir
xfburn        xfburn.tar.gz  xfburn.tar.gz.asc
bash-4.2# mv Xfce-Theme-Manager/* source
mv: cannot stat 'Xfce-Theme-Manager/*': No such file or directory
bash-4.2#

Thanks,
Tex

fortran 05-20-2013 03:28 AM

You are in the directory Xfburn. There is no directory name Xfce-Theme-Manager inside Xfburn. Xfce-Theme-Manager is a directory parallel to Xfburn

If you have executed this command
Code:

bash-4.2# cd Xfburn
Now later why don't you try this.
Code:

bash-4.2# mv ../Xfce-Theme-Manager/* destination/directory

textillis 05-20-2013 04:12 AM

Quote:

Originally Posted by pavi_kanetkar (Post 4954727)
You are in the directory Xfburn. There is no directory name Xfce-Theme-Manager inside Xfburn. Xfce-Theme-Manager is a directory parallel to Xfburn

If you have executed this command
Code:

bash-4.2# cd Xfburn
Now later why don't you try this.
Code:

bash-4.2# mv ../Xfce-Theme-Manager/* destination/directory

Thanks kindly Pavi; that works :)


All times are GMT -5. The time now is 12:08 AM.