- To: SLUG <slug@xxxxxxxxxxx>
- Subject: [SLUG] Merging two physical directories using possibly using ln-s and simple moving question
- From: Joel Heenan <joel.heenan@xxxxxxxxx>
- Date: Fri, 8 Jul 2005 10:38:09 +1000
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=E7E7Y0QPJDI5r+kGtykVPsVSvVaBzuHOQpynB3zPMHt5XStlnbFO/A8GPuh3GNNtH1zAmIs6BkmlZWcHN8FmEjH1h9k0kxO+GGlRuSYq3TB5hQ6iKc7VfBjqNPLNiR9Y5BxsbpFaAXKY4UCsVMg91yMSv7HwI4Pm2aINQX5fX3M=
- Reply-to: joelh@xxxxxxxxxxxxxxxxxxx
Slug,
Two embarassingly simple questions.
First, I have two directories with music files. I want to have them
appear as one directory to the filesystem, but actually be in two
physical locations (its too large for one disk). so I have
/home/media/music/ and /misc/media/music/ and I want all the
directories in /misc/media/music to appear in /home/media/music.
I thought one way would be to recursively ln-s the directories, and
then cron this operation. I am thinking there is a better way though.
What are your thoughts?
Second question: back in my windows days I would use the GUI to do
tasks like grab all the files created yesterday and move to this
directory. In a linux terminal I can't work out an easy way to do
this. One way is
find -ctime 1 | xargs mv
But that is very inefficient, and not particularly easy to type or
remember. Another way is to open norton commander or a variant and use
that, but call me crazy I still reckon this task and other similar
tasks are just easier with a GUI. Would you agree with that or do you
have solutions to these tasks in command form?
Joel