what is the command line command to delete a file, directory etc.? dwain -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 17 March 2007, dwain wrote:
what is the command line command to delete a file, directory etc.?
dwain
rm rmdir BE CAREFUL! -- _____________________________________ John Andersen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello dwain, hello community ! dwain wrote / schrieb:
what is the command line command to delete a file, directory etc.?
Assuming you are working at the bash command prompt try "rm". Before messing up your system please try "rm --help", "man rm" and/or "info rm" BTW: The coresponding commands for moving, copying and linking are "mv", "cp" and "ln", respectively. It might be useful to refer to a good book. In Germany there are various books available where "Linux - Installation, Configuration, Use" by Michael Kofler. An english version should be available as well. -- Never give up ! Best regards / Gruß, Reinhard. "Software is like a parachute. It doesn't work if it is not open." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
dwain wrote:
what is the command line command to delete a file, directory etc.?
dwain
rm and rmdir man is your friend(?) ;-) Also, you might want to try the apropos command. i.e "apropos delete", to see what turns up. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 17 Mar 2007 03:12:06 -0500
dwain
what is the command line command to delete a file, directory etc.? The previous posts mentioned both rm (remove a file, but this can also remove a directory tree). rmdir removes an empty directory.
One difference between Unix/Linux systems and other operating systems is
that a file is an entry in a table, called inode. A file may have many
different names (hard and symbolic links). For instance, a directory
will have a minimum or 2 names, the name you see from its parent
directory, and the dot ( . ). Whenever a new hard link is created, it
increments the use count in the inode table. The rm command removes the
file name and decrements the use count, but does not necessarily delete
the file. The system deletes the file, only when the use count reaches
zero. Also, when a program opens a file, the use count is incremented.
One of the things that can happen is that log files are generally
opened by daemons. If you try to delete a large log file, rm will
remove the file name, but the file remains open until either the daemon
closes it or the daemon exits.
--
Jerry Feldman
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-03-17 at 11:11 -0400, Jerry Feldman wrote:
One difference between Unix/Linux systems and other operating systems is that a file is an entry in a table, called inode.
Ejem ;-) If you use that description, it can be said about that other operating system that a file is also an entry in a table ;-) Only the name is diferent, and the structure, and the use... but still, a table. :-P
A file may have many different names (hard and symbolic links).
Actually, that other filesystem can also have hardlinks. I have seen it done. However, that operating system knows nothing about it, and may destroy it (by simply deleting it, you'd get corruption). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF/BKOtTMYHG2NR9URAqbYAJ0UsDGFkSBQqfABO2fEE0TwcZQ94QCfVf61 Bq6A0NKl2r1/6FKh/z3DYig= =JSV2 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 17 Mar 2007 17:08:44 +0100 (CET)
"Carlos E. R."
If you use that description, it can be said about that other operating system that a file is also an entry in a table ;-)
Only the name is diferent, and the structure, and the use... but still, a table.
:-P Picky picky picky :-). The main difference is that in most other operating systems the file name is tied directly to the file.
--
Jerry Feldman
On Saturday 17 March 2007 4:12:06 am dwain wrote:
what is the command line command to delete a file, directory etc.?
dwain
rm to delete a file and rmdir to delete an empty dir. Fred -- Remember, a consumer is a customer with no choice. DRM 'manages access' in the same way that jail 'manages freedom.' -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Fred A. Miller wrote:
On Saturday 17 March 2007 4:12:06 am dwain wrote:
what is the command line command to delete a file, directory etc.?
dwain
rm to delete a file and rmdir to delete an empty dir.
Fred
thanks fred! dwain -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Carlos E. R.
-
dwain
-
Fred A. Miller
-
James Knott
-
Jerry Feldman
-
John Andersen
-
Reinhard Gimbel