All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ulrich Fürst" <heimwill@compuserve.de>
To: linux-newbie@vger.kernel.org
Subject: Re: Do not delete files by mistake (was Re: retrieval)
Date: Mon, 3 Jan 2005 19:14:36 +0100	[thread overview]
Message-ID: <20050103191436.63d4d8ab@sarge> (raw)
In-Reply-To: <200501030733.09945.pa3gcu@zeelandnet.nl>

Richard Adams <pa3gcu@zeelandnet.nl> wrote: 
> On Sunday 02 January 2005 09:32, Ulrich Fürst wrote:
> > or you can put the following into your .bashrc
> > alias rm='mv --target-directory=/root/Desktop/Trash $1 '
> 
> I dont have the origanal message anymore to check, but i thought the
> thread was about a "user" deleting files, if that is correct then the
> above will not work as a normal user cannot write to /root (s)
> directory.
He didn't write about user or root. And I took the example out of root's
bashrc by random. I've got the same in the bashrc of each user.
> 
> It is a good idea to do the same for root and users tho'.
> On another note many distro's dont have a trash directory, so the need
> to create one arises as well.
But that's no problem. You can take $HOME/.trash or whatever. I also
created a script running as cron job to keep the size of the directory
(it's contents) below a defined size.

Ulrich

By the way: You could also tell KDE to use any directory as a trash
directory.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2005-01-03 18:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-31  4:55 retrieval Ankit Jain
2004-12-31  5:06 ` retrieval Amit Dang
2005-01-07  8:58   ` retrieval Ankit Jain
2005-01-07 14:13     ` retrieval chuck gelm
2005-01-01  6:06 ` retrieval Peter
2005-01-01 13:59   ` retrieval Ohadi, Hamid
2005-01-02  8:01     ` retrieval joy merwin monteiro
2005-01-02  8:32       ` Do not delete files by mistake (was Re: retrieval) Ulrich Fürst
2005-01-03  6:33         ` Richard Adams
2005-01-03 18:14           ` Ulrich Fürst [this message]
2005-01-04 17:53           ` 'ssh' uses port 20 only? chuck gelm
2005-01-04 18:53             ` Ray Olszewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050103191436.63d4d8ab@sarge \
    --to=heimwill@compuserve.de \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.