Dired Visiting
Dired
Operating on Files
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 Dired Deletion, for commands to flag and
unflag files.)
| m
* m |
Mark the current file with ` |
| * * |
Mark all executable files with ` |
| * @ |
Mark all symbolic links with ` |
| * / |
Mark with ` |
| * s |
Mark all the files in the current subdirectory, aside from ` |
| u
* u |
Remove any mark on this line ( |
DEL
* DEL
|
Move point to previous line and remove any mark on that line
( |
| * ! |
Remove all marks from all the files in this Dired buffer
( |
| * ? markchar |
Remove all marks that use the character markchar
( 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. |
| * C-n |
Move down to the next marked file ( |
| * C-p |
Move up to the previous marked file ( |
| * t |
Toggle all marks ( |
| * c old new |
Replace all marks that use the character old with marks that use
the character new (
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 (`
To illustrate the power of this command, here is how to put `
This assumes that no files are marked with ` |
% m regexp RET
* % regexp RET
|
Mark (with `
Only the non-directory part of the file name is used in matching. Use
` |
% g regexp RET
|
Mark (with ` |
| C-_ |
Undo changes in the Dired buffer, such as adding or removing
marks ( |