Spyke
lemmy.world

Or do the opposite for..relief

Fucking mv doc doc1

Fucking shutdown

164
MonkeyTownreply
midwest.social

I thought for sure, for sure this was bullshit. For sure Linux doesn’t have a touch command. What could it possibly do.?

Changing timestamps and creating empty files..

Of course, that makes so much sense. 🤔

15
lemm.ee

It does make sense! When you modify a file, you do "things" on it, you write it. So the minimum you can possibly do to a file to modify it, is "to poke it": to touch it.

25
MonkeyTownreply
midwest.social

I mean I’m sure that’s the logic or something but..

Man it just feels wrong. Like the sonic hedgehog gene feels wrong. You know?

9
lemm.ee

Hahahha, I just learnt about that gene a little while ago and thought the same: that's an stupid name for a gene. How would you name them? (the gene and the command)

5
MonkeyTownreply
midwest.social

Imagine being a doctor telling a couple their fetus died because of a sonic hedgehog gene mutation, tho. (This does happen)

Like, it won’t matter in another few hundred years, but culture is difficult right now.

Makes me wonder if the romans did meme shit like that. They graffiti shitposted and whatever so..

Luckily nobody asks me what I would name shit because my pets are testament to my complete lack of creativity. 😊

5

Ah Donglegate, good times. Even funnier that the guy who got fired because of this lady’s tweet sided with her like a meek little bitch.

4
ani.social

Fuck will always be my alias to run sudo with the last command

31
infosec.pub

There’s a project that automatically corrects common errors with your last command as well with the same name.

29
lemm.ee

It sounds fun and "magic" but it is hella scary to blindly run some "fixed" command

15

It does! It’s usually pretty good at figuring it ont to. Though I only use it with non-destructive commands

10

Between the fuck utility and this alias idea, when I set up my next box I'm absolutely aliasing "fuck off" for sudo the last command and "please" for sudo itself

7

"Fucking" would be funnier and more grammatically correct.

2
feddit.uk

How do you alias the last command? My aliases are all hard coded. I had no idea you could send a variable to an alias

2

Probably with !! (!n will be the command corresponding to the number n in your history, !! is shorthand for the last command)

2

If you're out of the loop: this is part of the joke tricking people into dedicating precious hard drive space to an unnecessary language pack.

35
Zronreply
lemmy.world

Now a days you have add —no-preserve root after the laggy French pack to fully remove it.

19

Not with the asterisk! The shell automatically expands the asterisk before sending the args to rm, removing every French language pack in your root directory.

6
feddit.online
$ alias please="sudo"  
$ alias stay="shutdown"  
$ please stay_  
74
metaStaticreply
kbin.earth

wasn't that Windows?

don't make me watch the task manager video again ...

22
lemmy.world

side note: My all-time favorite linux utility is "fuck". When you make a mistake and get a command line error, you type the word fuck and it looks at what you previously typed and the error message, and tries to figure out your mistake and what you should have typed instead. Then it types that in for you. If it's correct all you have to do is hit Enter. Or you can edit first, but it's usually right. Amazing tool, and doesn't even use AI, just a list of common errors. It's been around for years and years. Its mere existence really captures the whole culture of linux IMO.

62
Rootyreply
lemmy.world

Its name is dangerously close to fsck. Can you fuck fsck?

19
lemm.ee

See, I couldn't bring myself to type that; I think I'd have to alias it to 'bother'.

6
lemmy.world

Alias albert=apt

please albert-get update

Edit: oops sorry didn't mean to reply to your comment, I'm on mobile so I thought was new comment

34
lemmy.ml

That's please albert update nowadays.

Why is apt-get still around?

8

apt on its own isn't safe to use in shell scripts while apt-get is. At least, that is the output I get when using apt in a script on Debian.

That is the only reason, for interactive sessions use apt, for automated scripts apt-get.

5

alias yabbadabbasudo=sudo

It's impractical and I often forget that I have it. But the times I remember I laugh a bit

24
lemmy.world

I don't ask my machine to do something. It doesn't have feelings. I keep civilités for humans.

20
lemmy.world

Brrrzzzt beep beep beep: human has been added to "exterminate first" list.

12
KeenFlamereply
feddit.nu

Ah, okay.. And are these civilités in the room with us now?

6

If I want a machine that does what it wants instead of what I want, I could use Windows. My machine should do what I want, so a please is not necessary.

6

please apt install clang

User isn't in polite boy list. This incident will be reported.

20
lemdro.id

In fact, i do not recommend this.

14
lemm.ee

I prefer to use kudasai ... but as some may already know, it should be at the end of the sentence command 😅, so I added a custom hook to my ZSH config to make it run commands as pacman -Syu kudasai.

Essentially you can add any type of string matching in the function. Add this to the end of your .zshrc file:

function kudasai_preexec() {
    # Check if the last word is ' kudasai'
    if [[ $1 == *" kudasai" ]]; then
        # Remove ' kudasai' and prepend 'sudo'
        cmd=${1%" kudasai"}
        eval "sudo $cmd"
        # Prevent the original command from running
        return 1
    fi
}

# Register the preexec hook
autoload -Uz add-zsh-hook
add-zsh-hook preexec kudasai_preexec

Edit: as downside you always get 1 exit code with this implementation (little_annoying) .

8

Why does it compare against $1 for the string match? Wouldn’t kudasai be at the end of something like $*?

2
lemmy.sdf.org

It’s a longer command. I wanna get shit done. I’m aliasing commands to make them shorter, not longer. But it does seem like it’d be a little friendlier.

sudo make me a sandwich

7

What it feels like using windows.

"Please shutdown?"

"No, forced update time."

"Please uninstall this browser and use this other instead?"

"No."

3
lemmy.zip

more typing. if i set up an alias for it, i'd rather set up su

3

I don't care what machine it is in not using pleasantries to tell it what to do until it gains sentience. Pleasantries are for people.

Thus does become an issue for me when i use a call a support line and the actual person just happens to talk like a recorded menu.

-7