850
siempre lo hago (eviltoast.org)
you are viewing a single comment's thread
view the rest of the comments
[-] beerclue@lemmy.world 136 points 11 hours ago
[-] lepinkainen@lemmy.world 4 points 4 hours ago

https://atuin.sh/ Does all that and a lot more, like showing if the command succeeded and which directory it was run in

[-] Mikelius@lemmy.ml 1 points 3 hours ago

I'm shocked how far I had to scroll down before it was mentioned, I was getting scared I would have to say it lol

[-] serpineslair@lemmy.world 35 points 10 hours ago

What the fuck!? How am I only learning this now, after years of linux as daily driver?!

[-] Dave@lemmy.nz 1 points 2 hours ago

Just checking, because I learnt to type before I worked this out, and because surely someone reading doesn't know: press tab. Bash will fill in file names from your current directory.

E.g. say you have files fred1file, fred2file, jim.

Type f then press tab, it will fill to "fred". Then press 2 and press tab again and it will fill the full "fred2file".

Have a play, it works in heaps of situations.

[-] grrgyle@slrpnk.net 5 points 7 hours ago

Congratulations! I remember where I was when I first learned it (in a noisy server room at the back of a machine shop).

Now pair it with FZF for fuzzy finding -- it's surprisingly easy to set up, just following any guide. It's insanely useful. I find myself even doing things like typing:

$ xinput --disable $(xinput --list | grep -i touchpad | grep 'id=[0-9]\+' -o | cut -d= -f2)  # Disable synaptic touchpad trackpad pointer

commands with these like comments on the ends as sort of "tags" so I can ctrl+r search for them later. Yes, I know I could just use a named function, but this is like the step just before that--before I know if I'll be issuing the same command all the time, or just for the next couple weeks. (This one was from when I was resting my notebook on my laptop.)

[-] oddlyqueer@lemmy.ml 1 points 4 hours ago

I like this; I have a lot of commands that I don't use often enough to justify an alias, but still need to rerun all the time. thanks!

[-] ch00f@lemmy.world 23 points 10 hours ago

Shit is usually a pain in the ass. The challenge is divining how much of a pain in the ass something has to be that someone else might have made a solution for it.

I didn't know you could ctrl+shift+c to copy in the terminal until a month ago when my linux n00b wife said "there has to be a better way to do this. I've been right clicking to copy for 10 years.

[-] Neverclear@lemmy.dbzer0.com 15 points 10 hours ago

most DE's have a thing where you can paste highlighted text using the middle mouse button

[-] TheEighthDoctor@lemmy.zip 2 points 1 hour ago

It's also independent from the Clipboard so you can do it while keeping your clipboard

[-] MnemonicBump@lemmy.dbzer0.com 5 points 8 hours ago
[-] ArsonButCute@lemmy.dbzer0.com 8 points 7 hours ago

Most mouse wheels can be clicked in place of the middle button, which has been removed from most modern computer mouses.

[-] Cethin@lemmy.zip 4 points 6 hours ago

It's also known as mouse 3 if you need to find it on your mouse or want to bind it to something else.

[-] Atherel@lemmy.dbzer0.com 15 points 10 hours ago

And ctrl + shift + v to paste, just in case

[-] TunaLobster@lemmy.world 1 points 6 hours ago

If that doesn't work, Shift + Insert.

[-] HorreC@lemmy.world 5 points 9 hours ago

you can also just use ctrl + insert for copy and shift + insert for paste.

[-] JackbyDev@programming.dev 3 points 7 hours ago

I used to have shift insert in my muscle memory from Windows, but since my job has used a Mac since 2020 it's fallen out. I never knew Ctrl insert was copy, that's nifty! Another tool in the arsenal. It will be useful when copy in select isn't set and I don't know how to set it up lol.

[-] HorreC@lemmy.world 1 points 6 hours ago

I have always used ctrl/shift insert, I never got used to ctrl c/v. Glad you have new tools!

[-] Randelung@lemmy.world 3 points 7 hours ago

MinGW can do that, too. Useful for Git.

[-] Aneb@lemmy.world 1 points 6 hours ago

Ctrl+c to copy, Ctrl+v to paste, Ctrl+z to undo last change (chain it multiple times to reverse time) hopes this helps, ctrl+tab also changes applications on macos and Linux to my knowledge. If you know anymore let's put them together

[-] uranibaba@lemmy.world 3 points 9 hours ago

Use mcfly and it will be even better.

[-] Ricaz@lemmy.dbzer0.com 9 points 8 hours ago

This but with FZF and ag

[-] banshee@lemmy.world 4 points 7 hours ago

This is what I love about Linux - always learning new things!

[-] Cenzorrll@lemmy.world 11 points 11 hours ago* (last edited 11 hours ago)

I'm not going to say how long I used linux before learning this. It isn't "this many days old", but it may as well be.

I have 7 headless linux boxes running.

[-] Sxan@piefed.zip 3 points 10 hours ago

Wait till you learn about !?.

^r is superior, though.

[-] Damage@feddit.it 5 points 9 hours ago

Even quicker with zsh or atuin: write the first few letters then arrow up to cycle through all matches

[-] Ephera@lemmy.ml 5 points 8 hours ago

Even quicker with fish: Write the first few letters then it auto-suggests the last-run command matching that prefix (and then you can still arrow up to cycle through all matches).

(There is also a zsh plugin for that, called zsh-autosuggestions.)

[-] Cethin@lemmy.zip 1 points 6 hours ago

A lot of stuff assumes Bash, so occasionally when the syntax differs its slightly annoying; sometimes you have to modify a few lines of a file or something (or run it as in Bash manually). Fish is so nice though. It really should replace Bash for almost everyone. If you really need Bash you can still use it.

[-] Ephera@lemmy.ml 2 points 3 hours ago

With script files, you can (and should regardless of Fish usage) put a shebang at the top, like #!/bin/sh or #!/bin/bash. Then it will run with Bash as you'd expect.

I also recommend not setting Fish as your system-wide default shell (since then a missing shebang will cause it to run in Fish), but rather just have your terminal emulator start fish by default.

And yeah, outside of scripting, if I notice a command requires Bash syntax (which you can often tell from Fish's syntax highlighting turning red), then I just run bash, execute the Bash command in there and then exit back out of there.

Having said all that, I'm not trying to take away from your point. If I wasn't just joking around, I would caveat a Fish recommendation just as much.

[-] Cethin@lemmy.zip 1 points 1 hour ago

Yeah, it's just some scripts that come with programs sometimes not including that is the issue. Like I said, it isn't a big issue, just occasionally requires small edits if you try to run the script in Fish, or, like you said, running them with Bash.

[-] bdonvr@thelemmy.club 2 points 7 hours ago

I main ZSH and I've been CTRL+R'ing for years damn here I am a fool

[-] Jankatarch@lemmy.world 1 points 10 hours ago

I like to imagine someone added it in for their own personal use and told nobody because surely they are the only one.

this post was submitted on 25 Aug 2025
850 points (100.0% liked)

linuxmemes

26923 readers
1867 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. ๐Ÿ‡ฌ๐Ÿ‡ง Language/ัะทั‹ะบ/Sprache
  • This is primarily an English-speaking community. ๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ‡บ๐Ÿ‡ธ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • ย 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS