End > shift+home will let you copy lines outside of IDE
post
Cutting and pasting a folder is faster than copying and pasting.
OS just gotta add an inode in first case.
Ctrl + C
Ctrl + V
Ctrl+Shift+Reset returns your document to the last saved state.
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 !$
Windows+L every time I leave my desk.
If anyone left their computer unlocked at my old job, the entire office was getting an email about how much you love Justin Bieber
⌃⌘Q for those of us on MacBooks
and win+x > up up right down enter, every night
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.
-
Get a Windows recovery USB.
-
Boot into the recovery menu and open the command prompt.
-
Navagate to system32 and make a copy of the cmd.exe file (for a backup)
-
Copy the sticky_keys.exe and have it overwrite cmd.exe, then reboot.
-
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.
-
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)
I used to use a boot CD with a password eraser. I think the last time I used it was win 7 though
That.... Seems like a pretty massive vulnerability. Like obviously that can be locked down by each user or administrator, but still....
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.
Not having the disk encrypted is the same as writing the password on the frame of the screen.
Exactly, bitlocker or disk encryption prevents this from working and because you need some means of editing the file system outside of the user permissions, also physical access is required. At this point your are pretty much authorized to unplug the box and walk out of there with it (even if your not supposed to).
Does bitlocker solve this issue?
This seems like a lot of work to bypass a password on an unencrypted drive. You can access all the files using a bootable Linux drive.
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
I'll add some mouse ones: if you have thumb buttons they are next/previous page.
Mouse wheel down clicking on a link opens it in a new tab.
Mouse wheel down clicking on a tab label closes the tab (no need to hunt for the little x).
Vim takes your keyboard shortcuts to the extreme. If you can be bothered to learn it.
And for those who can't be bothered, opening vim is like the digital version of a finger trap.
Is there a non-digital version of a finger trap? 🥁
🤣
There is an answer, tho.
Stars Eric André and Lil Rel Howery shuffled into an Atlanta barber shop seeking scissor-cutting help as their characters (best friends Chris and Bud) announced their groins were stuck together in a Chinese finger trap.
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.
I opened vim and I've been stuck ever since. Send help
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.
Keyboard shortcuts for everything. Mousing to a menu is a waste of time in any app you use daily.
Using ublock origin picker to remove everything useless. Like, Youtube suggestions, everything but download button on ddl websites, useless footers/headers on news, etc...
Just getting people to switch away from chrome to get ublock origin is a major hack all itself and completely changed the way you use the internet.
Why have I not been doing this?! Just removed the "2 years old" .world banner.
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.
Showed a coworker that while he was training me.
"OK, right-click on that and..."
<center click>
puzzled
"OK, right-click...
<center click>
Unless the page uses shitty "link" implementation where buttons are use instead of actual anchor tags. Fucking SPAs…
Very recently, I have adopted Shift+LMBclick to open a link in a new browser window.
I use this primarily for accessing one link in favorites bar.
I would love to figure out a non-extension way (curse you, draconian IT policy!) to set this behavior in the favorite/bookmark...
there's a extension to do this with the right click button instead too
click using the mouse wheel
'middle click'
You can also middle click on a tab to close it! Also, middle clicking stuff pinned to your taskbar like the file explorer or your browser opens up a new window of it.
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.
What’s the point of the VPS?
Mainly to keep my end devices appearing to connect to a VPN in the same country. I usually do that especially when I travel to other countries that seem to block WireGuard leaving their borders.
I suppose if I had fiber at home I’d do it all there but cable internet’s slow 30 Mbps upload speed along with constant power outages make it a no-go.
Oh kid, I do this for over forty years now.
I'm kinda mind blown that this is even considered a tip. isn't this just basic functionality of a text box???
it's shit like this that makes me think I do know tech a little bit, until i stumble on an actual tech community and feel like I know nothing
For real, I remember when Solitaire was added to Windows to teach people how to use a mouse. It wasn’t just some fun little thing they added on a whim. The goal was to provide an entertaining way for users to naturally learn mouse controls like clicking and dragging.
Before then, you had to use the keyboard to navigate text, because you literally didn’t have a mouse.
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.
That's handy, my computer is struggling to run crusader kings 3 when I start it up sometimes and I have to restart the whole thing. Next time I'll try this.
Trying to save to buy a new pc but with a baby on the way most of our money is going to baby stuff at the moment
if you're concerned about how much you need to move your hand, then you'll probably love (neo)vim
Ctrl + shift + esc brings up the Windows task manager directly instead of the menu you get when you press ctrl + alt + del
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.
True. But also if you are going to use arrow keys to navigate you will want to also know where your scroll lock key is because it's almost useless unless you use arrow key navigation
Nobody tell OP about the Page Up and Page Down keys, their head might literally explode. (jk op).
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
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.
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
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
As a basic Linux user, I have a shell script to do all my updating, upgrading, removing of unneeded packages, etcetera. Under no circumstances is it all that advanced, just a string of simple enough apt and flatpak commands.
I also recently figured out that god knows how long ago that I set an alias to run it that's only 3 keyboard clicks instead of 5, saving basically less than a second. So not that useful, but still good to know... until I inevitably forget about it again.
I've been yum-cronning since 2002. You guys still do it manually?
As someone who has only been using Linux for a few years ( >5 ), yeah I do.
Definitely know what cron/cronning is, but I'll definitely have to look up what yum-cronning is.
Edit:
I'm an idiot and correct in my thinking that yum was referring to the yum package management thing, which I don't use on my system. Sounds cool, though. Might look into automating my setup, but it's become such a routine for me to run the script I'm not sure if I could easily switch.
Add Home/End buttons into your work flow to jump to the start or end of lines. Works with holding Shift as well.
For me, one of the biggest things was removing all the visual noise from my desktop. Disable notifications, disable or hide unused taskbar elements, and on Windows, get rid of the patently awful ticker thing that lives on the taskbar. Disable window animations.
I did the same thing on my phone, too, including disabling pop-up notifications, toasts, floating bubbles, and animations. My brain is much happier for it.
Pretty much anything has a free alternative. Often times, with a better UI or more features with far less bloat than the top commercial product.
The Multiple desktops feature is critical for me. It allows you to use one computer for multiple functional concepts simultaneously without visually interfering with each other or constantly needing to close and re-open things. It's available in both windows and linux (which had it first) for a long time now.
I keep my personal stuff on one desktop, I keep my work stuff on a second desktop, and I keep my gaming stuff on a third desktop. Then I just flip between them based on what I'm currently doing.
That way I'm not getting things confused with each other, or distracted by something personal while I'm working.
Ctrl+Windows+Left/Right for Windows is the shortcut to flip back and forth between them. Or you can also see it on the Windows+Tab menu as well (along the bottom below the apps)
The only downside to this is that you need more RAM than normal, because it's not uncommon for me to have dozens (sometimes north of 100) of browser tabs, and a half dozen applications from office to video games open simultaneously between the different desktops. I would suggest running 32gb at a minimum, and 64gb is a lot better.
I've found the windows one sorely lacking. As I recall all windows of a specific program have to be on a single desktop. This causes issues if you are working on multiple word docs, browser windows, or even just want access to email in both desktops. AFAIK there isn't a work around to this. Am I out of the loop on a nice windows feature?
You must be out of the loop, I have different browser tabs and excel files up on different desktops right now.
Sometimes if you need to start a new file it will swap you around, but you can always immediately move it wherever you want.
You can specify a window to show on all desktops (or all windows from the same app). Just right-click the window from the Task View screen (Win + tab)
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.

top 97 comments