How is rm command different from the delete button?

Ant's

I read from a book where it says, the command rm deletes the inode and not the file. Which means if I delete with the rm command, then it cannot be restored.

I'm very new to Ubuntu environment. Now my doubt is, how does the Del key works? It is not deleting the inode as far as I am concerned, because I can restore it from my Trash folder. So am I right to say that Del key is doing a mv command to Trash folder leaving the inode unchanged? Or am I missing something here?

ish

Your understanding is essentially correct - the Del key as used in Nautilus (or other file manager) is NOT the same as using rm; it "moves" the file to Trash instead so that it can be recovered unless you Empty Trash (which is the same as rm).

Note that even if you rm a file, the actual data is still on the disk after the inode is deleted. If you act immediately before the data is eventually overwritten, you can still recover the data using a tool such as testdisk/photorec.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to run command as different user

분류에서Dev

Delete locked file/folder from command line

분류에서Dev

How do I delete all empty directories in a directory from the command line?

분류에서Dev

Laravel : How to add a confirmation on delete button?

분류에서Dev

How to make VBA click a button in a different workbook?

분류에서Dev

How are chown and chmod command different in the given operation?

분류에서Dev

How to use paste command for different lengths of columns

분류에서Dev

How to iterate a command with two different variables?

분류에서Dev

Shebang followed by rm command not a self deleting script

분류에서Dev

How to add update, delete and view button in my php rows

분류에서Dev

How to delete all system files using command prompt

분류에서Dev

How is Ubuntu different from Debian?

분류에서Dev

How is bc different from dc?

분류에서Dev

How to git rm a file containing *

분류에서Dev

How to delete multi selected check-boxes when a delete button is clicked in reactJs

분류에서Dev

How to delete selected results from bash history?

분류에서Dev

how to work duplicate values delete from query

분류에서Dev

how to delete array value from table in jquery

분류에서Dev

How to delete an attribute from a Devise user in Rails?

분류에서Dev

How to delete a single cached username from Chrome?

분류에서Dev

How to 'drop'/delete characters from in front of a string?

분류에서Dev

How to delete the data from SQLite populated in listview

분류에서Dev

How to delete temporary image from internal storage

분류에서Dev

Delete only private signing key from within gpg (without reimporting subkeys or 'rm ~/.gnupg/private-keys-v1.d/KEYGRIP.key')

분류에서Dev

Android: Listview with button Delete

분류에서Dev

How to uncheck radio button in different listview in same layout.?

분류에서Dev

How to make a Command Prompt shortcut to open a different directory

분류에서Dev

How to remove active from button when open other button

분류에서Dev

How to give python command line arguments from command line mode

Related 관련 기사

  1. 1

    How to run command as different user

  2. 2

    Delete locked file/folder from command line

  3. 3

    How do I delete all empty directories in a directory from the command line?

  4. 4

    Laravel : How to add a confirmation on delete button?

  5. 5

    How to make VBA click a button in a different workbook?

  6. 6

    How are chown and chmod command different in the given operation?

  7. 7

    How to use paste command for different lengths of columns

  8. 8

    How to iterate a command with two different variables?

  9. 9

    Shebang followed by rm command not a self deleting script

  10. 10

    How to add update, delete and view button in my php rows

  11. 11

    How to delete all system files using command prompt

  12. 12

    How is Ubuntu different from Debian?

  13. 13

    How is bc different from dc?

  14. 14

    How to git rm a file containing *

  15. 15

    How to delete multi selected check-boxes when a delete button is clicked in reactJs

  16. 16

    How to delete selected results from bash history?

  17. 17

    how to work duplicate values delete from query

  18. 18

    how to delete array value from table in jquery

  19. 19

    How to delete an attribute from a Devise user in Rails?

  20. 20

    How to delete a single cached username from Chrome?

  21. 21

    How to 'drop'/delete characters from in front of a string?

  22. 22

    How to delete the data from SQLite populated in listview

  23. 23

    How to delete temporary image from internal storage

  24. 24

    Delete only private signing key from within gpg (without reimporting subkeys or 'rm ~/.gnupg/private-keys-v1.d/KEYGRIP.key')

  25. 25

    Android: Listview with button Delete

  26. 26

    How to uncheck radio button in different listview in same layout.?

  27. 27

    How to make a Command Prompt shortcut to open a different directory

  28. 28

    How to remove active from button when open other button

  29. 29

    How to give python command line arguments from command line mode

뜨겁다태그

보관