Using ded
The file managing program ded allows you to "edit" your directory
listing in an interactive mode. Its commands can seem a bit arcane,
but ded is a powerful tool, which makes managing the files in your
diretories much simpler. It is an interactive program, so you can
browse through the files and edit, view or delete them, much in the
same way you can do this with email on pine. It takes a little
getting used to, but with a brief list of useful commands, hopefully
that won't be too hard:
To run ded, type:
% ded
for the current directory, or
% ded <files>
such as:
% ded *.cpp
- Motion Commands:
-
- j
- steps to the next file.
- k
- steps to previous file.
- f
- goes forward a window, leaving a one line overlap.
- b
- goes backward a window, leaving a one line overlap.
- 1
- goes to the first entry of the first screen.
- G
- goes to the last entry of the last screen.
- /
- does a forward regular-expression search of the
filenames starting with the current entry, and posi-
tions the cursor on that entry. If nothing is entered
to the prompt, the last regular expression is used, and
the search starts at the next entry.
- ?
- does a reverse regular expression search.
- Actions you can take:
-
- Q
- quit ded
- h
- gives help (currently not working on turing. use the
man page and this qref instead until it is working)
- d
- delete the file
- u
- undelete the file
- t
- "type" out the file
- !
- use the file in a shell command (the name of the file
is % in the command)
- e
- edit a file:
- If a plain file, invoke the editor set in the EDITOR
environment variable.
- If a directory, call ded on this directory recursively.
Then to return, just type 'Q' to exit the new directory.
- s
- sort the list. It will prompt you for how you want to
sort it. Among the options are:
- w
- most recent first (write-date)
- s
- largest first
- n
- by name (default)
To find out more about what files are okay to delete, look at the
cleaning
space qref.
For more information on ded, look at the man page on ded(1).
Last Modified Sunday, 17-Feb-2002 16:47:01 PST
|