Manipulating multiples


#1

HOW DO YOU TELL THE COMMAND LINE YOU WANT TO PERFORM RM,CP, ETC ON ALL THE FILES OR DIRECTORIES IN A GIVEN DIRECTORY?

I need to copy all the files in hundreds of folders into a single folder
and delete the current directories in the current directory

does -r mean all?
is there a place that tells me what all the “-” add ons can do?


#2

every command (which is essential a program) has a manual page which we can acccess with man so for example man cp), -R means recursive, which means all files are copied rescursivly

programs also often have a -h or --help function which is a shorter version of the man page with the options

if you don’t know how to use the manual pages, guess what? there is a manual for it: man man


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.