43 votes

What are your "how on earth did I not learn this sooner" tech moments?

I'm thinking of this in a "pitfalls of being self-taught" context, but I'm sure there's plenty of other places these moments happen. Feel free to also interpret the title as "How did I not know that?", "How did I miss that?", "Why did no one tell me that?" and the like!

The inspiration for this post is that I am over a year and a half into my Linux journey, which has involved a solid amount of tinkering and eagerly getting familiar with the command line, and I just now realized that you can do man <literally any command> to quickly get to the manual for it. And also that whatis exists. For the last 18+ months, I've been just doing <command> --help or <command> <subcommand> --help and searching the internet to supplement that. I knew that man pages exist, but I guess for some reason it didn't occur to me that there would be a way to access them that easily.

I love learning things on my own and building understanding by doing, just picking a direction and running with it, but... man. I often wonder how many little things that "everyone knows" I've missed through sheer random chance. And then there's things like my man pages revelation that I can't believe I didn't piece together on my own, considering all the other crazy stuff I've figured out. Oh well lol. I suppose it's good when the humbling reminders of my own capacity for ignorance arrive via something low-stakes like this than via something that could wreck my system!

Anyone else have similar stories to share?

87 comments

  1. [14]
    HiddenTig
    Link
    Let's say you want to highlight the text in this sentence. You can very carefully place your cursor before the "L" in "Let's" , and carefully drag it to the "e" in "sentence" . Or, get your cursor...

    Let's say you want to highlight the text in this sentence. You can very carefully place your cursor before the "L" in "Let's" , and carefully drag it to the "e" in "sentence" . Or, get your cursor anywhere into "Let's", double click and drag down to anywhere in "sentence". It makes grabbing text so much faster and prevents a ton of misclicks where you miss the first letter, for example.

    Based on the screen shares I've done most people don't know or do this even though it's much faster and easier than the alternative.

    26 votes
    1. [6]
      Well_known_bear
      Link Parent
      In a similar vein, when your typing cursor is active, ctrl + right or left allows you to move forward or back one word at a time instead of one character at a time. Great for quickly and precisely...

      In a similar vein, when your typing cursor is active, ctrl + right or left allows you to move forward or back one word at a time instead of one character at a time. Great for quickly and precisely navigating blocks of text without needing to shift to the mouse.

      13 votes
      1. CptBluebear
        Link Parent
        Include shift and you select the entire word at once too.

        Include shift and you select the entire word at once too.

        3 votes
      2. [3]
        vord
        Link Parent
        Spotted the vim user.

        Spotted the vim user.

        2 votes
        1. [2]
          rubix
          Link Parent
          A vim user wouldn't be caught dead using ctrl + arrow keys to navigate

          A vim user wouldn't be caught dead using ctrl + arrow keys to navigate

          5 votes
          1. vord
            Link Parent
            Any port in a storm, as they say. Moving by single words is the gateway drug.

            Any port in a storm, as they say.

            Moving by single words is the gateway drug.

            1 vote
      3. ThrowdoBaggins
        Link Parent
        It’s only been this year that I’ve levelled up to Ctrl+Home to go to the very start of the whole text block, or Ctrl+End to go to the end. But for a few years now I’ve been using Ctrl+Shift+Arrow...

        It’s only been this year that I’ve levelled up to Ctrl+Home to go to the very start of the whole text block, or Ctrl+End to go to the end. But for a few years now I’ve been using Ctrl+Shift+Arrow keys to select whole words or paragraphs at a time. I’m finding myself selecting text with the keys to be much faster using than the mouse, even though I’m also quite adept with the mouse and regularly play shooter games with mouse and keyboard.

        1 vote
    2. [2]
      economichael
      Link Parent
      on mobile holding and dragging back and forth on the spacebar moves the cursor. learned this one recently from a youngin.

      on mobile holding and dragging back and forth on the spacebar moves the cursor. learned this one recently from a youngin.

      11 votes
      1. slampisko
        Link Parent
        Also, in most contexts on mobile, you can hold-and-drag to select text, instead of holding until a single word is selected and then dragging one of the nubs that appear

        Also, in most contexts on mobile, you can hold-and-drag to select text, instead of holding until a single word is selected and then dragging one of the nubs that appear

        2 votes
    3. fxgn
      Link Parent
      Another text selection tip: in a browser, you can hold Alt to highlight the text of a link without clicking the link

      Another text selection tip: in a browser, you can hold Alt to highlight the text of a link without clicking the link

      8 votes
    4. [2]
      post_below
      Link Parent
      In addition to this, in most contexts double clicking selects the word, triple clicking selects the line. Double tap for word select even works on (some) mobile devices.

      In addition to this, in most contexts double clicking selects the word, triple clicking selects the line.

      Double tap for word select even works on (some) mobile devices.

      7 votes
      1. creesch
        Link Parent
        Holy shit, I have been using technology for decades now and most of the stuff in this thread I know. Except for triple clicking, that is pretty awesome.

        In addition to this, in most contexts double clicking selects the word, triple clicking selects the line.

        Holy shit, I have been using technology for decades now and most of the stuff in this thread I know. Except for triple clicking, that is pretty awesome.

        5 votes
    5. all_summer_beauty
      Link Parent
      Oh wow! I knew about double- or triple-clicking to select whole units, but I didn't know you can drag out of that. Thanks!

      Oh wow! I knew about double- or triple-clicking to select whole units, but I didn't know you can drag out of that. Thanks!

      1 vote
    6. DynamoSunshirt
      Link Parent
      Also works on paragraphs! Position your cursor kinda near a paragraph, but not directly over text -- keep the cursor in 'pointer' mode, instead of text selection mode. Double click and hold, and...

      Also works on paragraphs! Position your cursor kinda near a paragraph, but not directly over text -- keep the cursor in 'pointer' mode, instead of text selection mode. Double click and hold, and you'll be able to select paragraphs at a time, not just words or (I shudder to think of it) letters like a caveman.

  2. [10]
    blastedheath
    Link
    I learned this decades ago, but I still regularly marvel at how useful this feature is to me: To switch between running applications, hold alt and tap tab to open a quick switcher. Keep holding...

    I learned this decades ago, but I still regularly marvel at how useful this feature is to me:

    To switch between running applications, hold alt and tap tab to open a quick switcher. Keep holding alt and tapping tab until the application you want is hilighted, then release.

    Works everywhere on every computer: Windows, Mac OS and Linux. I must have learned it when I was 16? So I wasted the first 15 years of my life.

    21 votes
    1. [5]
      all_summer_beauty
      Link Parent
      I really do appreciate that this is one of the few(?) things that seems to be largely consistent across all three major operating systems. It's so fundamental to how I navigate a computer that it...

      I really do appreciate that this is one of the few(?) things that seems to be largely consistent across all three major operating systems. It's so fundamental to how I navigate a computer that it throws me off if I can't use it for whatever reason.

      9 votes
      1. [2]
        F13
        Link Parent
        Only real annoyance, as someone who regularly interacts with all three, is that Mac uses (the equivalent of) Alt+Tab to switch applications, where everybody else uses it to switch windows. Mac...

        Only real annoyance, as someone who regularly interacts with all three, is that Mac uses (the equivalent of) Alt+Tab to switch applications, where everybody else uses it to switch windows.

        Mac uses Option (Alt)+` (backtick (the thing that shares a key with the tilde (which I hope a user of this site is familiar with))) to switch windows within an application. It is very physically close to Alt+Tab so it's not too bad, but still, it is a slightly different pattern.

        7 votes
        1. Chiasmic
          Link Parent
          You can use the AltTab application to make it act like windows, which is what I do.

          You can use the AltTab application to make it act like windows, which is what I do.

      2. [2]
        Banazir
        Link Parent
        Note that this highly depends on your desktop environment in Linux. I use AwesomeWM (which is just a window manager and not a full desktop environment) and I do not have any of the standard...

        Note that this highly depends on your desktop environment in Linux. I use AwesomeWM (which is just a window manager and not a full desktop environment) and I do not have any of the standard shortcuts outside of copy/paste.

        4 votes
        1. all_summer_beauty
          Link Parent
          Good to know! I've only really used Mint and test driven a couple other Debian-based distros, so this is news to me.

          Good to know! I've only really used Mint and test driven a couple other Debian-based distros, so this is news to me.

    2. tomorrow-never-knows
      Link Parent
      I got that fairly early on in my computin' career, but it took years before I realised you could also hold 'shift' and then go backwards 🤯

      I got that fairly early on in my computin' career, but it took years before I realised you could also hold 'shift' and then go backwards 🤯

      7 votes
    3. [2]
      Apocalypto
      Link Parent
      On Windows at least shift + alt + tab cycles backwards, haven't tested it on other OSes

      On Windows at least shift + alt + tab cycles backwards, haven't tested it on other OSes

      2 votes
      1. preposterous
        Link Parent
        Works on all OS. Same as Tab and Shift Tab to navigate back and forth in a UI

        Works on all OS. Same as Tab and Shift Tab to navigate back and forth in a UI

        2 votes
    4. d32
      Link Parent
      There's also a nice sub feature where when you do the alt-tab to another window, and then do alt-tab again afterwards, you are brought to the previous window - so you can use this to cycle between...

      There's also a nice sub feature where when you do the alt-tab to another window, and then do alt-tab again afterwards, you are brought to the previous window - so you can use this to cycle between two windows for those cases that require you to do so. Like alternating between (pretending to) work and full screen game. I definitely didn't learn it like that at the computer lab at high school.

      1 vote
  3. [3]
    legogizmo
    Link
    On windows using windows+v instead of ctrl+v will give you a history of the last couple of things you copied. Super useful if you need to copy and paste several things over and over.

    On windows using windows+v instead of ctrl+v will give you a history of the last couple of things you copied. Super useful if you need to copy and paste several things over and over.

    18 votes
    1. F13
      Link Parent
      Also shared by some Linuxes, such as those that use KDE Plasma.

      Also shared by some Linuxes, such as those that use KDE Plasma.

      6 votes
    2. Wuju
      Link Parent
      People at least shouldn't feel bad for not knowing this one. It wasn't a thing until partway through Windows 10 and needed be enabled in settings to use it back then. So it wasn't until Windows 11...

      People at least shouldn't feel bad for not knowing this one. It wasn't a thing until partway through Windows 10 and needed be enabled in settings to use it back then. So it wasn't until Windows 11 that it was on by default.

      6 votes
  4. [4]
    vord
    (edited )
    Link
    If you like man you'll love tealdr. Crowdsourced abbreviated man pages. The CLI is tldr <command>. For my own answer: KDE windowing rules. You always want your music player to load up in a 200x400...

    If you like man you'll love tealdr. Crowdsourced abbreviated man pages.

    The CLI is tldr <command>.

    For my own answer: KDE windowing rules. You always want your music player to load up in a 200x400 window, on the top left corner of your monitor? KDE has you covered. Want your browser to scoot left when you open a terminal, and then your terminal scoot up when you open another terminal? Yea, you can do that.

    Followed closely by KDE letting you remap damn near any hotkey you choose.

    14 votes
    1. h3x
      Link Parent
      tldr is legit incredible. It's now on all the boxes in my homelab, and I'm making a play to put it on work machines as well.

      tldr is legit incredible. It's now on all the boxes in my homelab, and I'm making a play to put it on work machines as well.

      5 votes
    2. tjf
      Link Parent
      KDE window rules are so useful. I have a rule for mpv (a video player) windows to automatically stay above other apps' windows, and appear on all virtual desktops.

      KDE window rules are so useful. I have a rule for mpv (a video player) windows to automatically stay above other apps' windows, and appear on all virtual desktops.

      1 vote
    3. all_summer_beauty
      Link Parent
      Incredible, amazing, I love it, thank you so much for sharing!

      tldr

      Incredible, amazing, I love it, thank you so much for sharing!

  5. [6]
    Narry
    Link
    Middle-click a link (press in on your scroll wheel) in most any browser on most any operating system to open the link in a new tab. Default behavior in most browsers is to open the tab at the end...

    Middle-click a link (press in on your scroll wheel) in most any browser on most any operating system to open the link in a new tab. Default behavior in most browsers is to open the tab at the end of whatever the current run of tabs is, in the background.

    Middle-click the browser tab itself to close it without having to hunt down the X.

    Bypass most paywalls by hard-refreshing the page (CTRL/Command + Shift + R in most browsers but NOT Safari) and immediately running the Print keyboard shortcut (usually CTRL/Command + P), and print to PDF. Usually you can capture the page before whatever arcane Javascript sets in and throws up the paywall.

    Linux / macOS Terminal stuff

    There is a terminal app you can install called htop that does a good job of telling you all of your running processes and lets you send a KILL signal to them if you ran it in SUDO. But I like btop better than htop.

    If you ever open up a terminal sessions and the prompt looks unfamiliar, you can usually type echo $0 and find out what shell environment you're in (like zsh, bash, fish, etc)

    If you know you'll need a file of a certain name but you don't have anything to put into the file just yet, but you need to validate its presence for some reason, you can touch filename and you'll create a 0 byte wherever you put the file. So touch ~/.mysecretscripts/testscript would create a file called testscript in a hidden folder called .mysecrescripts in the home directory.

    If you're ever lost in the terminal and have no idea what your present working directory is, you can type pwd and it will print your present working directory.

    The ls command (LS if you were to capitalize it) has flags that you'll really want to use. Flags like -a to list every element, --color to make it colorize the output, etc. Manpages are useful to see them all.

    Do you keep effing up and typing an old school command from DOS that you think should work the way you remember in Linux? Are you typing dir instead of ls? Do you cls instead of clear? Aliases to the rescue! Most *sh (zsh, bash, and fish for sure) include aliases. I can only speak to zsh and fish shells, but in zsh you can edit your ~/.zshrc profile, and add things like alias dir=ls which will run ls if you type in dir. Fish has a dedicated alias command.

    That's all I can think of at the moment.

    Apps I recommend for the terminal:

    btop / btop++ - Resource monitor that shows usage and stats for processor, memory, disks, network and processes. C++ version and continuation of bashtop and bpytop.

    zoxide - A smarter cd command. Supports all major shells. Remembers your directories so you can just cd Projects and it'll remember that's over in your external drive.

    tree - Display directories as trees (with optional color/HTML output)

    starship - The minimal, blazing-fast, and infinitely customizable prompt for any shell!

    Those are four things that I use on every Linux and macOS and I love them to pieces. A must-install for me.

    Oh, and one random one:

    Dots don't matter in the user half of a gmail email address. tim.apple@gmail.com is the same as timapple@gmail.com is the same as t.i.m.a.p.p.l.e.@gmail.com

    11 votes
    1. xk3
      (edited )
      Link Parent
      echo $0 is a POSIX standard but it doesn't work in all shells. Fish shell might have supported it in v3 but in the v4 rust rewrite it doesn't print anything. However, I've done echo $SHELL before...

      echo $0 is a POSIX standard but it doesn't work in all shells. Fish shell might have supported it in v3 but in the v4 rust rewrite it doesn't print anything. However, I've done echo $SHELL before and that seems pretty robust. I haven't seen a shell that doesn't support echo $SHELL but I'm sure there are a few...


      In fish shell I like that you can partially type any argument (not just command-name or last CLI argument of the last command) and press alt+. and it will complete with argument which match what you've already typed--I use that a lot but it didn't click with me until I accidentally discovered it a few times.


      One thing that I've learned from using opencode / agy etc via tmux (where shift+enter isn't supported and just acts like regular enter): Ctrl+j to do a line break.

      But actually looking into this more while writing this comment... maybe I learned the wrong lesson. Maybe I just need to update my tmux config to something like this?

      set -gu terminal-features
      set -as terminal-features ',xterm-kitty:extkeys:RGB'
      set -g extended-keys on
      set -g extended-keys-format csi-u
      

      https://github.com/chapmanjacobd/computer/commit/49bf759c52877046d245513681a3955fd486868f

      2 votes
    2. zod000
      Link Parent
      While I knew them, these are some great tips that I wish I had known earlier than I did.

      While I knew them, these are some great tips that I wish I had known earlier than I did.

      1 vote
    3. [2]
      scarecrw
      (edited )
      Link Parent
      On aliases, I actually really like fish's abbreviations feature. Lets you see and edit the actual command while being as easy to type as an alias.

      On aliases, I actually really like fish's abbreviations feature. Lets you see and edit the actual command while being as easy to type as an alias.

      1 vote
      1. Narry
        Link Parent
        I’ve been meaning to check out fish more in depth, but every time I set about doing it, it just was easier to get things done back under zsh, which is a shame because I really really enjoyed...

        I’ve been meaning to check out fish more in depth, but every time I set about doing it, it just was easier to get things done back under zsh, which is a shame because I really really enjoyed fish’s auto complete and command highlight features. To the point that I actually installed some tools that allow me to accomplish something similar (but not quite as good) in zsh.

        I’ll try to remember to add the names of the software when I’m back at my Mac this evening, in case anyone’s interested.

        2 votes
    4. 0x29A
      Link Parent
      i love btop++ and use it on everything. great for viewing temps / power usage / resource usage all in one convenient place

      i love btop++ and use it on everything. great for viewing temps / power usage / resource usage all in one convenient place

  6. streblo
    Link
    Probably switching all my drives over to btrfs a few years ago. btrfs is essentially a superpower, as far as I'm concerned. Snapshots and subvolumes make backing up and restoring almost completely...

    Probably switching all my drives over to btrfs a few years ago.

    btrfs is essentially a superpower, as far as I'm concerned. Snapshots and subvolumes make backing up and restoring almost completely painless, even to/from remote backups. Backups in a RAID1 array can self heal, preventing bit rot. Transparent compression means my drives go further than they otherwise would, both in space and endurance. cp --reflink is, for a lot of use cases, a better symlink and a better cp.

    10 votes
  7. [3]
    Boojum
    (edited )
    Link
    Some of these may be well known, but just in case, in most editing applications and windows: Ctrl-Left / Ctrl-Right - move a whole word to the left or right Ctrl-Home / Ctrl-End - skip to start or...

    Some of these may be well known, but just in case, in most editing applications and windows:

    • Ctrl-Left / Ctrl-Right - move a whole word to the left or right
    • Ctrl-Home / Ctrl-End - skip to start or end of the document

    And most importantly: hold down Shift while tapping any of the other cursor motion keys or combos to start a text selection or change one. Then you can do Ctrl-X or Ctrl-C to cut or copy it, or Ctrl-V to replace it with a paste from the clipboard. Or just start typing to replace the selection with some whole new text.

    Oh, and here's a couple of other handy ones:

    • On Linux, you can generally do ifconfig to see your machines network address (usually local, right after where it says inet). Then, assuming you have Python installed, you can do python -m http.server 8000 to spin up a little webserver that just serves the contents of the current directory you started it. Go to another machine on your network, point a browser at http://a.b.c.d:8000/ (where a.b.c.d was the address that ifconfig showed, and note the http and not https), and you can easily direct copy files between machines over your network. Or use wget -r http://a.b.c.d:8000/ to batch download the contents of the directory. (On Android, I'll often use the Share option to send a few photos to Termux, then do the ifconfig/http.server trick in a Termux shell to locally serve them from my phone to my desktop over wifi.)
    • Want to quickly send a URL or other snippet of text from your computer to your phone? Install qrencode from your package manager and then run qrencode -t ansi https://tildes.net or such.
    9 votes
    1. scarecrw
      Link Parent
      Also ctrl-del or ctrl-bksp to delete a whole word!

      Also ctrl-del or ctrl-bksp to delete a whole word!

      2 votes
    2. tjf
      Link Parent
      Neat use of qrencode! I typically handle this with KDE Connect's clipboard sharing.

      Neat use of qrencode! I typically handle this with KDE Connect's clipboard sharing.

  8. Banazir
    Link
    Some additional helpful comands: man man - learn about types of man pages and documentation. The C stdlib and Perl libraries have their documentation baked into manpages. apropos - this will...

    Some additional helpful comands:

    • man man - learn about types of man pages and documentation. The C stdlib and Perl libraries have their documentation baked into manpages.
    • apropos - this will search man pages to find commands similar to your search term.
    • which - if you want to know the path to the executable you're calling, especially if you have multiple versions, then this will find it. Use ls -l $(which <command>) to see if it's a symlink. The use alternatives to check if it's naively managed or if you have to use another tool to change the link.
    8 votes
  9. [4]
    updawg
    Link
    Another well-known one that I learned somewhere up to 20 years ago: F5 to refresh. I was the nerdy kid in the family who was always using a computer or playing video games when I was at home. So...

    Another well-known one that I learned somewhere up to 20 years ago: F5 to refresh. I was the nerdy kid in the family who was always using a computer or playing video games when I was at home. So why did I learn that from my sister?

    Along the same lines, now that I think about it, I think I was around 20 when I learned about Ctrl+F. That was embarrassing.

    8 votes
    1. [2]
      kaffo
      Link Parent
      And shift F5 to hard refresh!

      And shift F5 to hard refresh!

      6 votes
      1. freedomischaos
        Link Parent
        Also ctrl shift R I find that fighting for finger memory in the Fn keys requires more thinking.

        Also ctrl shift R

        I find that fighting for finger memory in the Fn keys requires more thinking.

        4 votes
    2. secret_online
      Link Parent
      I have F5 bound to one of the closest extra buttons on my mouse, and it gets plenty of use. Not a huge amount, but it's multiple times a day for sure. If your mouse has extra buttons beyond M4 and...

      F5 to refresh

      I have F5 bound to one of the closest extra buttons on my mouse, and it gets plenty of use. Not a huge amount, but it's multiple times a day for sure. If your mouse has extra buttons beyond M4 and M5 (keep those for back and forward, also two very nice things to have), then I can recommend rebinding a button to F5.

      It also helps that F5 is often quicksave in games (mostly RPGs), so having that to hand is convenient.

      2 votes
  10. [3]
    Weldawadyathink
    Link
    My personal one is Siri timers. Instead of saying “set a timer for 5 minutes” or even “5 minute timer”, you can just say “5 minutes” and it assumes it is a timer. I know it sounds simple and...

    My personal one is Siri timers. Instead of saying “set a timer for 5 minutes” or even “5 minute timer”, you can just say “5 minutes” and it assumes it is a timer. I know it sounds simple and obvious, but I was actually quite surprised when I heard someone do it. I’m not used to general laypeople knowing tech better than I do, let alone an actual shortcut.

    8 votes
    1. DrStone
      Link Parent
      I recently learned that you can name timers too. Very helpful when you've got more than one going.

      I recently learned that you can name timers too. Very helpful when you've got more than one going.

      3 votes
    2. Narry
      Link Parent
      This is immediately useful to me, thank you.

      This is immediately useful to me, thank you.

      3 votes
  11. [9]
    post_below
    Link
    For todays 1 in 10,000: CTRL/CMD + C to copy, CTRL/CMD + V to paste, CTRL/CMD + A to select all. Bonus if you have a multi function mouse wheel or extra buttons: Assign CTRL+C to left tilt, CTRL+V...

    For todays 1 in 10,000: CTRL/CMD + C to copy, CTRL/CMD + V to paste, CTRL/CMD + A to select all.

    Bonus if you have a multi function mouse wheel or extra buttons: Assign CTRL+C to left tilt, CTRL+V to right tilt

    7 votes
    1. [2]
      preposterous
      Link Parent
      Ctrl Shift V to paste without formatting (great when you copied HTML and paste it in something like word)

      Ctrl Shift V to paste without formatting (great when you copied HTML and paste it in something like word)

      13 votes
      1. ThrowdoBaggins
        Link Parent
        For some reason, the desktop version of Outlook doesn’t let me Ctrl+Shift+V to paste without formatting when I’m composing an email. I have to Ctrl+V and then select the “paste as” options box...

        For some reason, the desktop version of Outlook doesn’t let me Ctrl+Shift+V to paste without formatting when I’m composing an email. I have to Ctrl+V and then select the “paste as” options box that appears just under whatever I pasted. Infuriating that it’s basically universal in every other program and platform, even other MS Office apps, and yet when writing an email I am suddenly betrayed

    2. [3]
      vord
      Link Parent
      CTRL-SHIFT-T will reopen the last browser tab you closed. Firefox's hotkey page is full of gems

      CTRL-SHIFT-T will reopen the last browser tab you closed.

      Firefox's hotkey page is full of gems

      9 votes
      1. Boojum
        Link Parent
        I use this one all the time. I'll add that you can hit it multiple times to bring back your tabs in the reverse-order you closed them in (useful if you quickly close several tabs and change your...

        I use this one all the time. I'll add that you can hit it multiple times to bring back your tabs in the reverse-order you closed them in (useful if you quickly close several tabs and change your mind about one of them).

        4 votes
      2. d32
        Link Parent
        It's like magic! In a sense that people often don't even know it's possible to "undo the close". So you can be a wizard to the rescue - when someone cries "oh noooo, I closed my tab!", you come...

        It's like magic! In a sense that people often don't even know it's possible to "undo the close". So you can be a wizard to the rescue - when someone cries "oh noooo, I closed my tab!", you come in, do the theatrical keyboard punch and voila: tab is ressurected!

        2 votes
    3. [3]
      Boojum
      Link Parent
      And in apps where those work, CTRL/CMD + X to cut. Hint: look at where X (cut), C (copy), and V (paste) are on a typical keyboard.

      And in apps where those work, CTRL/CMD + X to cut.

      Hint: look at where X (cut), C (copy), and V (paste) are on a typical keyboard.

      3 votes
      1. [2]
        Wuju
        Link Parent
        And right beside that CTRL/CMD + Z is undo for when you accidentally use the wrong one. If you undo too far or press it by accident, CTRL/CMD + Y is redo.

        And right beside that CTRL/CMD + Z is undo for when you accidentally use the wrong one. If you undo too far or press it by accident, CTRL/CMD + Y is redo.

        1. ThrowdoBaggins
          Link Parent
          It’s endlessly amusing to me that “redo” is both Ctrl+Shift+Z and also Ctrl+Y, and yet “undo” is only Ctrl+Z but not Ctrl+Shift+Y

          It’s endlessly amusing to me that “redo” is both Ctrl+Shift+Z and also Ctrl+Y, and yet “undo” is only Ctrl+Z but not Ctrl+Shift+Y

          1 vote
  12. [3]
    preposterous
    Link
    Ctrl-L in a browser or a file explorer to focus the address bar and type a path. Works on all platforms, all major browsers, and most file explorers (Cmd instead of Ctrl on a Mac). Even works in...

    Ctrl-L in a browser or a file explorer to focus the address bar and type a path. Works on all platforms, all major browsers, and most file explorers (Cmd instead of Ctrl on a Mac). Even works in file explorers where there is no “address bar” visible.

    7 votes
    1. lynxy
      Link Parent
      Oh, nice! I've always used F6 in Firefox, which can be a pain if your function row isn't set to the function keys by default and you have to remember to use a modifier. This is a much cleaner...

      Oh, nice! I've always used F6 in Firefox, which can be a pain if your function row isn't set to the function keys by default and you have to remember to use a modifier. This is a much cleaner solution :)

      2 votes
  13. Eric_the_Cerise
    Link
    Mine would be the (fairly recent) realization that, when people (think they) are debating the pros and cons of Linux distros ... very often, without realizing it, they're actually debating the...

    Mine would be the (fairly recent) realization that, when people (think they) are debating the pros and cons of Linux distros ... very often, without realizing it, they're actually debating the pros and cons of the DEs they used to try out those distros.

    5 votes
  14. [4]
    Bullmaestro
    Link
    Definitely Ctrl+Shift+Esc on Windows. Gives immediate access to the Task Manager without having to go through an additional menu. And to a lesser extent Windows Key + . brings up an emoji keyboard.

    Definitely Ctrl+Shift+Esc on Windows. Gives immediate access to the Task Manager without having to go through an additional menu.

    And to a lesser extent Windows Key + . brings up an emoji keyboard.

    5 votes
    1. Handshape
      Link Parent
      We used to call this one the "Vulcan nerve pinch", even though the gesture looks more like a mind-meld.

      We used to call this one the "Vulcan nerve pinch", even though the gesture looks more like a mind-meld.

      3 votes
    2. DoubleSupercool
      Link Parent
      I've known about Ctrl+Shift+Esc for years, but it's so annoying I still use Ctrl+Alt+Delete and then down arrow to task manager.

      I've known about Ctrl+Shift+Esc for years, but it's so annoying I still use Ctrl+Alt+Delete and then down arrow to task manager.

    3. ThrowdoBaggins
      Link Parent
      Windows 11 no longer lets this command have the cuts-through-everything-no-matter-what priority that it used to have, and it just baffles the mind that they would make that change. Literally for...

      Windows 11 no longer lets this command have the cuts-through-everything-no-matter-what priority that it used to have, and it just baffles the mind that they would make that change. Literally for what reason?

  15. [4]
    tomf
    Link
    for macos I only discovered pbcopy and pbpaste last year. e.g. ls -1 | pbcopy to copy a listing. As for applications I wish I found ages ago, SwiftBar is the best. Any script output in the menubar...

    for macos I only discovered pbcopy and pbpaste last year. e.g. ls -1 | pbcopy to copy a listing.

    As for applications I wish I found ages ago, SwiftBar is the best. Any script output in the menubar with cascading menus etc. Right now I'm tracking a specific car for sale in Rocket League, tracking drugs I'm taking, downloads from today in sabnzbd, unread email count with a list of subjects, and a simple calendar-like output for media (tv, scheduled movies, and sports for the day.)

    4 votes
    1. Boojum
      Link Parent
      wl-copy and wl-paste for the equivalent on Linux (Wayland)! (Also works within WSL on Windows.)

      wl-copy and wl-paste for the equivalent on Linux (Wayland)! (Also works within WSL on Windows.)

      3 votes
    2. Macha
      Link Parent
      For Linux there's wl-copy and wl-paste for Wayland and xclip for X11

      For Linux there's wl-copy and wl-paste for Wayland and xclip for X11

      2 votes
    3. TangibleLight
      Link Parent
      There is a wrapper https://github.com/niedzielski/cb that is nice because it infers whether to copy or paste based on the input stream. cb # view clipboard cb > file # paste to file cb < file #...

      There is a wrapper https://github.com/niedzielski/cb that is nice because it infers whether to copy or paste based on the input stream.

      cb # view clipboard
      cb > file # paste to file
      cb < file # copy from file
      cb | sort | cb # sort clipboard
      
      2 votes
  16. [4]
    raze2012
    Link
    more of an anti-pattern, but for windows users: try out Win+ alt + ctrl + shift + L and see what happens ;) as a more interesting and useful utility: win + . (period) in a textbox context will...

    more of an anti-pattern, but for windows users: try out Win+ alt + ctrl + shift + L and see what happens ;)

    as a more interesting and useful utility: win + . (period) in a textbox context will bring up an emoji menu for you, to save you some web searching. Also includes gifs via Giphy to insert.

    lastly, I really hope people know this one by now on Windows 11, but: a quicker way to get your old, more powerful context menu back rather than right click -> Show more options is to shift + right click. It's one of those tiny time saves that gives you back hours over the years.


    as for some apps, I'll share 3 that I always install on any new device these days:

    • Everything for a blazing fast search indexer. make sure to go into the options to set a hotkey to open the window and you're set to never use windows search again.

    • ShareX if you find yourself screenshotting often and want to make some pipelines around it. it can be as simple as a more convenient full screenshot button, or automating an entire process to crop a screenshot, annotate it, save it to a folder with a name, and upload it to your favorite image host. Extremely customizable

    • Wizrtee for a more powful disk space analyzer. Pretty fast, can open it in a context menu to analyze a given folder. Not as oft used a tool, but great way to quickly figure out where to save space.

    4 votes
    1. [2]
      updawg
      Link Parent
      Wow, I needed that so badly! I see myself using that 10,15, maybe even 100 times a day

      try out Win+ alt + ctrl + shift + L and see what happens

      Wow, I needed that so badly! I see myself using that 10,15, maybe even 100 times a day

      2 votes
      1. rungus
        Link Parent
        While the LinkedIn one is, well LinkedIn there are some somewhat useful ones with most of the same buttons: Win+Ctrl+Alt+Shift+W opens Word Win+Ctrl+Alt+Shift+X opens Excel Win+Ctrl+Alt+Shift+P...

        While the LinkedIn one is, well LinkedIn there are some somewhat useful ones with most of the same buttons:

        Win+Ctrl+Alt+Shift+W opens Word

        Win+Ctrl+Alt+Shift+X opens Excel

        Win+Ctrl+Alt+Shift+P opens PowerPoint

        1 vote
    2. zod000
      Link Parent
      I didn't know about the shift+rlght click thing for Win11. I don't need to use Windows too often these days, but the context menu changes have been maddening, this definitely will help. Thanks!

      I didn't know about the shift+rlght click thing for Win11. I don't need to use Windows too often these days, but the context menu changes have been maddening, this definitely will help. Thanks!

      1 vote
  17. [3]
    gooseyard
    Link
    I had been using bash for at least 7 or 8 years before somebody pointed out that I wasn't using any of the obvious readline bindings. These are handy since they don't just apply to bash; you can...

    I had been using bash for at least 7 or 8 years before somebody pointed out that I wasn't using any of the obvious readline bindings. These are handy since they don't just apply to bash; you can use them in anything that uses readline, although these days I guess there are fewer of those than in the 90s when I was learning.

    This won't be a comprehensive list of what readline can do, but a handful of the ones that I use frequently enough to bother remembering

    • ^t, transpose character under cursor with previous one, great for typos
    • ^k cut everything after cursor. Use ^y to paste it elsewhere.
    • ^x,^e open the current command line in $EDITOR. This is great if you have some gigantic command line in your history and you want to change something that requires moving back and forth in the command line a lot
    • ^a move to the beginning of the line
    • ^e move to end of line
    • ^_ (i.e. ctrl-shift-hyphen) undo the last edit

    The readline manpage has the full suite, there are a slew of them but these are the ones I've been using pretty much daily for decades.

    4 votes
    1. Boojum
      Link Parent
      FWIW, Ctrl-t,k,y,a, and e there are all taken from Emacs.

      FWIW, Ctrl-t,k,y,a, and e there are all taken from Emacs.

      1 vote
    2. slampisko
      (edited )
      Link Parent
      Gonna piggyback on this to add some more keyboard shortcuts you can use while editing commands in bash (and probably more shells) that I wish I had known earlier. ^r lets you search the command...

      Gonna piggyback on this to add some more keyboard shortcuts you can use while editing commands in bash (and probably more shells) that I wish I had known earlier.

      • ^r lets you search the command history (by far my most used one). Pressing again will move on to the next hit
      • ^u cut everything before the cursor (complement to ^k)
      • M-f and M-b (M- meaning meta, i.e. Alt) moves the cursor to the front/back by one word
      • ^w deletes the word before the cursor (and adds it to the register for pasting with ^y, works even when you do it a few times in a row)

      EDIT: Vim-specific, I had been using vim for years before learning that you can press ZQ to exit without saving changes (:q equivalent), or ZZ to write changes and exit (:wq equivalent).

  18. kaffo
    Link
    I'm not sure if this counts or not. When I was much younger, I didn't know that things like IDEs or even more advanced text edititors than notepad (or vi (yes not vim)) existed. I remember a few...

    I'm not sure if this counts or not.

    When I was much younger, I didn't know that things like IDEs or even more advanced text edititors than notepad (or vi (yes not vim)) existed.
    I remember a few horrible years of hand editing structures like XML and trying to count curly brackets by eye when I could have used like any decent editor/formatter/validator and got the answer in a split second.

    3 votes
  19. zod000
    Link
    You guys have covered tons of good stuff. The only one I can think of that hasn't been brought up is the the bang (!) and double bang (!!) commands. Both can be used to run previous commands with...

    You guys have covered tons of good stuff. The only one I can think of that hasn't been brought up is the the bang (!) and double bang (!!) commands.

    Both can be used to run previous commands with some cool options.

    So you can use ! followed by a string to match a previously run command from your history
    e.g. Let's say you previously used ls -a (ls showing all files )
    You can run it again, even if it isn't the most recent command in your history by typing !l.
    Not too helpful with this simple command, but if you had a complex command and don't feel like manually going through your history it can save time.

    The double bang (!!) is more simple and comes up more. It just repeats the previous command. So if you typed a command and forgot to use sudo, you can just type sudo !!. That one comes up pretty often for me, but be careful that its actually something you want to run with elevated permissions obviously.

    You can also do some more advanced stuff with these like more advanced string matching and repeating the commands, but you'll need to look that up elsewhere and I am not sure I can give an accurate guide off the top of my head.

    3 votes
  20. [2]
    0x29A
    Link
    holding alt when selecting text that is also a link. allows for easy selection while preventing you from following the link holding shift when using scroll wheel to scroll horizontally
    • holding alt when selecting text that is also a link. allows for easy selection while preventing you from following the link

    • holding shift when using scroll wheel to scroll horizontally

    3 votes
    1. ThrowdoBaggins
      Link Parent
      I’ve got a whole extra scroll wheel on my mouse to do that for me, no keyboard needed 😅 And yes, having an additional scroll wheel for sideways scrolling was a huge part of my decision to buy it....

      holding shift when using scroll wheel to scroll horizontally

      I’ve got a whole extra scroll wheel on my mouse to do that for me, no keyboard needed 😅

      And yes, having an additional scroll wheel for sideways scrolling was a huge part of my decision to buy it. Previous job I regularly worked from a spreadsheet which was substantially wider than an ultra wide monitor

      1 vote
  21. [4]
    Daedalus_1
    Link
    In MacOS: Press cmd+shift+5 to open up the screenshot toolbar, then when clicking options you can decide to store the screenshot to clipboard, preview, desktop, etc. Swiping up with 3 (or four)...

    In MacOS:

    • Press cmd+shift+5 to open up the screenshot toolbar, then when clicking options you can decide to store the screenshot to clipboard, preview, desktop, etc.

    • Swiping up with 3 (or four) fingers will give you all open windows, but swiping down will give you only the windows of that app

    • When you're on a website and click upload, the file picker is showing, while that is open you can drag-and-drop any file from your finder right into there and it will navigate to that place in the filepicker

    • Press cmd+space, hold cmd, then press 4, now you see your clipboard history (if feature is activated)

    • Spread out with five fingers anywhere to reveal your desktop, do the opposite to revert

    • In finder you can quickly swipe with three fingers left and right to go previous or next. For that you need to go to trackpad settings -> more gestures -> "swipe between pages". The tricky part is that in finder it only works with "three fingers", go figure... :-D It also then will work in browsers, it's faster then the two fingers gesture because it's without animation.

    2 votes
    1. [3]
      Minori
      Link Parent
      There are variations with command+control+shift and 4 or 5 to get a selection or the whole display to go to your clipboard.

      Press cmd+shift+5 to open up the screenshot toolbar, then when clicking options you can decide to store the screenshot to clipboard, preview, desktop, etc.

      There are variations with command+control+shift and 4 or 5 to get a selection or the whole display to go to your clipboard.

      1. caliper
        Link Parent
        4 is life. I use this all the time.

        4 is life. I use this all the time.

      2. Daedalus_1
        Link Parent
        Correct, but 5 is the most handy one because there you get a decent UI toolbar ;-)

        Correct, but 5 is the most handy one because there you get a decent UI toolbar ;-)

  22. DoubleSupercool
    Link
    I will put my most commonly used Window MS Word shortcuts. Some have been mentioned already, but these are daily use to avoid RSI with the mouse. My keyboard also has a couple of macro keys, so I...

    I will put my most commonly used Window MS Word shortcuts. Some have been mentioned already, but these are daily use to avoid RSI with the mouse. My keyboard also has a couple of macro keys, so I have assigned those to things without shortcuts like editing document layout/margins and paragraph settings.

    Navigating

    • Move the cursor one word to the left. Ctrl+Left arrow key
    • Move the cursor one word to the right. Ctrl+Right arrow key

    Selecting Text

    • Select the word to the left. Ctrl+Shift+Left arrow key
    • Select the word to the right. Ctrl+Shift+Right arrow key
    • Select from the current position to the beginning of the current line. Shift+Home
    • Select from the current position to the end of the current line. Shift+End
    • Select from the current position to the beginning of the current paragraph. Ctrl+Shift+Up arrow key
    • Select from the current position to the end of the current paragraph. Ctrl+Shift+Down arrow key

    Editing and Formatting

    • Decrease the font size by 1 point. Ctrl+Left bracket ([)
    • Increase the font size by 1 point. Ctrl+Right bracket (])
    • Center the text. Ctrl+E
    • Align the text to the left. Ctrl+L
    • Align the text to the right. Ctrl+R
    • Zoom in and out with mouse. Ctrl+Scroll
  23. rungus
    Link
    Some fun ones I know for Windows are: show-command <command> (alias: shcm) will bring up a GUI for any Powershell command you give it Win+I will open the Settings app Win+Shift+T will let you copy...

    Some fun ones I know for Windows are:

    • show-command <command> (alias: shcm) will bring up a GUI for any Powershell command you give it

    • Win+I will open the Settings app

    • Win+Shift+T will let you copy text from anything using OCR

    • When in File Explorer, typing cmd, powershell, or wt will open CMD/PowerShell/Windows Terminal respectively in the current directory

    • Set-PSReadLineOption -PredictionSource History will try to auto complete your commands with ones that you previously entered (you may need to Install the PSReadLine module)

    • Adding onto that, you can press Ctrl+R to search your command history

    • Pressing Win+X then G will bring you into Computer Management, I will open PowerShell/Windows Terminal, and A will open an admin PowerShell/Terminal

    • For some reason, if you're using a Chromium/Electron based app and it refuses to open, clicking the icon 3 times will make it open. I'm not 100% sure if this is just placebo but it has worked every time on Discord and Chrome (back when I used it)