Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
hi all, I'm accessing the server using the ssh command and i had use the "rm" command to delete a file, and i would to know how can i access ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234

    Trash


    hi all,
    I'm accessing the server using the ssh command and i had use the "rm" command to delete a file, and i would to know how can i access to the trash to view the deleted files?
    Proper Planing is a way of success

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    I may be wrong, but I'm fairly sure that 'rm' removes or deletes the file permanently. Unlike Windows, in Linux, 'delete' is like herpes. It's forever... To see what is in your trash, you'll likely find it in your home directory as a hidden file - .Trash. cd to it and have a look...
    Linux Mint + IceWM Registered: #371367 New Members: click here

  3. #3
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by Dapper Dan
    I may be wrong, but I'm fairly sure that 'rm' removes or deletes the file permanently. Unlike Windows, in Linux, 'delete' is like herpes. It's forever... To see what is in your trash, you'll likely find it in your home directory as a hidden file - .Trash. cd to it and have a look...
    By following ur command this is the error that i get
    - .Trash. cd
    -bash: -: command not found
    Proper Planing is a way of success

  4. $spacer_open
    $spacer_close
  5. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by thcc2
    By following you command this is the error that i get
    Here's a couple good websites for you to use in studying Linux commands:

    http://www.ss64.com/bash/index.html

    http://www.linuxdevcenter.com/linux/cmd/

  6. #5
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    Quote Originally Posted by thcc2
    By following you command this is the error that i get
    - .Trash. cd
    -bash: -: command not found
    I think you misunderstood what DapperDan was saying. He meant that the deleted files may be in a hidden file called .Trash (the dot in front of the word is important). So use "cd" to go to that directory and see if anything is in it.

    In other words,
    Code:
    cd .Trash
    Do this from your home directory.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  7. #6
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by smolloy
    Quote Originally Posted by thcc2
    By following you command this is the error that i get
    - .Trash. cd
    -bash: -: command not found
    I think you misunderstood what DapperDan was saying. He meant that the deleted files may be in a hidden file called .Trash (the dot in front of the word is important). So use "cd" to go to that directory and see if anything is in it.

    In other words,
    Code:
    cd .Trash
    Do this from your home directory.
    i got it already, if no trash exits, that means the file was remove permanently after the rm command is executed
    Proper Planing is a way of success

  8. #7
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    Quote Originally Posted by thcc2
    i got it already, if no trash exits, that means the file was remove permanently after the rm command is executed
    Yup. All gone. Forever.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  9. #8
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by ozar
    Quote Originally Posted by thcc2
    By following you command this is the error that i get
    Here's a couple good websites for you to use in studying Linux commands:

    http://www.ss64.com/bash/index.html

    http://www.linuxdevcenter.com/linux/cmd/
    that for ur url, i try to learn it, but sometimes i don't what parameters to put in
    Proper Planing is a way of success

  10. #9
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by smolloy
    Quote Originally Posted by thcc2
    i got it already, if no trash exits, that means the file was remove permanently after the rm command is executed
    Yup. All gone. Forever.

    is never ask for confirmation before delete
    Proper Planing is a way of success

  11. #10
    Linux User
    Join Date
    Sep 2003
    Posts
    254
    Quote Originally Posted by thcc2
    Quote Originally Posted by smolloy
    Quote Originally Posted by thcc2
    i got it already, if no trash exits, that means the file was remove permanently after the rm command is executed
    Yup. All gone. Forever.

    is never ask for confirmation before delete
    A good thing to do before a rm is: think, think read the man and think. Then personnally as I'm sometimes doing lot of things in the same time I just add the i option it gives:
    Code:
    # rm -i docoutils.zip 
    remove docoutils.zip?

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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