Thread 105845760 - /g/ [Archived: 392 hours ago]

Anonymous
7/9/2025, 9:11:29 AM No.105845760
terminal2
terminal2
md5: 379a74fa2b71c522b10d347a93174663🔍
>61 years of the shell
>still no "undo" command, an action available in any competent graphical program
inb4 "b-but you could do something arbitrarily complex that even a GUI wouldn't let you ctrl+z":
that may be true, but it's a remarkably poor excuse for not letting you undo a trivial command with a single keyword.

forget all the basic principles around discoverability, forget the fact users don't generally read manuals and expecting them to is wishcasting, forget that people generally like to have things on screen instead of in their head, junk it all: the single biggest barrier to getting people using the terminal is that it is not forgiving. just like when working with paper, mistakes are permanent - fuck that being able to undo them is one of the major advantages of using a computer, it makes me feel hardcore to be one typo away from catastrophe.
Replies: >>105845773 >>105845775 >>105845777 >>105845821 >>105845941 >>105846144 >>105846323 >>105846579 >>105846609 >>105846658 >>105846881 >>105847763 >>105847964 >>105848435 >>105848619 >>105848843 >>105848854 >>105849442 >>105849570 >>105850909 >>105850961 >>105851021 >>105856777
Anonymous
7/9/2025, 9:13:29 AM No.105845773
>>105845760 (OP)
>rm -rf
>undo
keklmao
thats not how it works
Replies: >>105845822 >>105845845 >>105845861 >>105846108
Anonymous
7/9/2025, 9:13:41 AM No.105845775
>>105845760 (OP)
>but it's a remarkably poor excuse for not letting you undo a trivial command with a single keyword.
Who is keeping you from ``undoing'' any command you enter?
rm -rf --no-preserve-root /*
Replies: >>105845845 >>105846108
Anonymous
7/9/2025, 9:13:49 AM No.105845777
28d2851c2ad0e0f6e31d25ab5e96e87a
28d2851c2ad0e0f6e31d25ab5e96e87a
md5: 28d2851c2ad0e0f6e31d25ab5e96e87a🔍
>>105845760 (OP)
>filters insecure users and normalfags
I never noticed how based unix shell is before
Replies: >>105848955
Anonymous
7/9/2025, 9:20:25 AM No.105845821
>>105845760 (OP)
The shell isn't a program, it's the OS. It opens programs and runs them. If you make a mistake in Microsoft Word you can undo to get it back, but if you accidentally click the icon to open Microsoft Word you can't undo to stop it from opening. So even when Windows is fully focusing on GUI it doesn't have undo either.
Replies: >>105845832 >>105845845
Anonymous
7/9/2025, 9:20:38 AM No.105845822
>>105845773
Just use a time machine, retard

Go back to r3ddit.
Replies: >>105845838
Anonymous
7/9/2025, 9:22:52 AM No.105845832
>>105845821
Pretty good explanation. It is the difference between driving a car and changing gears ( you can change the gears back ) or driving the car into a wall.
Replies: >>105845845
Anonymous
7/9/2025, 9:24:43 AM No.105845838
>>105845822
i cant
i have a restraining order
Anonymous
7/9/2025, 9:26:15 AM No.105845845
>>105845773
that not being how it works is precisely the point. rm -rf is one thing, now explain why you can't "undo" mv.

>>105845775
the fact that you can manually undo the action by typing a different command isn't the same as having an undo command. again: in any graphical interface a trivial mistake goes away with ctrl+z.
i can accept that rm -rf is not trivial, i can even accept that rm actually removing things instead of sticking them in the recycle bin is technically not a shell issue even if it's often a pretty bad idea, but i can't accept that absolutely nothing is undoable.

>>105845821
yet when i move a file into a folder in windows, then change my mind, i can hit ctrl+z and it goes back to where it came from instead of requiring me to manually move it back.

i should say: i'm not really arguing that it should be changed in all cases, my argument should be seen more like: isn't it weird that there are a million meme distros out there that'll hide features from the user, but not one person has seen fit to re-do this part of the OS to make it less intimidating? doesn't that highlight some failure to think seriously about what problems the end-user actually faces?

>>105845832
creating the automatic car of linux distros is something a number of people have set out to do, yet they've never seen fit to tinker with the gearbox.
Replies: >>105845849 >>105845863 >>105845882 >>105845927 >>105845937 >>105846128 >>105846235 >>105846371 >>105856788
Anonymous
7/9/2025, 9:26:34 AM No.105845848
Sorry kid. In the real world you cannot undo your mistakes.
Replies: >>105845865
Anonymous
7/9/2025, 9:27:14 AM No.105845849
>>105845845
>now explain why you can't "undo" mv.
socioeconomical factors
Replies: >>105845863
Anonymous
7/9/2025, 9:28:50 AM No.105845857
>you cannot take back a stroke of the brush, or a stroke of the sword
Replies: >>105845865 >>105846197
Anonymous
7/9/2025, 9:30:40 AM No.105845861
>>105845773
In Windows explorer, you can do ctl z to restore deleted items
Replies: >>105845874 >>105846215 >>105848855
Anonymous
7/9/2025, 9:30:55 AM No.105845863
>>105845845
>>105845849
more seriously, you could write a shell that does
you could even alias that
you grab your last command from history
then depending on your command you do the appropriate undo
with mv it would be cd then mv back

you might have a harder time with echo, doe
or even better- sed
its destructive. unless you backup the file theres no undoing that
Replies: >>105845870
Anonymous
7/9/2025, 9:31:04 AM No.105845865
>>105845848
>>105845857
perhaps we should remove the copy command next, since you can't create infinite free copies of things in the real world either. then we could get rid of screens, which are terribly unrealistic, and bring back the teletype. then it'll be obvious why there's no "undo".
Anonymous
7/9/2025, 9:32:18 AM No.105845870
>>105845863
>with mv it would be cd then mv back
wtf am i even saying
you just take where you sent the file and mv back to pwd/orig. name
Replies: >>105845927
Anonymous
7/9/2025, 9:33:49 AM No.105845874
>>105845861
and you can bring back files you deleted with file explorer on loonis
its just that very little can be actually undone so nobody bothered
just dont goof, easy as
re-read what you type before you hit enter
Anonymous
7/9/2025, 9:35:56 AM No.105845882
>>105845845
>yet when i move a file into a folder in windows, then change my mind, i can hit ctrl+z and it goes back to where it came from instead of requiring me to manually move it back.
That's not the OS itself doing that, it's the File Explorer. I doubt your Ctrl+z would work if you closed the File Explorer before hitting that. So a single program inside the OS has the ability to undo. There's also undo in Vim even when opened through the shell. So if you would use a program that stays open to move your files then it could have the undo function in shell. But if it runs and returns back to the shell then it's like doing something in File Explorer and closing the window after you're done.
Replies: >>105845921
Anonymous
7/9/2025, 9:48:30 AM No.105845921
>>105845882
On windows, the file explorer is part of explorer.exe That also contains the destop, window composition and every thing else. It is basically part of the os.
Replies: >>105845972
Anonymous
7/9/2025, 9:49:44 AM No.105845927
>>105845845
you can add as a shell alias a script somewhere that wraps /usr/bin/mv keeping track of 'mv' command arguments $@ before executing them and writes to a text file a string of reversal commands per each interactive shell instance, you can then map to ctrl-whatever in .bashrc/.zshrc your mvunretard() { "$(tail < "/tmp/muh_mvstack_$(tty)"; }) command

which is basically the same as hitting up arrow going up one command in history and flipping arguments as >>105845870 said

there is also a $HISTFILE file where you can observe all your fuckups
Anonymous
7/9/2025, 9:51:28 AM No.105845937
>>105845845
>now explain why you can't "undo" mv.
Using mv, it is possible to overwrite a file. There is no command for the shell to reasonably recover the overwritten file.
Anonymous
7/9/2025, 9:52:46 AM No.105845941
>>105845760 (OP)
this would only make it so much worse for the type of user that would want an 'undo' option.
Once that goes wrong, say you have permissions to do but not to undo (or part of it), those users will be even more confused becauye they never needed to understand what they are doing.
Anonymous
7/9/2025, 10:01:06 AM No.105845972
>>105845921
What's odd is that despite this, Powershell also lacks an undo command
Replies: >>105845983
Anonymous
7/9/2025, 10:05:06 AM No.105845983
>>105845972
dont fuck with the cli if you dont know what youre doing i guess
and im ok with that. i never thought "i really would like an undo function with my shell"
Replies: >>105846057
Anonymous
7/9/2025, 10:12:41 AM No.105846014
Wait I'm confused, is the op talking about an undo in the text on cli... or undo as in "undo the command pressed ENTER on" in the latter, then that's retarded.

There is an undo it's called "the principle of never fucking use sudo" ... it's better that a command run and fail without sudo. Stick to this and you won't make undoable mistake. It's served me well all these years: if I haven't seen the command run in `--dry-run` or read the man page I aint running it.
Replies: >>105846050 >>105846057
Anonymous
7/9/2025, 10:19:08 AM No.105846050
>>105846014
>Stick to this and you won't make undoable mistake
anon, the entire idea is if you run into a tedious issue, like a package problem, you can just easily undo and deal with it later. Or potentially have to fix less problems.
>just don't make mistakes XD
isn't an argument
Anonymous
7/9/2025, 10:20:14 AM No.105846057
>>105846014
>>105845983
>you actually dont need that
foss in a nutshell
Replies: >>105846066 >>105846074
Anonymous
7/9/2025, 10:21:47 AM No.105846066
>>105846057
>powershell is foss
no, its just the industry standard
shared by many industries
when you cut a plank you cannot ctrl z lmao
Replies: >>105846072 >>105846099
Anonymous
7/9/2025, 10:23:46 AM No.105846072
>>105846066
when you delete geometry in blender you can ctrl+z
Replies: >>105846082
Anonymous
7/9/2025, 10:23:59 AM No.105846074
1665
1665
md5: 62d6a83ee5203ca34f367724d6338dd4🔍
>>105846057
use case for quality of life?
Anonymous
7/9/2025, 10:25:13 AM No.105846082
>>105846072
yeah but blender is a very reduced program compared to an os
also you dont have the concern of going as fast, as you can, as light as feasible
Anonymous
7/9/2025, 10:29:17 AM No.105846099
>>105846066
> powershell is foss
correct
https://arstechnica.com/information-technology/2016/08/powershell-is-microsofts-latest-open-source-release-coming-to-linux-os-x/
Replies: >>105846104
Anonymous
7/9/2025, 10:30:32 AM No.105846104
>>105846099
lmao didnt know that
anyhoo, yeah
if youre a retard dont cli
and no undo is coming just git gut faggot
Anonymous
7/9/2025, 10:31:56 AM No.105846108
>>105845773
>>105845775
operating systems need to have native git-like version control built in
Replies: >>105846122 >>105852959
Anonymous
7/9/2025, 10:36:06 AM No.105846122
bait-or-mental-retardation
bait-or-mental-retardation
md5: d9878da6b54be91afba53e38772e2649🔍
>>105846108
Replies: >>105846124 >>105846892 >>105852959
Anonymous
7/9/2025, 10:36:37 AM No.105846124
>>105846122
explain why it's bad
Replies: >>105846138
Anonymous
7/9/2025, 10:37:35 AM No.105846128
>>105845845
>mv gayporn.gz.part-12 /dev/null
Womp womp.
Anonymous
7/9/2025, 10:39:49 AM No.105846138
>>105846124
are you seriously that fucking retarded?
it already exists its called system images
Replies: >>105846146 >>105846831
Anonymous
7/9/2025, 10:41:12 AM No.105846144
>>105845760 (OP)
Depending on the command, implementing undo would be:
- a leisurely afternoon of implementing helper scripts
- prone to side effects due to other software already acting on the temporary but now-reversed state
- insanely slow to create the backups and expensive to store
- irrelevant because of non-destructive state changes
- impossible due to no access to underlying state to backup or restore it

Just write a script to snapshot your VM every 30 seconds if you're so afraid
Anonymous
7/9/2025, 10:41:17 AM No.105846146
>>105846138
images are nothing like a git for a FS.
The main difference being, you could revert without having to stop what you're doing and re-image.
Replies: >>105846155
Anonymous
7/9/2025, 10:42:46 AM No.105846155
>>105846146
yeah but have you thought how you could achieve that in practice?
the amount of bloat from the backup
the slowdown because you have to create said backups
every single time you do a change to a file

thats even more fucking retarded
this is new levels of retardation tier
Replies: >>105846168 >>105846248 >>105846267
Anonymous
7/9/2025, 10:45:43 AM No.105846168
>>105846155
>yeah but have you thought how you could achieve that in practice?
binary hashes + granular opt-in
I think solving problems for a more modern approach is a lot better than dragging around a bad foundation from the 1960s.
Replies: >>105846187
Anonymous
7/9/2025, 10:49:22 AM No.105846187
>>105846168
yeah, do your opt in
and then see how many peopole actually use it because it makes their os run like a tank

you have fuck all idea about what youre talking about because youre tying the speed of your os to the speed of your hard drive
because how are you gonna store the changes otherwise you retard?
>dragging around a bad foundation from the 1960s.
ah, youre one of these lispretards who have fuck all ideas, only expectations they drop on your lap
and then expect YOU to figure shit out

nono, frend
write it yourself
even a fucking proof of concept, which never materializes because theyre all abandoned once the creator realizes how retarded an idea it was
Anonymous
7/9/2025, 10:51:37 AM No.105846197
>>105845857
Cringe
Anonymous
7/9/2025, 10:54:18 AM No.105846215
>>105845861
No you can't
> shift+del
> ctrl+z
> nothing happens

The "delete" button by itself doesn't actually delete a file, it just moves it to the recycle bin, so the undo there is to just make the move in a separate direction. rm -rf is the equivalent of shift+delete which actually deletes the file and you can't undo that.
Replies: >>105846257
Anonymous
7/9/2025, 10:58:16 AM No.105846235
>>105845845
>explain why you can't "undo" mv
Because loonix philosophy is that of 1 gazillion microprograms. The shell you type commands into doesn't know how to do anything. When you type "mv" it searches for "mv" and executes a the "mv" binary to move the files. When that program execution finishes, the shell has no context about what the fuck the program actually did so it cannot undo anything. To implement undo you'd have to do something mental like have a dotfile where every command is required to write the command that would undo what it just did, then the "undo" binary would read that file, execute the last command, then remove the last line of the file. Now you have to make sure every single binary you ever execute is emitting the command to reverse it or some flag indicating it cannot be undone, which means cooperation from dozens if not hundreds of binaries.
tl;dr massive design flaw in the design philosophy itself
Replies: >>105846244 >>105846257 >>105846355
Anonymous
7/9/2025, 10:59:44 AM No.105846244
>>105846235
>massive design flaw in the design philosophy itself
ok
how would you do things, in practice, then
soapbox is yours
Replies: >>105846315
Anonymous
7/9/2025, 11:00:18 AM No.105846248
>>105846155
>the slowdown because you have to create said backups
>every single time you do a change to a file
dude CoW filesystems are already a thing
Replies: >>105846251
Anonymous
7/9/2025, 11:01:11 AM No.105846251
>>105846248
>copy on write
another meme buzzword for you

tell me what does it mean to you
Replies: >>105846267
Anonymous
7/9/2025, 11:02:58 AM No.105846257
>>105846215
Don't most DEs also fake this functionality?
It wouldn't take a genius to make a command line that runs with the same functionality, even a hacky one. Arbitrarily pick some rm commands that actually move things to a temporary directory that'll be cleared at some arbitrary time (since most "undo" commands come within a minute or so, you could clear it hourly, every 6 hours, 12, whenever it's larger than x...) and others that run as expected.

To you this naturally seems insane, but something being insane isn't enough of a reason for it not to exist. Think of how many insane things people create because they're caught up on the idea that what the world needs is Linux for Monkeys, not training wheels for human beings to bridge the gap between Windows and >>105846235
Replies: >>105846265 >>105846272
Anonymous
7/9/2025, 11:04:58 AM No.105846265
>>105846257
its not insane, its not even hard to do
its just that nobody bothers
and if a functionality is not needed then its not implemented

security 101- if you have less code to audit, you will miss less errors
its not even security related, its just common sense
Replies: >>105846272
Anonymous
7/9/2025, 11:05:07 AM No.105846267
>>105846155
>>105846251
>reddit typer doesn't understand filesystem basics
Replies: >>105846277
Anonymous
7/9/2025, 11:06:24 AM No.105846272
>>105846257
>>105846265
however, given the extensibility of shells in general, the user is free to implement their own solution, and even share it
its just that the undo function will not be implemented by the maintainer of the shell proper (apparently)
Replies: >>105846291
Anonymous
7/9/2025, 11:07:31 AM No.105846277
>>105846267
>shartynegroe
i knew youre a shartypedo because youre profoundly fucking retarded
its just that i wasnt sure
Replies: >>105846284
Anonymous
7/9/2025, 11:08:16 AM No.105846284
>>105846277
Take your meds, tranny.
This is my second post ITT by the way.
Replies: >>105846292
Anonymous
7/9/2025, 11:09:26 AM No.105846291
>>105846272
>shells
>extensibility
you only need to write a script for this, you can make it systemwide too, lmao
Replies: >>105846302
Anonymous
7/9/2025, 11:09:28 AM No.105846292
Screenshot from 2025-04-24 22-15-34
Screenshot from 2025-04-24 22-15-34
md5: 49b8c87783483224fcd0485ae66774c4🔍
>>105846284
>
>calls you a trany
Replies: >>105846298
Anonymous
7/9/2025, 11:10:06 AM No.105846298
>>105846292
why are you screenshotting and saving those kinds of posts?
Replies: >>105846304 >>105846325
Anonymous
7/9/2025, 11:10:55 AM No.105846302
>>105846291
yeah
i just fuckken love cli, you can do whatever you want with it
its a keystone of the whole ecosystem
Anonymous
7/9/2025, 11:11:14 AM No.105846304
screenshot
screenshot
md5: 8c0f915ff674ac39643ee18c87cedc17🔍
>>105846298
Because he has to prove that he posts there while accusing those who do not.
Replies: >>105848456 >>105848823
Anonymous
7/9/2025, 11:13:21 AM No.105846315
>>105846244
Wangblows already did it by making the always-running explorer.exe the expected way for human users to interact with the file system. Ostensibly it keeps a stack of whatever file system manipulations the user has done which can all be undone until such time as the user ends the process. If any operation cannot be undone it alerts the user first.
It cannot be done in any reasonable way if every single file system manipulation is expected to be its own binary execution. Of course if OP is asking for a global undo for ALL programs that's just retarded. You can't press ctrl+z on Windows and have it uninstall a Steam game, for example.
Replies: >>105846338
Anonymous
7/9/2025, 11:14:40 AM No.105846323
clown_pepe
clown_pepe
md5: 21fcaa65eac76fa70f771155c6121110🔍
>>105845760 (OP)
>remarkably poor excuse for not letting you undo a trivial command with a single keyword.
but if your simple command is "wipe the disk and replace it with all zeros", how exactly are you supposed to undo it? it's a very straightforward command. it's also completely irreversible due to hardware limitations. how exactly do you propose this command be made reversible?
>don't allow the command
see, now we're getting somewhere. you want people to hold your little babby hand so you're not allowed to do anything the developers of the program cannot reverse. is that it? did I get it right?
Replies: >>105846370
Anonymous
7/9/2025, 11:14:59 AM No.105846325
Screenshot from 2025-04-21 23-28-06
Screenshot from 2025-04-21 23-28-06
md5: da5540cc183dc523e38808f350d67fce🔍
>>105846298
to make you re-instate a site wide captcha because you want to protect your reputation, obviously
Anonymous
7/9/2025, 11:18:58 AM No.105846338
>>105846315
>Of course if OP is asking for a global undo for ALL programs that's just retarded. You can't press ctrl+z on Windows and have it uninstall a Steam game, for example.
thats more or less what the discussion has turned into

and undoing the equivalent of explorer.exe would be trivial, bc what it does?
mv
rm
mkdir
touch
thats it

oh, and merging of files
but thats mv evendoe i never used it that way to be honest
Anonymous
7/9/2025, 11:22:08 AM No.105846355
>>105846235
>The shell you type commands into doesn't know how to do anything. When you type "mv" it searches for "mv" and executes a the "mv" binary to move the files
how it should be, yes. you have no idea what kind of setup I'm running and I shouldn't have to tell you, just make sure your fucking program supports the filesystem interface.
Replies: >>105846365
Anonymous
7/9/2025, 11:23:25 AM No.105846365
>>105846355
>program should know which filesystem it writes to
fucking retard
Anonymous
7/9/2025, 11:24:10 AM No.105846370
>>105846323
No, you didn't. you substituted "simple" for "trivial" and destroyed the meaning of what OP said, leading to your confusion.
"Wipe the disk and replace it with all zeros" is not a trivial command. "move file.txt into a folder" is a trivial command, so trivial that people ITT have described how you could create your own script to do it.
Although not stated directly, a more reasonable inference is that the standard is "if you can undo it in a GUI, you should be able to undo it in a terminal"
Replies: >>105846381 >>105846384 >>105846417
Anonymous
7/9/2025, 11:24:32 AM No.105846371
>>105845845
>that not being how it works is precisely the point. rm -rf is one thing, now explain why you can't "undo" mv.
Press the up key.
Swap around the target and destination.
Replies: >>105846382
Anonymous
7/9/2025, 11:26:27 AM No.105846381
>>105846370
>"move file.txt into a folder" is a trivial command
if it's so trivial, what should it do when file.txt already exists?
Replies: >>105846388 >>105846417
Anonymous
7/9/2025, 11:26:33 AM No.105846382
>>105846371
realtive paths fuck with this but its not a big problem
Anonymous
7/9/2025, 11:26:53 AM No.105846384
>>105846370
>"Wipe the disk and replace it with all zeros" is not a trivial command.
>cat /dev/zero > /dev/device
but it is a trivial command. you specify that you want to overwrite the contents of an entire block device with zero, that's it. there's nothing complex going on there. you get a handle to the device, point to the start, and just run till the end writing a zero in every location.
Replies: >>105846389 >>105846417
Anonymous
7/9/2025, 11:27:38 AM No.105846388
>>105846381
backup
you try to make it look like its a big deal

are you the same shartyretard from before?
Replies: >>105846395
Anonymous
7/9/2025, 11:27:43 AM No.105846389
>>105846384
This doesn't zero entire disk if it's a SSD
Anonymous
7/9/2025, 11:28:44 AM No.105846395
>>105846388
Backup what? And where? If it's so trivial, why didn't you back it up yourself?
Replies: >>105846398
Anonymous
7/9/2025, 11:30:03 AM No.105846398
>>105846395
you already have a .trash folder, shartynegroe
whats the problem with having a .backup alongside it?
youre so fucking retarded even your bait is weak
Replies: >>105846405
Anonymous
7/9/2025, 11:30:52 AM No.105846405
>>105846398
I don't have a .trash directory anywhere.
Replies: >>105846407
Anonymous
7/9/2025, 11:31:17 AM No.105846407
>>105846405
thats because you use an os made in africa
Replies: >>105846414
Anonymous
7/9/2025, 11:32:10 AM No.105846414
>>105846407
No it's because I'm not a nigger and don't destroy everything around me.
Replies: >>105846427
Anonymous
7/9/2025, 11:32:29 AM No.105846417
>>105846370
"Described how you could create your own script to do it." should read "described how you could create your own script to *undo* it."

>>105846381
In a competent system: warn the user that the file already exists, unless part of a script with a flag that specifically goes "ignore that, overwrite it" which was hopefully written by someone who knows what they're doing
In Unix: overwrite it, obviously. If you suffer data loss that's your fault, software should be easy to write not easy to use.

In hacky-imaginary-unix: move the existing file.txt to a temp directory, then move the new file.txt to the destination folder. if the temp directory already contains that file, overwrite it. if the temp directory is full, delete items oldest to newest until there's enough space for file.txt

>>105846384
At the risk of getting tautological: a trivial command is a command that is easy to undo, a simple command is a command that is easy to invoke.
Replies: >>105846420
Anonymous
7/9/2025, 11:33:14 AM No.105846420
>>105846417
Why should an user be warned? He already told a program to move a file, he knows what he's doing.
Replies: >>105846442
Anonymous
7/9/2025, 11:34:00 AM No.105846427
>>105846414
>don't destroy everything around me.
>prosneeds to destroy constructive discussion going on around him
and your fukken start menu is written in react

its not made in africa
its an os found on a park bench alongside used syringes and dirty underwear
Replies: >>105846433
Anonymous
7/9/2025, 11:35:44 AM No.105846433
>>105846427
Make a constructive argument for why you didn't already manually back up everything into a separate disk/machine that's not connected to internet and not even turned on unless you're actively backing things up that you deem to have any sort of value to yourself or others.
Replies: >>105846437
Anonymous
7/9/2025, 11:36:49 AM No.105846437
>>105846433
>Make a constructive argument for why you didn't already manually back up everything into a separate disk/machine
because im not a complete retard, a concept utterly alien to shartypedos
Replies: >>105846441
Anonymous
7/9/2025, 11:37:14 AM No.105846441
>>105846437
>This is so valuable to me, that's why I didn't prevent a simple rm -fr or the disk failing from completely losing it all.
You have mental capacity of a nigger.
Replies: >>105846467
Anonymous
7/9/2025, 11:37:24 AM No.105846442
>>105846420
Because there are cases where assuming the user knows what he's doing is stupid. Why would a user of a beginner distro know what he's doing? Why are there a thousand fake Windows UIs designed to help him, but the minute it comes to the terminal you're bounced back to something that was at the low end of user-friendliness in 1971?
Replies: >>105846455
Anonymous
7/9/2025, 11:37:55 AM No.105846448
Far too user friendly. Footguns are what makes Linux fun. It's the only way they can feel anything, knowing that at any moment any minor slipup can create a huge mess that they can then solve like a giant sudoku.
Anonymous
7/9/2025, 11:38:20 AM No.105846455
>>105846442
Windows exists for retards like you, I will continue assuming that only intelligent people use Linux.
Anonymous
7/9/2025, 11:41:12 AM No.105846467
Screenshot from 2025-04-22 12-50-45
Screenshot from 2025-04-22 12-50-45
md5: 590c95f745a17f0a36c2d773e2927a07🔍
>>105846441
>You have mental capacity of a nigger.
yet youre the one who cant grasp basic english
>nuh backup everything
no, only whats precious
also how the fuck do you concile the fact that you were talking about backuping an mv-overwrite to then digress into discussing backup-storage
other than your profound mental retardation?
Replies: >>105846475
Anonymous
7/9/2025, 11:42:14 AM No.105846475
>>105846467
So if it was precious, you have backed it up already. Can you explain usecase for protecting files that aren't relevant?
Replies: >>105846480
Anonymous
7/9/2025, 11:43:18 AM No.105846480
>>105846475
>Can you explain usecase for protecting files that aren't relevant?
>could you explain the usecase for my original point?
yeah no thats trolling outside of /b/
we gotta make some order with you sharty retards in here
Replies: >>105846486
Anonymous
7/9/2025, 11:43:42 AM No.105846481
Isn't it fun to know many of these things were known as problems before the average /g/ user was born?
https://web.mit.edu/~simsong/www/ugh.pdf
>File deletion is forever. Unix has no “undelete” command. With other, safer operating systems, deleting a file marks the blocks used by that file as “available for use” and moves the directory entry for that file into a special directory of “deleted files.” If the disk fills up, the space taken by deleted files is reclaimed.
>Most operating systems use the two-step, delete-and-purge idea to return the disk blocks used by files to the operating system. This isn’t rocket science; even the Macintosh, back in 1984, separated “throwing things into the trash” from “emptying the trash.”
>Tenex had it back in 1974.

But remember, if you think that's how a computer should work, you're a stupid child - you, not the undead zombie-conventions of an OS that was outdated before it was written and which have eaten the brains of everyone to come since
Replies: >>105846492 >>105846503 >>105846623
Anonymous
7/9/2025, 11:44:02 AM No.105846486
>>105846480
Seems like you cannot provide a single reason for a system to protect files that weren't relevant enough for you to back up manually.
Anonymous
7/9/2025, 11:44:11 AM No.105846487
You heard it here first
Because of retarded niggers like OP, we shouldn't be allowed to simply tell the computer to do something (like launch a program or write to a file)
Instead we need complicated state-tracking overhead
Replies: >>105846490 >>105846530 >>105848599
Anonymous
7/9/2025, 11:44:58 AM No.105846490
>>105846487
i mean
hes a sharty retard
since when do they come up with anything relevant?
Anonymous
7/9/2025, 11:45:22 AM No.105846492
>>105846481
Measure 10 times, cut once has been known for milleniums, but somehow this is a problem to computer retards.
Replies: >>105846509 >>105846538 >>105846557
Anonymous
7/9/2025, 11:47:14 AM No.105846503
>>105846481
On most desktop environments if I highlight a file on my linux desktop or file manager and press the del key, it moves to the trash directory, which I can view and move things out of if I change my mind. If I press shift+del it'll prompt me if I want to permanently delete the file, which is also a windows feature. It is only if I open a shell and type "rm [filename]" that it will be deleted forever with no confirmation prompt.
On windows, if I open cmd.exe and type "del [filename]", the same thing happens.
Replies: >>105846517
Anonymous
7/9/2025, 11:47:31 AM No.105846509
>>105846492
i feel unjustly targeted
but then i also worked in construction, maybe theres really something with the limp-wrists
Anonymous
7/9/2025, 11:49:21 AM No.105846517
>>105846503
If I hit my finger with a hammer, I can't just undo the action. So I simply don't hit my finger with a hammer.
Replies: >>105846538
Anonymous
7/9/2025, 11:51:47 AM No.105846530
>>105846487
You're jumping to stupid conclusions to find excuses to get mad.
Nobody says "we" shouldn't be allowed to do something. OP is entirely about the desirability of an "undo" feature. Undo lets you do whatever you want - it just lets you undo it again too.
Replies: >>105846537 >>105846567 >>105846639
Anonymous
7/9/2025, 11:52:45 AM No.105846537
>>105846530
Undo feature already exists, OP is just too retarded to use it because it's not as simple as hitting ctrl+z on your keyboard.
Anonymous
7/9/2025, 11:53:25 AM No.105846538
>>105846492
>>105846517
computers don't need to operate this way, and most safety critical systems don't.
are you telling me you'd read a thousand air accident reports caused by pilot error and conclude the solution is "don't make mistakes"? after all, the airplane was just dutifully following the pilot's instructions as it smashed into the mountainside...
(in the real world they went with "redesign procedures so pilots stop making the same errors over and over")
Replies: >>105846546 >>105846548
Anonymous
7/9/2025, 11:53:43 AM No.105846541
it already does if you're using a gui file manager though? you can just restore things from the trash. i dont think windows cmd or powershell have undo functions do they?
Replies: >>105846544
Anonymous
7/9/2025, 11:54:53 AM No.105846544
>>105846541
given OP dates the shell to 1964, i think they're asking about CLIs in general rather than the unix shell specifically.
Replies: >>105846609
Anonymous
7/9/2025, 11:55:22 AM No.105846546
>>105846538
All airport accidents were caused by some retard making a mistake somewhere.
Anonymous
7/9/2025, 11:55:47 AM No.105846548
>>105846538
>most safety critical systems don't.
what the fuck are you even talking about
or is it bait again
ie. trolling?

provide a precise example of what youre thinking about
a safety critical system which has an undo function lamao
Replies: >>105846565 >>105846574
Anonymous
7/9/2025, 11:57:23 AM No.105846557
>>105846492
Damn you should call up congress and talk to them about your revolutionary "just don't make mistakes lol" idea.
Think of how much cheaper we could build things if we didn't have to care about safety precautions for either workers or end users.
Replies: >>105846562 >>105846565
Anonymous
7/9/2025, 11:58:16 AM No.105846562
>>105846557
>safety precautions
Such as checking if the command you're about to enter will fuck up your system?
Anonymous
7/9/2025, 11:58:47 AM No.105846565
>>105846557
you dont have an undo function when youre pouring cement
now answer this
>>105846548
im getting impatient
Replies: >>105846574 >>105846600
Anonymous
7/9/2025, 11:59:09 AM No.105846567
>>105846530
if test -f $out; grep -i "nigger" $foo | wc -l >> $out; done

Implement undoing of this command which counts the amount of niggers in a file and appends the result to another file
Where is the undo code? Which program or bash feature handles undoing?
Replies: >>105846573
Anonymous
7/9/2025, 12:00:15 PM No.105846573
>>105846567
Just copy the file from an older snapshot if you genuinely fucked up and lost data, it's not that hard anon.
Replies: >>105846587 >>105846614 >>105846655
Anonymous
7/9/2025, 12:00:29 PM No.105846574
>>105846548
this was a more general point about accepting people will make mistakes and trying to ensure those mistakes don't fuck them over. sometimes that means warning them they're going to do it, sometimes that means letting them undo it, sometimes that means not letting them do it (although there's little case for that last one in personal computing - just warn them first.)
any real world system would just invite pedantic nitpicking over metaphors (does the "TOGA" switch in a plane count as "undoing" a landing approach, or is it more like terminating a program mid-execution? hours of off-topic fun.)

>>105846565
you're arguing with more than one person.
Replies: >>105846578 >>105846582 >>105846596
Anonymous
7/9/2025, 12:01:16 PM No.105846578
>>105846574
This is why airbus calls you retarded more than once https://www.youtube.com/watch?v=zvVa3W8XiP4
nomad
7/9/2025, 12:01:24 PM No.105846579
>>105845760 (OP)
op is a massive retard
Anonymous
7/9/2025, 12:01:44 PM No.105846582
>>105846574
>this was a more general point about accepting people
no
that was retard bait
safety critical systems are dealt with through redundancy
Replies: >>105846593 >>105846596
Anonymous
7/9/2025, 12:02:26 PM No.105846587
>>105846573
So how do you propose implementing the undo then? `undo [filename]`? Because if so then you're moving the goalpost. What if your command altered multiple files? What you were asking for is just an `undo` command that magically reverses whatever you did.
Replies: >>105846597
Anonymous
7/9/2025, 12:03:07 PM No.105846593
>>105846582
"this will fuck you over, are you sure? y/n" is a form of redundancy.
Replies: >>105846610
Anonymous
7/9/2025, 12:03:27 PM No.105846596
>>105846574
>>105846582
the exact opposite of a fucking undo function, in spirit
do it once, and make damn sure youre doing it right
even if you have to do it several times at once like in aerospace and how they have 3 computers running simultaneously and the system picks 2 concording results of an outlier
Replies: >>105846618
Anonymous
7/9/2025, 12:03:28 PM No.105846597
>>105846587
cp snapshots/date/file fuckedfile
Replies: >>105846605
Anonymous
7/9/2025, 12:03:55 PM No.105846600
>>105846565
>you dont have an undo function when youre pouring cement
They would add one if it was possible.
On a computer, these are solved problems. It's just Unixtards refusing to implement the solution.
People fuck up pouring cement all the time by the way.
Replies: >>105846612 >>105846624
Anonymous
7/9/2025, 12:04:26 PM No.105846605
>>105846597
You can already do this without implementing an "undo" feature
Replies: >>105846607
Anonymous
7/9/2025, 12:04:57 PM No.105846607
>>105846605
If you were less mentally ill, you'd realize that this is exactly what I wrote.
Replies: >>105846617 >>105846662
Anonymous
7/9/2025, 12:05:06 PM No.105846609
>>105846544
>>105845760 (OP)
huh, ok. well i mean CLIs don't have that functionality because it's just not worth it, right? you could implement an undo function in bash but it would probably massively slow down any command you run. it would end up being incredibly complex with lots of edge cases too. im sure other CLIs would have similar issues. the problem is that with a CLI you can modify the CLI itself and the environment it runs in. as soon as you do something that causes some sort of recursion to happen, suddenly things are going to spiral out of control.

also deleting things becomes just moving them to the trash - then if you really want to delete them from disk you have to use, what, a new, separate command? why did we need it in the first place? you could have just used mv to put in in the trash to begin with. as nice as it would be if you could just magically undo things, there's also just no way for the shell to programmatically invert the output of your shell command. maybe some simple use cases could have an undo function added to them but i dont know if even that would be worth it.
Replies: >>105846695
Anonymous
7/9/2025, 12:05:12 PM No.105846610
>>105846593
i guess idk who cares to be honest
evendoe i feel thats more of a plastic cap for a trigger
or a safety mechanism, i wouldnt classify that as redundancy
redundancy would be another person who makes the work as you
Anonymous
7/9/2025, 12:05:27 PM No.105846612
>>105846600
>solved problem
What is the solution to undoing an arbitrary bash script?
Replies: >>105846614 >>105846645
Anonymous
7/9/2025, 12:05:58 PM No.105846614
>>105846612
>>105846573
Anonymous
7/9/2025, 12:06:27 PM No.105846617
>>105846607
Then what was the point of making this stupid thread?
Replies: >>105846621
Anonymous
7/9/2025, 12:06:54 PM No.105846618
>>105846596
again we can be pedantic: if you're breaking off an approach it's because you've done the approach wrong and have to try again to get it right. you return to where you started from and give it another go.
"just don't make mistakes" as a mindset would prohibit breaking off approaches - if your approach wasn't stable by the decision altitude on your first go, you shouldn't be in the cockpit at all.
Replies: >>105846627 >>105846638
Anonymous
7/9/2025, 12:07:13 PM No.105846621
>>105846617
How would I know? I didn't make it.
Replies: >>105846629 >>105846639 >>105846662
Anonymous
7/9/2025, 12:07:26 PM No.105846623
>>105846481
If you use the windows command line, file deletions are also permanent. what is your fucking point
Anonymous
7/9/2025, 12:07:35 PM No.105846624
>>105846600
>They would add one if it was possible.
nono
you can undo pouring cement (actually concrete.)
but since thats a fuckup
its something thats avoided and thus very rare
so nobody prepared a pre-made solution

with concrete you either wait til it sets or you try with buckets and wheelbarrows
with the cli you write the opposite commands yourself
>but its too hard for me
then youre a retard and stay away from a cement mixer, or the cli
problem solved lamao
Anonymous
7/9/2025, 12:08:14 PM No.105846627
>>105846618
Well, feel free to make mistakes, just remember, once you nosedive into the ground, there's no trying again.
Anonymous
7/9/2025, 12:08:28 PM No.105846629
This >>105846621 was your post, unless you're braindead and responded to the wrong person.
Anonymous
7/9/2025, 12:09:31 PM No.105846638
>>105846618
>toga
a human procedure
you configure the plane to go around, but its near identical to your takeoff configuration
you dont have a function for that, you have a procedure
whats so fucking hard to understand for your autistic ass?
i thought you were supposed to be good at abstractions
Anonymous
7/9/2025, 12:09:32 PM No.105846639
>>105846621
This >>105846530 was your post, unless you're braindead and responded to the wrong person.
Replies: >>105846646
Anonymous
7/9/2025, 12:10:07 PM No.105846645
>>105846612
The measure / cement pouring retard was responding that complained solely about file deletion. That's a completely solved problem.
Anonymous
7/9/2025, 12:10:12 PM No.105846646
Screenshot 2025-07-09 at 13-09-51 _g_ - 61 years of the shell still no undo command a - Technology - 4chan
>>105846639
I'm sure it was in your head, retarded tranny.
Replies: >>105846655 >>105846662
Anonymous
7/9/2025, 12:11:47 PM No.105846655
>>105846646
So what was the point of this >>105846573 post then? Are you from a discord server?
Replies: >>105846667
Anonymous
7/9/2025, 12:11:48 PM No.105846656
damn daniel. why don't you make a fucking bind in your terminal app. or a different shell. or some other bullshit you can do. or just don't use undo. that's probably your best option. undo is for faggots.
Anonymous
7/9/2025, 12:11:55 PM No.105846658
>>105845760 (OP)
use case?
Anonymous
7/9/2025, 12:12:55 PM No.105846662
>>105846621
>>105846607
>>105846646
>shitting up the thread
Replies: >>105846667 >>105846682
Anonymous
7/9/2025, 12:13:24 PM No.105846667
>>105846655
>>105846662
All you have to do is take your meds and then everything will start making sense.
Anonymous
7/9/2025, 12:15:44 PM No.105846682
Screenshot from 2025-04-21 16-37-13
Screenshot from 2025-04-21 16-37-13
md5: 8d787fa007cd1195f36d87d7dd8db11c🔍
>>105846662
even the op is shartyhomo bait
Anonymous
7/9/2025, 12:17:09 PM No.105846687
Use yocto. make a new artifact delta for every shell command you run. there you go, faggot. I created undo for you.
Anonymous
7/9/2025, 12:17:19 PM No.105846689
angry-penguin
angry-penguin
md5: c5ddcd65ba45cc78d5d5508cb2dc1e23🔍
>linux that looks like Mac OS!
>linux that looks like Windows!
>linux that looks like older Windows!
>linus that looks like iOS!
>linux that looks like nothing you've ever seen before!
hmm, how about linux with basic user-friendliness?
>use case? that's not how it works, just don't make mistakes. using a computer is like pouring cement or crashing a jet. filtered shartroon retard, take your meds.
Replies: >>105846692 >>105846696 >>105846731
Anonymous
7/9/2025, 12:18:14 PM No.105846692
>>105846689
>why are there no premade solutions for my diy project!
okay retard
Anonymous
7/9/2025, 12:18:20 PM No.105846695
>>105846609
to expand on this, you can run other things, like a python script, from any CLI. how would you undo the actions of an arbitrary python script from within your CLI? the CLI doesn't know what the python script did, and it has no way of finding out. network connections complicate things as well. suppose you listen for incoming traffic on a network socket, then run something that sends a message back using a CLI once you get the right message in. would you need to undo the sent message, too? thats obviously not possible.

the only sensible way to implement an undo function is to back-up files - but this would very, very quickly eat up your disk space. if you want back-ups you just use system restore points and manually back-up important files you need to keep around. the *problem* that an undo function tries to solve is already solved by just backing up your data. making it create an entire system restore point every time you execute a mv command in bash just seems excessive. if you need redundancy there are specialized systems for that, too. so i dont think CLIs of any type will want to use an undo command that isnt very simple and only works in specific uses cases.
Anonymous
7/9/2025, 12:18:20 PM No.105846696
tux-son
tux-son
md5: fe3081b78c5165deec90234a7698d574🔍
>>105846689
it is user friendly as fuck
your problem is that it isnt retard-proof
Replies: >>105846731
Anonymous
7/9/2025, 12:23:42 PM No.105846731
keith-sed
keith-sed
md5: e41ac411ddf85d7ec4c71d75f352307c🔍
>>105846689
>>105846696
cont
unironically macos is less user friendly than loonis because you have to learn a new keyboard layout and their windows work differently from windows and loonis
they deliberately introduce friction into the workflow to remind the user hes working on a mac.
(welp, i dont have time for that, with expected results)
Anonymous
7/9/2025, 12:27:45 PM No.105846764
if you want hundreds of artifact images, feel free to implement this. I hope you have the storage and its not slow storage and dont mind taking the snapshots every single time you enter a single shell command and waiting for each snapshot to finish before you run another shell command. you will simply pay the price for being an idiot who wants to use undo on a shell
Replies: >>105846803
Anonymous
7/9/2025, 12:33:40 PM No.105846795
you can call it linux for retarded faggots who type the wrong shit in the shell constantly like OP
Anonymous
7/9/2025, 12:35:13 PM No.105846803
>>105846764
Snapshots are instant on my machine, but I make them once per system update and once an hour in my home dir since I don't make fuckups every 5 seconds.
Replies: >>105846821
Anonymous
7/9/2025, 12:38:35 PM No.105846821
>>105846803
then you do a cornjob and thats it you demented retard
toital sharty retard death
Replies: >>105846825
Anonymous
7/9/2025, 12:39:41 PM No.105846825
>>105846821
I'm not the one getting filtered by this.
# time btrfs subvolume snapshot -r / /snapshots/@/$(date +"%Y%m%d%H%M%S")
Create readonly snapshot of '/' in '/snapshots/@/20250709133903'

real 0m0.039s
user 0m0.003s
sys 0m0.012s
Replies: >>105846831
Anonymous
7/9/2025, 12:41:10 PM No.105846831
>>105846138
>>105846825
literally already stated itt
does it hurt to be retarded? because i feel like it should...
Replies: >>105846837
Anonymous
7/9/2025, 12:41:59 PM No.105846837
>>105846831
Nobody reads your posts, I hope you're not surprised.
Replies: >>105846841
Anonymous
7/9/2025, 12:42:34 PM No.105846841
>>105846837
no, i think youre trying to bait
which is trolling
Replies: >>105846870
Anonymous
7/9/2025, 12:46:33 PM No.105846870
>>105846841
Nobody else thinks this, and neither would you, if you took your meds.
Replies: >>105846885
Anonymous
7/9/2025, 12:47:22 PM No.105846881
>>105845760 (OP)
You would have to, for every command executed, keep a state of the machine before it was executed. Maybe you can reduce overhead for some things like keeping diffs for the files but then you would have to know what each command can do. Maybe you could allow the command developer to support an interface so you have a universal way for the undo command to look for changes but I cant forsee this working fully well. Maybe a service or a kernel module to keep the changes? Propably the most realistic way to have it is for each cmd programm to have an --undo flag, similar to hiw each GUI program knows to undo its own actions, but there would be some development needed to not be heavy on disk usage, so there would have to be demand, which I dont think there is much for most programs.
Replies: >>105846905
Anonymous
7/9/2025, 12:47:44 PM No.105846885
>>105846870
then youre profoundly retarded
and you shouldnt be posting here in that case either
Replies: >>105846890
Anonymous
7/9/2025, 12:48:38 PM No.105846890
>>105846885
Dilate, schizo spastic tranny.
Anonymous
7/9/2025, 12:48:40 PM No.105846892
>>105846122
>still desperately trying to force "le bait" forced zoomer meme
Just say troll, you pathetic coward.
Replies: >>105846908
Anonymous
7/9/2025, 12:50:42 PM No.105846905
>>105846881
Good filesystems already support this, retards just don't know how to use them.
Replies: >>105846937
Anonymous
7/9/2025, 12:51:30 PM No.105846908
Screenshot from 2025-07-09 12-49-34
Screenshot from 2025-07-09 12-49-34
md5: 5e6c87c355be99da32e415d2e02e0d54🔍
>>105846892
>picks one specific post from the whole discussion to derail the thread even further
the whole therad was intended to be bait
wtf is this
baitception, or something?

shartynegroe then
which is also synonymous of mentally disabled
its like wet water vs water is wet kind of situation here
Anonymous
7/9/2025, 12:56:31 PM No.105846937
>>105846905
Well yea I'm with you, but to create an universal undo command you have to support most file systems, which includes ones that don't support that. For tge record I think a universal undo command is kinda pointless
Replies: >>105846945
Anonymous
7/9/2025, 12:58:19 PM No.105846945
>>105846937
No, I don't actually care about morons who refuse to use the correct filesystems.
Replies: >>105846982
Anonymous
7/9/2025, 1:07:05 PM No.105846982
>>105846945
Valid
Anonymous
7/9/2025, 3:10:13 PM No.105847763
>>105845760 (OP)
you can't undo formatting a drive
a partitioning tool already shows you changes before you write them to the disk
there is nothing more that can prevent user from being uncatious

formatting or zeroing a drive can't be cancelled
it will just stop moving the bits at that point
that's why everybody says to stop and reread your command before executing it

you can't undo removing a file
if you want you can have rm -i to prompt you
or define an alias that moves the files somewhere like ~/.trash
but it's dumb, you are wearing out the drive

if you move files you can move it back
but if you overwrite files nothing can be done
if you want to change something then
make a backup before you do such changes

stop being retarded
you are asking for the impossible
it's an user error if he doesn't use any precautions when doing irreversible operations
you can't guard an user from stupidity
Anonymous
7/9/2025, 3:38:12 PM No.105847964
>>105845760 (OP)
So go ahead and write it, faggot.
Anonymous
7/9/2025, 4:39:52 PM No.105848435
>>105845760 (OP)
>>still no "undo" command
is this a fucking joke? the whole point of the shell is to be in control. you are responsible of the whole system. it will respond to your commands...
just use a file explorer instead, you retard
Replies: >>105848535 >>105848639
Anonymous
7/9/2025, 4:42:24 PM No.105848456
>>105846304
Is that glowie gloryhole really behind cloudflare? Kek.
Replies: >>105848600
Anonymous
7/9/2025, 4:53:45 PM No.105848535
>>105848435
>the whole point of the shell is to be in control
>that's why we're not giving you this standard control mechanism
Anonymous
7/9/2025, 5:00:28 PM No.105848599
>>105846487
How do you reconcile this with sudo? If I'm a sudoer I shouldn't need to su the computer should gtfoomy.
Anonymous
7/9/2025, 5:00:33 PM No.105848600
Screenshot from 2025-04-15 18-08-34
Screenshot from 2025-04-15 18-08-34
md5: b6aeec04c640e233365ec5bacb38dbe3🔍
>>105848456
its a fed + trannyhole
constantly bombarded with tranny-coded shit because muh bait
they also have leftypol connections
it makes perfect sense that the person who hacked 4 keks was a trany who posted there
Replies: >>105848823 >>105848830
Anonymous
7/9/2025, 5:02:58 PM No.105848619
>>105845760 (OP)
skill issue, see:
btrfs subvolume snapshot --help
Replies: >>105848661 >>105849190
Anonymous
7/9/2025, 5:05:43 PM No.105848639
>>105848435
I mean, he isn't wrong in spirit. computers should have become more transactional and immutable by design, but shitty tranny C ware set us up with the bomb. Linux is the only ecosystem that's treading in the right direction ironically.
Replies: >>105848664 >>105849190
Anonymous
7/9/2025, 5:08:20 PM No.105848661
>>105848619
based
Anonymous
7/9/2025, 5:08:57 PM No.105848664
>>105848639
>cware set us the bomb
wtf is wrong with measuring once and cutting twice or whatever the kids say these days?
even fucking sub 80 construction workers can do that wtf is wrong with you lisptranies
are you somehow even blow that?
Replies: >>105848698 >>105849085
Anonymous
7/9/2025, 5:15:09 PM No.105848698
>>105848664
>measuring once and cutting twice
that's not how current operating systems work. they all encourage tinkering which causes problems.
Replies: >>105848710
Anonymous
7/9/2025, 5:16:45 PM No.105848710
>>105848698
>they all encourage tinkering which causes problems.
incompetence causes problems
but big corpo wants incompetents because theyre cheap

what i fail to understand is why do you support big corpo endeavours
because a casual user wont put his hands into the works regardless of the os
and there he can undo all he wants
Replies: >>105848727
Anonymous
7/9/2025, 5:19:03 PM No.105848727
>>105848710
>incompetence causes problems
wrong, lack of computer enforcement does. this has been proven repeatedly throughout history and why the companies with real software engineering can offer 5 9's uptime.
Replies: >>105848739
Anonymous
7/9/2025, 5:20:39 PM No.105848739
>>105848727
no, incompetence
at the lowest level someone has to write the enforcement system too
kek
kinda chicken and egg, isnt?

whats your stack im curious
Anonymous
7/9/2025, 5:32:23 PM No.105848823
>>105846304
they moved to a different domain now.
>>105848600
they have no connnection to leftypol lmao, the sharty hates anything remotely leftwing
Replies: >>105848923 >>105848930
Anonymous
7/9/2025, 5:32:59 PM No.105848830
>>105848600
I mean 4chan is also behind cloudflare, but I'd assume they'd stay away from it but apparently nope. It's all the same, cloudflare is so fucking gay.
Anonymous
7/9/2025, 5:34:53 PM No.105848843
>>105845760 (OP)
Because you're not "undoing" arbitrary operations in any given GUI program. You're undoing a finite set of operations which have defined semantics for "undoing" those operations. Shells are a way of interacting with arbitrary programs who don't have defined semantics of what "history" or "undo" could mean.
>why don't the shell builtins have support for undo
Because nobody wants it and you'd have to keep either filesystem snapshots or diffs of every operation the builtins do.
Replies: >>105849158
Anonymous
7/9/2025, 5:36:02 PM No.105848854
>>105845760 (OP)
i dont get it. what do you mean "undo"? how do you "un do" something that you did? why are you asking for something that you haven't even explained how it works?
Replies: >>105849158
Anonymous
7/9/2025, 5:36:03 PM No.105848855
>>105845861
Not `shift+delete`, that's basically the `rm` option for Windows. "Deleting" in Windows without that is just putting files in the "recycle bin" to delete later on.
Anonymous
7/9/2025, 5:43:25 PM No.105848923
fockin-mtv-i-swear
fockin-mtv-i-swear
md5: f5db2d74c6e248f234519623135f9a1a🔍
>>105848823
yeah no
either damage control or you just dont know the sharty
its a fed + kike + tranyhole
Anonymous
7/9/2025, 5:43:58 PM No.105848930
>>105848823
>they moved to a different domain now.
And how would I know this? Fuck off nigger.
Anonymous
7/9/2025, 5:46:25 PM No.105848955
>>105845777
trips of truth.
Anonymous
7/9/2025, 5:59:27 PM No.105849085
>>105848664
a computer is capable of doing better, why should moving a text document have more risk of data loss than moving a physical stack of paper?
Replies: >>105849121 >>105849128 >>105849184 >>105851377
Anonymous
7/9/2025, 6:03:00 PM No.105849121
>>105849085
Ask me how I know that you wrote this with greasy hands that would ruin any paper you touch.
Anonymous
7/9/2025, 6:03:32 PM No.105849128
>>105849085
because your guarantees come at a cost
>a computer is cabable of doing better
feel free to write it
are you the same guy whose stack i asked?
Replies: >>105849158
Anonymous
7/9/2025, 6:06:53 PM No.105849158
>>105848854
How it works is explained practically if not technically: when you press ctrl+z in a graphical program, the last thing you did is undone. For example, while typing this post it erases most of what I've just typed - but I can undo that by pressing ctrl+y. In file manipulation, pressing ctrl+z after moving a file returns the file to where it was before it was moved.
This isn't some deranged Xanadu hypothetical that nobody's been able to get to work, it's something you're very familiar with from using a computer in daily life. You're playing stupid by pretending not to understand.

>>105848843
Is a much better answer, although it doesn't fully account for why "undo" seems basically absent even in non-unix cli systems. if you don't allow piping and "remove" doesn't immediately permanently delete stuff, reversing most basic commands is easy - still, best you're gonna get is the occasional undelete.

>>105849128
>feel free to write it
What is the use case for him re-implementing Microsoft Word under Windows, which - despite being shit - has the amazing ability to be safer and easier than paper?
Replies: >>105849173 >>105849257
Anonymous
7/9/2025, 6:09:14 PM No.105849173
>>105849158
>Microsoft Word
oh, because you maniulate your DE with word?
or is it explorer.exe?
and if you want casual user guarantees, even loonix with its file explorer allows you to ctrl z
if its gui youre talking about then dont touch things way over your paygrade
stay in casual-user land
Anonymous
7/9/2025, 6:10:01 PM No.105849184
>>105849085
there's nothing stopping programmers from making this, its just that putting facilities to make undo consistent across the entire range of operations isn't worth it in many cases, nobody's going to do this implementation without a reason better than you losing some work and coming to /g/ to rant about it
Anonymous
7/9/2025, 6:10:33 PM No.105849190
>>105848639
have you ever tried deleting a file in the powershell console or in cmd.exe, or in the shell in macos? afaik the files get DELETED, not sent to the Trash folder.
it is YOUR responsibity to understand the system and make sure shit works the way you want it to.
in the case of 'rm', you could use another filesystem, as >>105848619 says. but, see, you still need to understand the technical details to make sure things won't go wrong.
Anonymous
7/9/2025, 6:10:35 PM No.105849192
>gui
*cli
you autists are tiresome
id ra ther talk with hydrocephaliacs bc theyre faster on the uptake and have less ego
Anonymous
7/9/2025, 6:18:41 PM No.105849257
>>105849158
oh so like how i can type cd - to undo a directory change.
i'm just confused as to why you're trying desperately to describe a feature that you want to someone else instead of just implementing it yourself? are you gay or something?
Replies: >>105849277 >>105849370
Anonymous
7/9/2025, 6:20:38 PM No.105849277
>>105849257
typical lisptrany
he didnt snitch on his stack bc its certainly sopme aggravating retardation like lisp + haskell + rust + js
Anonymous
7/9/2025, 6:30:16 PM No.105849370
>>105849257
It's not a question of wanting the feature, it's just highlighting how odd it is that it's absent, given we take it for granted elsewhere.
People regularly try to find the chimerical "beginner" Linux distro that will appeal to Windows users. There are tens if not hundreds of failed attempts at making such a thing. People have tried every variety of DE, every variety of pack in software, every variety of stupid configuration changes, and not one of them has thought: "hmm, how do we make the terminal less intimidating by incorporating basic features and protections that are assumed to be standard elsewhere?"
I find that interesting in and of itself. And that's just Linux, which has a lot of Unix specific weirdness that makes the task a nightmare.
Replies: >>105849382
Anonymous
7/9/2025, 6:31:46 PM No.105849382
>>105849370
>. And that's just Linux, which has a lot of Unix specific weirdness that makes the task a nightmare.
compared to what?
your imaginary lisp os on an imaginary lisp machine?
Anonymous
7/9/2025, 6:38:46 PM No.105849442
>>105845760 (OP)
Undo is realistically impossible, but 90% of the coreutils could implement a preview function trivially.

>mv
/DirectoryA/SubdirectoryA/FileA > /DirectoryA/SubdirectoryB/FileA?
Same for cp, sed, awk, echo, etc...

A small preview of the change to see if it's facially reasonable. It's more of a convenience function than any true necessity obviously, but it saves having to restore a backup from a mangled conf file by a malformed command, or going in to an editor by hand to fix white space in a YAML file after an echo missed a space etc...

The larger point that OP is alluding to is that GUIs give you easier exploration. You get to try out different things easily, though obviously you can't be as efficient as CLI.
Replies: >>105849479
Anonymous
7/9/2025, 6:43:00 PM No.105849479
>>105849442
And this shit doesn't work the moment you remember that these systems are inherently multiuser.
Replies: >>105849559
Anonymous
7/9/2025, 6:51:57 PM No.105849559
>>105849479
why are we running an inherently multiuser OS on an inherently single user desktop computer anyway?
Replies: >>105849595 >>105849660
Anonymous
7/9/2025, 6:53:35 PM No.105849570
>>105845760 (OP)
$ set -o vi;

Now you can fuck up, press ESC, then press U to undo the fuckup (insertion mode granularity).
Anonymous
7/9/2025, 6:56:12 PM No.105849595
>>105849559
because not everyone component has to have the same privileges
a user is an abstract entity used to organize the os
the side effect is reusing the same infrastructure for true multi user environments
Anonymous
7/9/2025, 7:03:53 PM No.105849660
>>105849559
coreutils is written to work on any system, not just your mutilated version of it
Anonymous
7/9/2025, 7:52:55 PM No.105850061
1752083525078
1752083525078
md5: cd771f35e079f7f92392a823f5e6db04🔍
Anonymous
7/9/2025, 9:37:22 PM No.105850909
>>105845760 (OP)
Because you dont fucking understand what terminal is or does retard.

Terminal isn't a file manager: it doesn't just move files around and rename them.
If you need to do that, and need to be able to undo that, just use a file manager. Nobody is stopping you.

Terminal is an app launcher with extra spices: it's meant to let you start programs from it, and do fancy things with them, such as pipe outputs between programs, or loop them, or start an app for every file in directory.

How the fuck do you make an undo function for a glorified app launcher?
Replies: >>105850994
Anonymous
7/9/2025, 9:42:53 PM No.105850961
>>105845760 (OP)
Sundo?
Anonymous
7/9/2025, 9:47:19 PM No.105850994
>>105850909
This is just pushing the problem around. You explain why the terminal doesn't have undo but don't explain why each individual program lacks an undo function while most graphical programs include one.
Replies: >>105851006 >>105851439
Anonymous
7/9/2025, 9:49:22 PM No.105851006
bussy
bussy
md5: 9179a5eaaf2af745bfff1f92e1752b4d🔍
>>105850994
use case for undo command?
Anonymous
7/9/2025, 9:50:39 PM No.105851021
>>105845760 (OP)
>>still no "undo" command
Yeah there is, it's called git. Is this bait?
Anonymous
7/9/2025, 10:29:59 PM No.105851377
>>105849085
REEEEEEE, let's just make everything transactional so every operation has a performance overhead without opt-out
if you want safety it should be done at user level, not filesystem level
people had no issues with that for decades
paying performance cost, because some faggots with adhd can't double check before executing some commands is stupid
Replies: >>105853139
Anonymous
7/9/2025, 10:36:53 PM No.105851439
>>105850994
>most graphical programs include one
name me one app launcher that has an undo function
exactly, none exist
and i dont need to elaborate on this any further, because, as even your smooth brain noticed, i already explained why the terminal itself doesnt do it: implementing undo is the burned of individual programs.

and even if you really want to move that goalpost that hard, all graphical programs that feature an undo function implement it only within the confines of its own scope.

sure you can brag about how you can press undo in visual studio code all you want, but only up until the session was opened: the moment you close it, next time you open it all you can do is seethe about any changes since.

and given that the terminal has no duties to keep tabs of what apps do on its own (nor should it), the moment your program exits, and gives you a terminal prompt, it has as many duties to provide you undo functionality as any other graphical interface.

and most terminal programs out there, which are made to be useful in a terminal environment, that is, do very simple and specific things, mostly for the sake of letting you put them together with pipes and loops like lego bricks, are made to exit shortly after doing its thing.

asking them to be fully aware of the interaction they had with a terminal, and reconstruct the state they were in before that, aside from being possibly the prone to corruption, is antithesis of trivial, or even possible for that case.

tl;dr, if bulk of your terminal work boils down to managing files, then consider learning how to use a file manager: terminal is not for that.

terminal is for curl-ing all the images from a pool from your favourite danbooru, and assembling it into a pdf comic.
terminal is for generating ID3 tags for your mp3s from their filenames.
terminal is for generating file checksums into a csv and using them to find duplicates.
file manager is for managing your files.
Replies: >>105851486
Anonymous
7/9/2025, 10:42:41 PM No.105851486
>>105851439
You've missed my point entirely: "implementing undo is the burned [sic] of individual programs" is what I was saying. You going "the reason the terminal doesn't have an undo function is because it's an app launcher" doesn't answer OP's actual question, which is why none of the applications you use in the terminal incorporate an undo function.
Replies: >>105851520 >>105851950
Anonymous
7/9/2025, 10:47:00 PM No.105851520
>>105851486
lol
youre seriously still at it?
how fucking retarded you have to be?
i know repetitive behaviour is an autismo thing
but even for an autist
youre retarded beyond words

its not empty insults
i have skills and experience in psychology
for better or for worse i semi instinctually dress the profile of a person
and holy shit
are you a specimen
sage
7/9/2025, 11:06:57 PM No.105851724
Holy shit OP you got shitload of decent answers yet the autism train keeps going. Lmao

All fields motherfucker.
Anonymous
7/9/2025, 11:28:32 PM No.105851950
>>105851486
your point is shifting the goalposts retarded degenerate

implementing undo in terminal itself is impossible, and implementing undo in individual terminal programs is functionally impossible, and practically useless
read my post above, and use a fucking file manager techbro newfag
sage
7/10/2025, 12:33:52 AM No.105852591
>OP actually collecting (You)s with this low quality bait
Replies: >>105852637
Anonymous
7/10/2025, 12:37:44 AM No.105852637
>>105852591
i find it very relaxing to berate and insult retards
im not sure hes enjoying the yous hes getting
Anonymous
7/10/2025, 1:23:31 AM No.105852959
410376093
410376093
md5: 3cede16e6d25778d375ca9932be1c8a4🔍
>>105846108
>>105846122
Restore points are hard to use?
There's tons of built-in & free gui apps that manage them for you

>inb4 "they can't recover personal files I've accidentally wiped"
>skill issue + no backups = you deserved it
Anonymous
7/10/2025, 1:24:07 AM No.105852966
My shell has undo?
I use gemini cli
Anonymous
7/10/2025, 1:46:40 AM No.105853139
>>105851377
>REEEEEEE, let's just make everything transactional so every operation has a performance overhead without opt-out
It has a very low performance overhead, especially with the way SSDs work where they don't actually overwrite the data until you TRIM it or it's garbage collected. You can design the SSD interface so it does not overwrite in place, but creates a new version, which is what it's actually doing under the hood anyway. But this requires using your brain instead of complaining about smart people. If you were alive thousands of years ago, you would be complaining about all those people cutting stone and cooking food.
Replies: >>105853328
Anonymous
7/10/2025, 2:12:52 AM No.105853328
>>105853139
>It has a very low performance overhead, especially with the way SSDs work where they don't actually overwrite the data until you TRIM it or it's garbage collected.
>if you modify a file 3 times you get 3 copies of that file
what the fuck is this retardation im reading?
and if thats not the case
how are you gonna implement a ctrl z that works more than once?
also
what about hdd, or tape?

and you call people "dumb"?
but bro
your brains oozes ouf of your ears
you got holes in your grey matter
Anonymous
7/10/2025, 7:02:46 AM No.105855212
One of the nice things about solidity (and can be applied to any VM environment) is that you can undo (or revert as they call it) the effects of individual functions/calls and analyze the change in state. It would be amazing if we could one day make a local operating system with these features, beyond hacks like filesystem snapshots.
Anonymous
7/10/2025, 11:10:19 AM No.105856777
>>105845760 (OP)
I like to live dangerously. I use suicide linux.
Anonymous
7/10/2025, 11:11:47 AM No.105856788
>>105845845
you can ctrl-z in the file manager on linux too