Hoping for this feature....
Posted by Sufficient_Ad7816@reddit | linux | View on Reddit | 15 comments
Hi! I recently came over from Windows 10 to Linux Mint and really like it for multiple reasons. One thing I've found that I'd ask why couldn't be implemented is a windows like command ctr+z to undo previous command. Once you do something in Linux, that's it, no take-backs. Is there any enthusiasm for adding this feature?
MaruThePug@reddit
Can you clarify what you mean? I checked OnlyOffice, Text Editor, Files, and a couple others and ctrl-z works fine on them. Can you give an example where you try to ctrl-z and nothing happens?
Both_Love_438@reddit
He said "previous command", I'm scared he might be referring to terminal commands
Sufficient_Ad7816@reddit (OP)
lol no I wasn't talking terminal commands. I mean to things like file structure deletions. In Windows if I accidentally delete a folder, if the VERY next move I type "ctr+z" I can undo the mistake...
Both_Love_438@reddit
Oh, don't mind me then. I'm pretty sure you can do that on Linux tho? Idk, I use the terminal for most file/directory-related operations. Maybe it depends on which file explorer application you're using? I'd be a bit surprised if this was just entirely not a thing on Linux, but I'm unsure, I'll test it tomorrow in Dolphin.
YoMamasTesticles@reddit
You don't have to. I use this feature on Dolphin nearly daily
Both_Love_438@reddit
Thanks for confirming 👍
ieatpenguins247@reddit
I’m scared too. Cuddles?
Both_Love_438@reddit
🥺 yes
lelddit97@reddit
let me join also please
ieatpenguins247@reddit
Join in!!!
lelddit97@reddit
no such thing, to answer your question "ask why couldn't be implemented":
each command does not specifically say what it did. you would have to somehow keep a log of what each command does.
but wait...
what happens if you run commands at the same time, modifying the same resources? using HH:MM terminology to make it easier to parse
Terminal 1: * 1:00:
echo 'test' > /tmp/somefile* 1:02:rm /tmp/someotherfileTerminal 2: * 1:01
mv /tmp/somefile /tmp/someotherfileif you undo terminal 2 at the end, /tmp/someotherfile was already removed.
this is a very simple example of a very complex problem: parallelism. in short: many things are happening to your computer at once. the commands are not exclusively entered by humans and which were executed as things were at a specific point in time. there is such a thing as snapshoting at the filesystem level, but it would be totally asinine to do after every human command. you could just, as the human, take a snapshot before you do anything risky and remove it once you know everything works.
spiritkoden@reddit
I think Arch Is a masterpiece.
ABotelho23@reddit
Windows and Linux are not different in this. Undo is application specific functionality.
DFS_0019287@reddit
You can't undo all commands in Windows. If you delete a file in Windows (actually delete, not just move it to the trash) there's no magic way to undo that.
Both_Love_438@reddit
You can do that on Windows?