In a buffer, use C-x C-j to open the current directory in dired.
Once in a dired window (M-x dired), the following keys can be used:
d: Mark for deletiont: Mark allu: Unmark for deletionU: Unmark all* s: mark all, except for . and ..* .: mark all files with a given extension* %: mark all files matching a given regexps: toggle sorting by name and by dateC-u s: Edit ls options. Can be used to use different sorting,
such as -alS to sort by size.D : Deletex: Delete files marked for deletionf : Visit fileo: Visit file in other windowQ: Query replace on each file marked+: Create new directoryC <name> RET: Copy with a new namew: Copy name of file under cursor (or selected) into kill-ring0 w: Copy absolute path of file! cmd RET: Execute command cmd on file.M-x find-grep-dired: List in a dired buffer files containing
string matching regexp.M-x find-dired: Find and list in a dired buffer files matching
find command.The name of the files can also be edited directly in the dired buffer
by making the buffer writable with C-x C-q.
To search and replace in a given folder:
M-x
find-grep-diredt in dired.Q to start query-replace on the marked buffers.! to get all the occurrences in a buffer replaced.C-x s to save all the buffers.