View file File name : jed017.html Content :<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="generator" content="hevea 2.35"> <link rel="stylesheet" type="text/css" href="jed.css"> <title>Dired— the Directory editor</title> </head> <body > <a href="jed016.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="index.html"><img src="contents_motif.svg" alt="Up"></a> <a href="jed018.html"><img src="next_motif.svg" alt="Next"></a> <hr> <h2 id="sec34" class="section">16 Dired— the Directory editor</h2> <p>In addition to editing files, <span style="font-weight:bold">jed</span> is also able to rename and delete them as well. <span style="font-weight:bold">jed</span>’s Dired mode allows one to do just this is a simple and safe manner.</p><p>To run dired, simply press <span style="font-variant:small-caps">Esc X</span> and enter <code class="verb">dired</code> at the prompt. <span style="font-weight:bold">jed</span> will load <code class="verb">dired.sl</code> and prompt for a directory name. Once the directory is given, <span style="font-weight:bold">jed</span> will display a list files in the directory in a buffer named <span style="font-family:monospace">*dired*</span>. One may use normal buffer movement keys to move around this buffer. To delete one or more files, use the <span style="font-variant:small-caps">d</span> key to “tag” the files. This in itself does not delete them; rather, it simply marks them for deleting. A capital ‘D’ will appear in the left margin to indicate that a file has been tagged. Simply hit the <span style="font-variant:small-caps">u</span> key to untag a file. The delete key will also untag the previously tagged file.</p><p>To actually delete the tagged files, press the ‘x’ key. This action causes <span style="font-weight:bold">jed</span> to display a list of the tagged files in a separate window and prompt the user for confirmation. Only when the proper confirmation is given, will the file be deleted.</p><p>Renaming a file is just as simple. Simply move to the line containg the name of the file that you wish to rename and hit the ‘r’ key. <span style="font-weight:bold">jed</span> will prompt for a filename or a directory name. If a directory is given, the file will be moved to the new directory but will keep the name. However, for the operation to succeed, the file must be one the same file system. To rename tagged files to a different directory residing on the same file system, use the <span style="font-variant:small-caps">m</span> key. This has the effect of moving the tagged file out of the current directory to the new one.</p><p>One may also use the <span style="font-variant:small-caps">f</span> key to read the file indicated by the cursor position into a buffer for editing. If the file is a directory, the directory will be used for dired operations. In addition, one may also use the <span style="font-variant:small-caps">v</span> to simply “view” a file.</p><p>Finally, the <span style="font-variant:small-caps">g</span> key will re-read the current directory and the <span style="font-variant:small-caps">h</span> and <span style="font-variant:small-caps">?</span> keys provide some help.</p> <hr> <a href="jed016.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="index.html"><img src="contents_motif.svg" alt="Up"></a> <a href="jed018.html"><img src="next_motif.svg" alt="Next"></a> </body> </html>