this post was submitted on 11 Apr 2026
61 points (98.4% liked)

Technology

83666 readers
3514 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
all 14 comments
sorted by: hot top controversial new old
[–] CallMeAl@piefed.zip 3 points 48 minutes ago

Great article but this shouldn't be called "Tricks" it should be called Shell Basics. I'm old enough to remember taking an Intro To Unix course and there was an entire day on the shell where these types of commands were presented as essential learning.

[–] MonkderVierte@lemmy.zip 1 points 30 minutes ago* (last edited 16 minutes ago)

alias please='sudo !!' would that work?

Edit: nope. Why not?
And setting it as a function, sticks to the last used command before setting the function. Fuck.

[–] MummifiedClient5000@feddit.dk 8 points 1 hour ago (2 children)

Nothing gets my nerdrage on more than using CTRL+w in a browser-based shell and closing the tab.

Yeah, annoying that it has different meanings.

[–] LedgeDrop@lemmy.zip 15 points 2 hours ago (1 children)

This is a good article, especially if you're the lucky 10,000.

[–] HuudaHarkiten@piefed.social 3 points 2 hours ago (1 children)

I was one of the 10 000. Again!

[–] IratePirate@feddit.org 2 points 56 minutes ago (1 children)

I am too - every single day. If I didn't know better, I'd think I'm stupid.

[–] HuudaHarkiten@piefed.social 2 points 53 minutes ago* (last edited 53 minutes ago)

I know better, I am stupid ^__^

edit: evidence of my stupidity is that I couldn't even get one of those emoji faces done right

[–] MonkderVierte@lemmy.zip 6 points 2 hours ago* (last edited 2 hours ago)

Please make the site respect my color setting by default.

It's a sunny spring day.

[–] brsrklf@jlai.lu 3 points 1 hour ago (1 children)

~~I was expecting some cool Mario strats~~

I'm always using "clear" to just get rid of my console's output. I think it has something to do with me remembering I used that on my old 80's computer, trying it out on a bash long after that and "oh, that works here too, that's convenient".

Reset looks like it does more stuff, but I don't know if that's useful for this use case.

I asked this myself, too. AI response:

clear: clears the visible screen (sends the terminal’s “clear” sequence); usually fast and does not change terminal settings or fully reinitialize scrollback.

reset: fully reinitializes the terminal (sends init strings, resets modes/attributes, may reconfigure terminfo/baud, and clears); slower and used to recover from garbled output or broken state.