Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: rm to wastebin?

  1. #11
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: rm to wastebin?

    Quote Originally Posted by palladium View Post
    STurtle wrote:[color=blue]
    >why would you pick that path when what i wrote actually works:

    mv [/path/filename] ~/.Trash
    All that does here is rename the file and move it to the user's root directory.

  2. #12
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: rm to wastebin?

    Quote Originally Posted by STurtle View Post
    Option -i is certainly not what I want, since the comamndline is meant to be faster, not slower than point & click, so I pretty much always use -f instead. Also, it is usually a day later that I realize the wrong thing has gone.

    I tried a script to move files to ~/.local/share/Trash/files/ but then they do not show up in the Trashcan, which is inconvenient. Worse, I doubt that they get automatically deleted from the Trashcan once they expire the Trashcan's set expiry date.
    Are you moving the files in super user mode? That would move them to root's trash bin.

  3. #13
    palladium NNTP User

    Default Re: rm to wastebin?

    chief sealth wrote:
    > All that does here is rename the file and move it to the user's root
    > directory.


    hmmmm....i guess there is a difference then in the layout of (what?)
    kde4 on 11.2 vs what i'm running (kde3 on 10.3)

    but, i can't see why it move a file to your home's root when it should
    (imo) give an error: "~/.Trash does not exist" or similar.. ??

    --
    palladium

  4. #14
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: rm to wastebin?

    Quote Originally Posted by palladium View Post
    but, i can't see why it move a file to your home's root when it should (imo) give an error: "~/.Trash does not exist" or similar.. ??
    "mv" is used for renaming files. There is no "ren," "rename," in *nix.

  5. #15

    Default Re: rm to wastebin?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    'mv' is for moving files. Renaming is essentially the same thing since
    you move it from /path/to/source.ext to /path/to/dest.ext. Unless you
    actually change filesystems your inode is the same for either a move or
    rename operation.

    There IS a 'rename' command as well, and it is very good at renaming
    files, but it is made to do so for multiple files at a time (see the
    manpage for details).

    Good luck.





    chief sealth wrote:
    > palladium;2115147 Wrote:
    >> but, i can't see why it move a file to your home's root when it should
    >> (imo) give an error: "~/.Trash does not exist" or similar.. ??

    >
    > "mv" is used for renaming files. There is no "ren," "rename," in *nix.
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQIcBAEBAgAGBQJLawOaAAoJEF+XTK08PnB5qMIQAKPzwTGQuJ4t1YQVwHuQLp/P
    tsMa7BgVGB6PIJXdY+KxIEFcqOMD08+sSYRLNEFfmwekl4Tdsawu4gDrAxVHUeGY
    p/mDFA0KxypmA9DnmhApfiONN7T8KkXEbxJwN8lIHPZGyalhXbAJN/ZihYBouKZ2
    LkkTQLOxr6L0KytHSNWYjTL9sUYNdAtsX+MBmli2EsFdJQkdRBVBymml2st7XMYA
    5DhubQACTJMRP12k4TIT2aaj8q5oMuLqf3IgZ67g1bxy1KZr8WCFihjSnWiJLB1T
    faPuz/GuuO9UaKqMIF+vyYFKMbOoBhJe3ll29rw8YVTz2xV0IRMM8l0SpmlBWs+8
    NJne1eAa7WQZIUwN+2fYfuJMBbeT7VLpg7ZvI1RM2f+C/JL1e2jSbWv8r8COGD4C
    oGbmu9fXeCLTsm1TL6bgYdrfmrPHcLufbtLJiEs11q/ImL9NM1/aN/MLNKDeGs8X
    IILFINdMiYG8gTemm7coEvfANOirWetoAR1DYMGBxZiVKkcoIOGGqjcFYkkm4ubT
    WhnkK7FgfwMQmfcJdNFH8hEZbQpSjTEg9xGBZ7PaozE+Zs0dAD5+RJDN6Yk5QSJg
    ADO334DVO86OYYcOgvFT4cOdzGjs2sRyIbCqsTotD1XZjpmL1HtjgjPTaUG/SdGj
    Lb1cJg619X9fxeWg0Bax
    =Edgc
    -----END PGP SIGNATURE-----

  6. #16

    Default Re: rm to wastebin?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    The "trash" has some magic to it.... how else can it know to 'Restore' one
    file to your Desktop and another to a directory within your desktop?
    These metadata (stored as 'please try again' mentioned) are why simply
    moving things to ~/.Trash will not make everything happy. I have a
    ~/.Trash still on my system for my user, though nothing is ever in it.

    Good luck.





    palladium wrote:
    > chief sealth wrote:
    >> All that does here is rename the file and move it to the user's root
    >> directory.

    >
    > hmmmm....i guess there is a difference then in the layout of (what?)
    > kde4 on 11.2 vs what i'm running (kde3 on 10.3)
    >
    > but, i can't see why it move a file to your home's root when it should
    > (imo) give an error: "~/.Trash does not exist" or similar.. ??
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQIcBAEBAgAGBQJLawPpAAoJEF+XTK08PnB5OAEP/RVdlMMzoUyfxXsIsTpLoCS2
    f46x7JIQhKaiAruPdquM9cCDYzyG9oKFC0aTraaHsV9V7xOiA4+V29O73xU6gDKA
    BryzLyVdoQh79OfZzr6AvASeHKuJj6SYZC/h6UlgF2Ex93jqY19LnrDe8xpdaKG+
    6hOYvCEFalE2UoVND+sS8pDYYgmf2m1SdGrDl0+V/1WgbOsgdMRagMGItQGMQSMS
    NI240yLd2EejWdXTTvI2Dx6qwRw7Ml8OZwdOsB0iydQ4oSg/IL/sNIF3ctKMWy1B
    7753ylNF3rfY7sFdWWuqMf0twQMLIt6nzTJFd6PihqqUTDRF2PUqUHkahFK6U5Wc
    chlI5ati7JRZjiMonhu8KinQ4u5DR3pbqYIKlqKFldWrAJ//LlFt3IB/QUJ2MMF5
    1pOhn8F07FAtNicTQ2hWdOO70gQh1oGTW2i5EVoi18hvOJ1lcJtHwAHA7uCOWXVC
    XgOjRQfphHVI944YfD+QIiqdeFIFHfySTqiKYIxbkiwpBX+oOib8n3keQk5ddoFl
    HkJzlGkx1L7jfcUsbC54N6WKa8g8dUXJRsdXTYc8gLqYBY/TFP54zI72Om2az4zv
    1pkRZwavK0F18VX2W9n9bY4sd8K3NoWBWaJ/zPNCKfA9GxwlDz2VUrDvyX9+BWTA
    xlFpjbPUH9pgV7wQGvPP
    =SMQY
    -----END PGP SIGNATURE-----

  7. #17
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: rm to wastebin?

    Quote Originally Posted by ab@novell.com View Post
    There IS a 'rename' command as well, and it is very good at renaming files, but it is made to do so for multiple files at a time (see the manpage for details).
    You're right! I guess in most of the documentation I've read, mv has been the most commonly used. Somewhere along the way I must have had it ingrained in my head this was the only way.

  8. #18

    Default Re: rm to wastebin?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Yes... and the say you need rename you will LOVE it.

    Good luck.





    chief sealth wrote:
    > ab@novell.com;2115151 Wrote:
    >> There IS a 'rename' command as well, and it is very good at renaming
    >> files, but it is made to do so for multiple files at a time (see the
    >> manpage for details).

    >
    > You're right! I guess in most of the documentation I've read, mv has
    > been the most commonly used. Somewhere along the way I must have had it
    > ingrained in my head this was the -only- way.
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQIcBAEBAgAGBQJLawhiAAoJEF+XTK08PnB5logQAKGqG1rfFv1CaEHWDKi92wZ0
    EDGNVMu+BPxb86gUxitxQQomDtCzqmQdwcHJ3baU7damrx2ejQNTarLIDS252iqV
    6PNptEiiD8PWZH9vfK1P1NmmD+jAT5s/YTvokqswRgGIBDlNOefqghzxE3R0iBn0
    6b5pVkW0bVE0btEuSoPHzMACrzxDtj1+asT3StBgT5qb7bef9U17tDHTOZ5OO5Zj
    2uNdlhgDEnRHawqvO4gVqdiJ9zP1HDg311uImqp6h+El00gS+kdna+lMkg54PAM2
    +KfOPDV9vRDMScZtjATvsNru9qGfJWNuGZpLQgY61AKG8UbG2DQOXpOqxPPowcHI
    hu9qsSft131yC8qPC7/Lbcwt3ioUzSm7xThoprpXnUY4Pe0d26UGpGgq9KWBp3Kv
    m8HLOh5hzS21Yjfg+2QvbwQQC+EEiTn1qd/awSVbinfsCU03v9VDab4R+rZJVCeh
    pLB7ZWseWpo7WtQ57xmXUvqsr+TtKOs0NkAVLAvmpC59J2Z2bc1tsE+NLMn3ycv3
    3NiDdEuWF85sEv46HcqmcKDF4AMRM+n+lLmUni/2Om1aVpt/3i/EfJ+kOC6h82bc
    WK/IdBs0uFG84CJdQl//mA4CU8N7VC/FfHFMXNRzOK84fO1utfaWnsYeUFHx6aRC
    4y1zO/xlbXS/mHylxJJU
    =TBzQ
    -----END PGP SIGNATURE-----

  9. #19
    palladium NNTP User

    Default Re: rm to wastebin?

    chief sealth wrote:
    > "mv" is used for renaming files. There is no "ren," "rename," in *nix.


    i just love it when a REAL expert sets me straight... lol

    --
    palladium

  10. #20
    palladium NNTP User

    Default Re: rm to wastebin?

    ab@novell.com wrote:
    > The "trash" has some magic to it...


    i see now it is more complicated than i thought.....however i know mv
    is short for move, and it 1) moves, 2) renames 3) moves and renames,
    and 4) deletes (well, actually only puts stuff in the magic trash)..

    --
    palladium

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •