LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 12-08-2014, 08:17 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Moving directory as well


I am using this as a custom action for Thunar.

But it is moving the directory also.

How can I stop that from happening.

Code:
mv %F %D /mnt/sdb1/Linux_Files/
 
Old 12-08-2014, 08:48 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
I don't know the first thing about Thunar, hence I have no idea what %F or %D may represent in this context, but:
Code:
mv foo bar
...will move foo to bar. If both are directories, the former will end up as a subdirectory of the latter. However:
Code:
mv foo/* bar
...will move all items (files and subdirectories) in foo to bar, but the directory itself (foo) will not be moved.

In other words, you may want to add /* to the parameter representing the source directory.
 
Old 12-08-2014, 09:36 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Thanks very much.

This did the trick.

mv %f %d/* /mnt/sdb1/Linux_Files/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Invoke root directory owner/group while moving file/directory yogesh_attarde Linux - Security 5 04-14-2014 11:36 PM
Moving my directory okayload Linux - General 4 08-12-2007 06:09 PM
Moving my directory okayload Linux - Distributions 1 08-11-2007 07:16 AM
moving directory to another harddrive monkeyfoo Linux - General 6 04-22-2006 09:47 AM
Moving A Directory. reesee Linux - Newbie 6 02-04-2004 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration