MvL Posted July 19, 2015 Share Posted July 19, 2015 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... Quote Link to comment
MvL Posted July 19, 2015 Author Share Posted July 19, 2015 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? Quote Link to comment
RobJ Posted July 19, 2015 Share Posted July 19, 2015 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. Quote Link to comment
MvL Posted July 19, 2015 Author Share Posted July 19, 2015 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. Quote Link to comment
trurl Posted July 19, 2015 Share Posted July 19, 2015 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. Quote Link to comment
SlrG Posted July 19, 2015 Share Posted July 19, 2015 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. Quote Link to comment
MvL Posted July 19, 2015 Author Share Posted July 19, 2015 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. Quote Link to comment
sparklyballs Posted July 20, 2015 Share Posted July 20, 2015 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. Quote Link to comment
MvL Posted July 23, 2015 Author Share Posted July 23, 2015 So "-name" is case sensitive and ""-iname" not? Interesting... Quote Link to comment
MvL Posted July 26, 2015 Author Share Posted July 26, 2015 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/ \; Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.