Instead of flagging a file with `D', you can mark the file with some other character (usually `*'). Most Dired commands to operate on files, aside from "expunge" (x), look for files marked with `*'.
Here are some commands for marking with `*', or for unmarking or operating on marks. (See section Deleting Files with Dired, for commands to flag and unflag files.)
dired-mark). With a numeric argument n, mark the next n files starting with the current file. (If n is negative, mark the previous -n files.)
dired-mark-executables). With a numeric argument, unmark all those files.
dired-mark-symlinks). With a numeric argument, unmark all those files.
dired-mark-directories). With a numeric argument, unmark all those files.
dired-unmark-all-files). The argument is a single character--do not use RET to terminate it. With a numeric argument, this command queries about each marked file, asking whether to remove its mark. You can answer y meaning yes, n meaning no, or ! to remove the marks from the remaining files without asking about them.
dired-next-marked-file) A file is "marked" if it has any kind of mark.
dired-do-toggle): files marked with `*' become unmarked, and unmarked files are marked with `*'. Files marked in any other way are not affected.
dired-change-marks). This command is the primary way to create or use marks other than `*' or `D'. The arguments are single characters--do not use RET to terminate them. You can use almost any character as a mark character by means of this command, to distinguish various classes of files. If old is a space (` '), then the command operates on all unmarked files; if new is a space, then the command unmarks the files it acts on. To illustrate the power of this command, here is how to put `*' marks on all the files that are unmarked, while unmarking all those that have `*' marks:
* c * t * c SPC * * c t SPC
dired-mark-files-regexp). This command is like % d, except that it marks files with `*' instead of flagging with `D'. See section Flagging Many Files at Once. Only the non-directory part of the file name is used in matching. Use `^' and `$' to anchor matches. Exclude subdirectories by hiding them (see section Hiding Subdirectories).
dired-mark-files-containing-regexp). This command is like % m, except that it searches the file contents instead of the file name.
Go to the first, previous, next, last section, table of contents.