Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION User Manual Page 278

  • Download
  • Add to my manuals
  • Print
  • Page
    / 300
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 277
266 Managing Files and Directories
You can also use wildcards for more than searching: they can come in handy when you want to move
and rename les. And regular expressions can help you rename les with characters like * and ? in
them.
For more on that, read on.
17.5 Copying, Moving and Renaming Files and Directo-
ries
By now, youve learned a little about the structure of the lesystem; and youve learned how to create
les and directories.
But just because you know how to create les and directories doesntmeanthatyoure stuck with
the changes youve made. What if you want to rename and/or move les and directories?
Lets start with the copy command.
17.5.1 Copying Files
Like so many Linux features, you have a variety of options from which to choose when you want
to manipulate les and directories. You can also use wildcards when youre copying, moving, or
deleting les and directories.
Basically, the copy command is not much more complex than typing:
cp <source> <destination>
so to copy the le sneakers.txt to the directory tigger in your login directory, just type:
cp sneakers.txt tigger
Notice that you also used relative pathnames to copy the le. You can use both relative and absolute
pathnames with cp. Our login directory is the parent of the directory tigger; meaning that tigger
is one directory down from ours.
Read the cp man page (man cp) for a full list of the options available with cp. But among the options
you can use with cp are:
-i interactive. Prompts you to conrm if the le is going to overwrite a le in your destina-
tion. This is a handy option because it can help prevent you from making mistakes.
-r recursive. Rather than just copying all the les and directories, copies the whole directory
tree, subdirectories and all, to another location.
Page view 277
1 2 ... 273 274 275 276 277 278 279 280 281 282 283 ... 299 300

Comments to this Manuals

No comments