On 2023-03-10 20:11, Per Jessen wrote:
Carlos E. R. wrote:
On 2023-03-10 09:26, Per Jessen wrote:
Carlos E. R. wrote:
copying files with 'mc' is comparable to using rsync.
Okay, I'll take your word for it, although it makes me wonder why I can't just use rsync.
Because you have to concoct a long command line, so long I have to look into my file of recipes and paste it? :-)
That sounds like a personal problem :-) I rarely need more than :
rsync -av source dest.
I use rsync --archive --acls --xattrs --hard-links --sparse \ --stats --human-readable --checksum \ source/ dest
rsync has advantages for big copy jobs.
Well, what else do you use rsync for? I know of two exceptions
Smaller jobs. I don't use rsync on small jobs, I use 'mc'.
* when I need to update an executable that is in use. * when I need to update a file I don't have access to (without sudo).
Oh, mc can move instead of copy.
Really?? Wow.
rsync can't.
For the last week or so, I have been moving a lot of files (thousands) around, between my old mythtv backends and my new ditto. Hours and hours of rsync trundling along in the background (nohup'ed) with a sensible bwlimit.
Sure, for that I also use rsync. If it is just a command or two.
More like twenty or thirty - I like to do them in batches of 100/200, to keep an eye on filesystems filling up. I have have just now finished emptying a 12Tb filesystem, so I can now resize that filesystem and reuse one of the drives (in a new backend).
I would then use a single job with 'mc', which can calculate the size of the job and I see if it fits or not, in advance.
For admin work, 'mc' can view or edit text based files: logs, scripts, config files...
Aha, much like vi and less and other pagers. Cool.
Except that I hate vi.
YAPP - s/vi/favourite editor/
Typing is so much work... :-P
Good for browsing several directories and looking inside files for the information you need. It can do a search of files in trees, including grepping for contents, then for example do some operation on the resulting list of files, be it copy, move, edit...
Ah, like a find and grep.
Nope.
Find and grep produces a list of hits,
which is then easily piped to whatever else you want to do.
Not really. I have to get the list, then view some of the files to decide which of them it is.
then I have to open the files in another terminal with less (and pasting the file name, with quotes, so as not to disturb the list.
YAPP. I _never_ have do that. I sense that you are just not a fan of the command line and bash scripting.
I use both, but why would I do that when there is already a tool for the job, named 'mc'? :-)
'mc' works fine over a remote and slow connection. You may not need it because you are used to your own methods, but it does work fine.
Oh, I've never questioned whether it works, only whether it is necessary.
Obviously you can do without. It is simply more comfortable and faster.
As we have determined in this context, that applies to at least 2 (two) individuals.
As Liam said, we find impossible to understand that you can live without an OFM in your everyday life :-P -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)