Mine is using the arrow keys to navigate typed text while writing and editing. It helps speed things up, versus having to move your hand to the mouse to navigate.

Use the Up and Down Arrows to move/jump vertically.

Left and Right Arrows to move/jump horizontally.

Combine Left or Right Arrow with Shift to be able to select text. Use Up or Down Arrow with Shift to quickly select whole/nearly whole sections of text.

Combine Control with Left/Right Arrow to jump whole words to more quickly move to where you want to type.

top 50 comments

sorted by: hot top controversial new old
[–] 69 points 1 year ago (5 children)

To navigate to the previous folder

cd -

To reissue the previous command with a prefix. For example:

cat /root/.ssh/authorized_keys # Will fail without privilege

sudo !!

To use the argument of the previous command. For example:

tac ~/.ssh/authorized_keys # oops, misspelled cat

cat !$

  • source
  • hideshow 8 child comments
  • load more comments (2 replies)
    [–] 63 points 1 year ago (6 children)

    Windows+L every time I leave my desk.

  • source
  • hideshow 8 child comments
  • [–] 32 points 1 year ago (2 children)

    That's not even a life hack. That's literally policy, at least where I work at :)

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (1 reply)
  • load more comments (4 replies)
    [–] 38 points 1 year ago (6 children)

    Microsoft has never fixed the sticky keys replacement cheese to unlock a PC you have physical access to. Ive done it up to W10, never tested it on W11.

    1. Get a Windows recovery USB.

    2. Boot into the recovery menu and open the command prompt.

    3. Navagate to system32 and make a copy of the cmd.exe file (for a backup)

    4. Copy the sticky_keys.exe and have it overwrite cmd.exe, then reboot.

    5. On the login screen, smash the shift key until the command prompt appears and for some reason (because no user has logged in yet) it has admin permissions, so you can reset local passwords.

    6. Once your logged in as a local admin, copy the backup of cmd.exe back so noone is none the wiser (except the security software that knows you messed with something)

  • source
  • hideshow 7 child comments
  • [–] 17 points 1 year ago (3 children)

    That.... Seems like a pretty massive vulnerability. Like obviously that can be locked down by each user or administrator, but still....

  • source
  • parent
  • hideshow 4 child comments
  • load more comments (2 replies)
  • load more comments (5 replies)
    [–] 37 points 1 year ago (2 children)

    Keyboard shortcuts in general.

    • Alt + left right (previous/next page in browsers)

    • Windows + 1 (2, 3, ...) on Windows and KDE focuses the window at that position in the taskbar

    • Alt + Tab to switch windows (hold shift to go backwards)

    • Windows + Tab to switch windows within the same application (like, all browser windows if you're in a browser)

    • Alt + 1 (2, 3, ...) on Windows/Linux usually selects the corresponding tab

    • Ctrl + Tab to cycle through tabs like Alt-Tab does for windows (hold shift to go backwards)

    • In most browsers or things with a URL/go to bar, Ctrl+L will focus that. No need to click the address bar, Ctrl+L, example.com, Enter.

    • In Discord and Slack, you can press Ctrl+K to open a box to quickly type a channel/DM name to go to it quickly

    • If you have them, the Home/End/PageUp/PageDown keys are actually pretty useful. Press Home instead of scrolling all the way back up.

    • F1 is usually help

    • F2 is usually rename

    • F3 is usually search

  • source
  • hideshow 3 child comments
  • load more comments (1 reply)
    [–] 35 points 1 year ago

    Nobody tell this man about vim

  • source
  • [–] 31 points 1 year ago (4 children)

    Vim takes your keyboard shortcuts to the extreme. If you can be bothered to learn it.

  • source
  • hideshow 6 child comments
  • [–] 7 points 1 year ago (1 child)

    It's well worth learning, you can use vim motions In lots of apps (or they have vim plugins) and even some websites will let you navigate with hjkl and search with / etc

    There used to be a web based vim game to help you learn, vim tutor maybe?

    Any time I'm forced to select text with a mouse it feels like a massive ball ache.

    Don't get me started on editing text on an iPad, they have gone out of their way to make selection and editing, like changing a URL, a total nightmare.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
  • load more comments (2 replies)
    [–] 29 points 1 year ago* (5 children)

    Are you serious? arrow keys instead of clicking? let's take it further:

    shift+arrow highlights letters
    ctrl+arrow skips entire words
    ctrl+shift+arrow highlights entire words
    home/end jumps to start/end of line
    ctrl+home/end jumps to start/end of text box
    ctrl+shift+home/end jumps to start/end of textbox and highlights it
    um, do you need me to explain what ctrl+xcv do? or ctrl+zy? or ctrl+asdwerfgop?

    isn't this just basic typing? didnt yall learn this in the 90s??? how are you all on the internet right now

    wait til you hear about how i swipe texted all this

  • source
  • hideshow 6 child comments
  • load more comments (4 replies)
    [–] 28 points 1 year ago (1 child)

    Find a Linux distro you like and install it instead of Windows.

    Use LibreOffice, not MSOffice

    Ditch Google, Apple, Meta, and Microsoft.

    Tech walled gardens are insane asylums. Leave them.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 24 points 1 year ago (2 children)

    Using the arrow keys for exactly what they’re made for isn’t a hack lol

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 19 points 1 year ago (2 children)

    Ctrl+r on bash and zsh (possibly others) for quickly recalling anything you've typed before

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 17 points 1 year ago (2 children)

    Using ublock origin picker to remove everything useless. Like, Youtube suggestions, everything but download button on ddl websites, useless footers/headers on news, etc...

  • source
  • hideshow 3 child comments
  • load more comments (1 reply)
    [–] 16 points 1 year ago (1 child)

    Keyboard shortcuts for everything. Mousing to a menu is a waste of time in any app you use daily.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 16 points 1 year ago (2 children)
    load more comments (2 replies)
    [–] 15 points 1 year ago (11 children)

    Yay, nobody said my favorite hack.

    While browsing on the web and you want to "open link into a new tab", click using the mouse wheel like it's a regular left or right click.

    It's great for researching.

  • source
  • hideshow 12 child comments
  • load more comments (10 replies)
    [–] 14 points 1 year ago (2 children)

    Set up three WireGuard network interfaces on a VPS then accept traffic from your end devices to route through the three double hop VPN tunnels to a country with better privacy laws. Install an ad and tracking blocking DNS server to block all nefarious hostnames as well as more granular blockers for your browsers.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 13 points 1 year ago (3 children)

    Oh kid, I do this for over forty years now.

  • source
  • hideshow 3 child comments
  • load more comments (3 replies)
    [+] 13 points 1 year ago* (last edited 1 year ago) (11 children)
    load more comments (11 replies)
    [–] 13 points 1 year ago (1 child)

    Ctrl + shift + esc brings up the Windows task manager directly instead of the menu you get when you press ctrl + alt + del

  • source
  • hideshow 2 child comments
  • [–] 12 points 1 year ago*

    Just remember that ctrl+alt+del is a system level interrupt that should always work as long as the kernel is running. Ctrl+shift+esc is not, and won't work in some situations like being used inside a fullscreen frozen program.

  • source
  • parent
  • [–] 12 points 1 year ago

    if you're concerned about how much you need to move your hand, then you'll probably love (neo)vim

  • source
  • [–] 12 points 1 year ago* (1 child)

    Far from most used, but very handy: ctrl+win+shift+b

    It restarts the graphic subsystem, which can help recover from situations where game crashes or similar cause visual issues.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 11 points 1 year ago* (1 child)

    Custom autocompletes/corrects. Just figure out a non-word (i.e. something that you wouldn't want to use without autocorrecting) that's easy to remember and set it up frequently used snippets of text. Some examples:

    • meetnow - my zoom meeting link
    • booktime - a link to my calendly
    • frequent sentences or blurbs I use in emails (e.g. thanks so much, let me know if i can help with anything else sorta stuff)
    • nicknames for different frequently used hex codes
    • galert/yalert/redalert populate a styled HTML snippet to make a green, yellow, or red div that I can then just pop my content into
    • lots of other little HTML snippets like that
    • group nicknames to populate a list of email addresses (like an Outlook contacts group but you can use it outside of Outlook)

    Anyway there are a ton of things I use it for, those are just a few examples. Saves me a lot of time.

    You can do this on Macs at a system level, on Windows you can do it on some programs but it seems to have to be set up on each one which is worthless.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 10 points 1 year ago (1 child)

    My favorite windows shortcut is 'Windows+shift+left/right' to move an application between monitors. Very helpful for moving games around or snapping without have to use a mouse.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 10 points 1 year ago

    What you just described is the most gen-Y always used PCs but never knew dogshit about it thing ive heard.

    Regarding that, Wait until you learn you can use strg to move beetween words.

  • source
  • [–] 10 points 1 year ago* (2 children)

    Actually use Home and End keys to get to the start and end of text.

    Ctrl + F for searching text. Very useful.

    Alt + Tab for window switching.

    Linux + USB drive to switch away from Windows.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 9 points 1 year ago

    To be pedantic, keyboard shortcuts aren't hacks. That's the intended use of the thing, and long lists of keybaord shortcuts exist so that people can find the ones that work for them and use them. Just because most people don't do it doesn't make it a hack.

    My favorite keyboard shortcut is Super/Windows key and spacebar switches keyboard languages. That's not a hack, though.

    Closer to a "hack" is going into an android phone with ADB and disabling bloatware manually.

  • source
  • [–] 8 points 1 year ago*

    Recently had to help a relative who still uses windows, so here's a freebie from Linux:

    You can use super + number to launch any pinned program on the taskbar. For example let's say you have your browser right of the start button and file explorer on the next spot right, pressing super+1 launches the browser and super+2 the explorer

    Edit: super = windows logo key

  • source
  • [–] 8 points 1 year ago*

    I was surprised that many people didn’t know this magical ✨ shortcut

    Ctrl + Shift + t
    Cmd + Shift + t
    

    If you accidentally closed a tab in a browser, it will reopen it. Most browsers also lets you open closed tabs one after the other.

    It is easy to remember to since it is just a shift away from new tab shortcut

    Ctrl + t
    Cmd + t
    
  • source
  • [–] 8 points 1 year ago

    Win + E to open a file browser window

  • source
  • [–] 8 points 1 year ago

    I've discovered over the years that these 2 commands can fix a lot of problems for a windows computer. And there’s no practical downside unless you're running pirated software or exotic OS mods.

    DISM /Online /Cleanup-Image /RestoreHealth
    
    sfc /scannow
    
    

    As with any advice online, its critical to research and understand what you're doing. :D

  • source
  • [–] 8 points 1 year ago*

    Safe: Use text expansion for trivial yet long texts like your emails, addresses, etc. to almost eliminate errors in those texts. Espanso is something I use on Linux Mint, while macOS supports text expansion natively. I am yet to find something that fills the gap on NetBSD, but I almost exclusively use emacs on those machines, which has native support for snippets.

    Unsafe: Remove USB drive without ejecting it. :P

    Contrived yet neat: With special software (BetterTouchTool on macOS) or keyboard firmware (QMK and ZMK, which is what I use), one can use Spacebar as a layer key (SpaceFn, as it makes Spacebar behave as a Fn key) to unlock neat shortcuts like navigating using HJKL, add macros, remap hard to reach keys on to the home row, etc. There are other things that can be done such as one-shot modifiers which make typing less straining.

    P.S. The snark in the comments here is surprising. Everyone starts somewhere. Let us be welcoming.

  • source
  • [–] 7 points 1 year ago (1 child)

    Wait until you learn about vim keybindings. Instead of moving your hand to the arrow keys, you can stay on the homerow and movie up down left right from there.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    load more comments
    view more: next ›