Skip to the posts
Buffalo's neighborhood journals since 2003 🍀 Patrick Spicy Devil Logan🌭 Sahlen🥨 Weber Spank🥟 Pierogi🐸 Scaj🍺 Labatt Utica Pink Cherio❄️ Snow Murder

tinypliny’s journal

Undo any last action in Linux?

·

Sometimes, I accidentally move files into folders. However, I am uncertain what files I moved (because I wasn't paying attention when my stylus accidentally dragged and dropped that file into some nearby folder). So I know that something has changed in the directory but I am not sure about what has changed. In windows, I could easily right click and undo whatever the last action was - rename/delete/move. Where is this undo functionality in Linux??

If there isn't a way, is there at least a log that logs all these events so I could check it and see what was changed?

Am I missing some obvious way to do this? Ctrl-Z does not cut it.
117 words · edited Nov 17, 2011

💬 7 comments

  1. paul ·

    I never do anything with Nautilus or the GUI so I have no idea. I don't think there is a way.
  2. tinypliny ·

    Nautilus is an awful file browser. Compared to the one in windows, it really feels like it came from the 1980s.

  3. paul ·

    I dont even understand how undo could work under all situations. Say you copied a folder with gigs of data, then a program started to fill your drive, then you undo? What happens?
  4. tinypliny ·

    % then a program started to fill your drive

    I am not sure I understand this bit. If you copy a folder with gigs of data, you can still undo it. Windows will just delete the copy you made. Every time you do a rename, delete, copy or move anywhere, the context menu item for the corresponding undo rename, undo delete, undo copy or undo move becomes active and you can immediately go back to the original state. In any one session, if you have several such actions, ALL of them can be undone one by one stepping backwards.
  5. tinypliny ·

    Its exactly like the undo option in chrome or any word processor for text. All recent actions in a session are potentially un-doable.

    I think you are thinking about linux when you ask this because linux assumes you are smart enough and know what you are doing and there are no step-backs. But when your stylus is either a) not very precisely controlled (because your stylus company just doesn't care about linux enough), or b) maybe its too sensitive and you sneeze moving some folder inadvertently because you are in the nautilus gui, you have no way of knowing what changed...

    It doesn't happen often but it does sometimes and is agonizing without an undo option. I posted in Ubuntu forums where people actually bother to answer and someone told me that Dolphin (KDE's file browser gui) has the undo option.
  6. paul ·

    I still dont' see what happens when the data exceeds the size of the drive. I get it with moves but not copies. I guess it probably works most of the time if directories never meet that condition.
  7. tinypliny ·

    data exceed the size of the drive



    this must be my dumb and dumber day... I have no idea what you are saying!!? If you start copying 10 gigs of data into a drive of say 4 gigs, it gives you a warning that the drive space is inadequate. Copying stops with a small buffer of space remaining on the destination drive. If you undo all this the copies files are just deleted.

💬 Write a comment