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.

  • starman@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 hours ago

    Not most used, but I recently discovered a lot of new options in COSMIC’s launcher, and I use them all the time.

    Just type ? and you’ll see what I mean.

  • N00b22@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 hours ago
    1. Shift + Tab (also works on Linux)

    2. If you have a mouse with side buttons, you can use the side buttons to go back or go to the next page on browsers

    3. Pressing Alt + F4 on the desktop opens up a dialog asking if you want to shut down, restart, log out, etc. (I think this works on Linux as well)

  • 0x30507DE@lemmy.today
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 hours ago

    Dunno if Emacs Lisp counts as a life hack, but I’ve been slowly learning it, and it’s very nice to be able to setup custom workflows with such a high degree of customization (and a substantial amount of flycheck yelling at me)

  • folekaule@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    6 hours ago

    My main one is to learn shortcuts on your most used programs. Using the mouse for everything is a waste of time, but that has been said multiple times.

    My second is to create scripts to do a bunch of repetitive tasks. For example, I have a script I run on my work PC after I log on to the VPN that starts my “always on” programs (like notepad++), unlocks the hosts file, etc. I have some sendto scripts for converting files with pandoc, fetching multiple git repos in one go, etc. It just speeds up things and avoids errors versus me doing them manually.

    On Windows I use PowerShell and on Linux I use bash, meaning they work without additional software installed.

  • Randomocity@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    10
    ·
    8 hours ago

    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.

  • Bitflip@lemmy.ml
    link
    fedilink
    arrow-up
    11
    ·
    8 hours ago

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

    • hornywarthogfart@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 hours ago

      This is a huge one for me. For those who don’t know, this brings up the rev-i-search utility which allows cycling from most recent to oldest commands executed. It also supports partial finds so if you did ‘cd’ it would cycle the most recent change directory commands.

      The forward search (in case you’re somewhere in the history stack) is ctrl+s and operates the same except crawls the command history forwards.

      I use these constantly in my normal workflow and they save a ton of time.

  • Willdrick@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    7 hours 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

  • tatterdemalion@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    6 hours ago

    Use a tiling window manager like sway.

    Get some big HDDs and self host your own file storage on zfs. Same for media servers like jellyfin. You can also host qBitTorrent web client so it’s accessible from anywhere.

    Set up a VM in Hetzner cloud and host vaultwarden.

    Expose your services over wireguard.

  • moe93@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    27
    ·
    12 hours ago

    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 !$

    • hornywarthogfart@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      7 hours ago

      The - works with git branching as well for those who didn’t know. git checkout - will switch to the previously checked out branch so it effectively toggles between your two most recent branches.

    • owenfromcanada@lemmy.ca
      link
      fedilink
      arrow-up
      8
      ·
      11 hours ago

      Oh dang, I never knew about the !! shortcut. I especially like it for the sudo example, because when it complains I don’t have permission, I can basically yell at it.

      • davidgro@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        10 hours ago

        I’ve seen posts suggesting adding the following to your .bashrc:

        alias fuck='sudo $(history -p \!\!)'
        
  • Bahnd Rollard@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    11 hours ago

    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)

    • feannag@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      7 hours ago

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

      • Sheldan@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        7 hours ago

        It is, we used the same just with the accessibility button in earlier Windows Versions to troll one another in school. Thing is, if encryption is enabled it won’t work.

        • Züri@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          19 minutes ago

          Not having the disk encrypted is the same as writing the password on the frame of the screen.