July 19, 201510 yr I have a few basic Linux questions. I thought lets ask it at the unRAID forums cause unRAID has a awesome helping community. How to list certain files (like in dos "list James*")? How to find and move a couple of files automated? How to rsync 2 directories? I'll do some googling myself but first my nephew's birthday...
July 19, 201510 yr Author To copy a directory to another directory i did: rsync -rvau --append * /mnt/disk2/Movies -r --> recursive -v --> verbose -a --> archive -u --append --> append data onto shorter files Is there a better way?
July 19, 201510 yr For general console help, there is the FAQ, unRAID Console Questions section. It's old and incomplete, but does have a few tips. The Console commands wiki page has a number of commands, not sure if the one you want is there. I used to use list constantly in my DOS days! Nothing like it so far that I can find, but with the less command, you can do a fair amount of viewing. I currently use Total Commander from Windows, with its built-in lister and viewer. For rsync options, there's a Methods and Tools section (of the Upgrade guide) that has suggested rsync commands.
July 19, 201510 yr Author Thanks for the links! Interesting read. If you do for example this in your movie directory: ls | grep james* You see al movies with the word "james" in it. Find out this afternoon.
July 19, 201510 yr Thanks for the links! Interesting read. If you do for example this in your movie directory: ls | grep james* You see al movies with the word "james" in it. Find out this afternoon. Google the linux find command.
July 19, 201510 yr A simple ls James* will work too. But be aware, that linux is case sensitive! So the above command won't list files starting with a lowercase james.
July 19, 201510 yr Author A simple ls James* will work too. But be aware, that linux is case sensitive! So the above command won't list files starting with a lowercase james. That work too? I'll try.
July 20, 201510 yr A simple ls James* will work too. But be aware, that linux is case sensitive! So the above command won't list files starting with a lowercase james. find . -iname "james*" is case insensitive.
July 26, 201510 yr Author Did some testing with the "find" command. I must say a very powerful command! find /mnt/cache/directory\ tocopyfrom/ -name '*group.mkv' -exec mv -v {} /mnt/disk2/directory\ \tocopyto/ \;
Archived
This topic is now archived and is closed to further replies.