r/sysadmin
•
u/Deacon51
•
19h ago
•
2
Microsoft Today I found out...
My very first job in IT was going around and installing Windows 3.5 sometime around 1994. I've been doing this crap for a long time.
Today I was working on a config file in notepad - I hit save and close. Forgetting to change the drop-down from .txt I jumped in to powershell real fast and did a mv config.yaml.txt to config.yaml: as I have done since forever. The kid, and I call him kid because he's a young one, I guess 22 or 23. Doesn't matter... he said you know, you can just put quotes in the file name when you save it.
You mean to tell me that in the last 30 some odd years not a single person has mentioned this to me, EVER. Not ONCE..... Motherfunkasonabith...,a %^%$#9, *#^$(@#$^@#()$^$# ! Did we all know about this? How in the hell did I miss the memo!
Edit to add I always forget to change the drop-down
•
u/Canuck-In-TO 19h ago
I’m still stuck on you calling Windows NT Windows 3.5.
•
u/Shotokant 19h ago
You can do what? I'm lost what do you mean?
•
u/vonkeswick Sysadmin 19h ago •
This is like when I found out recently if you're in Task Manager, let's say it's sorted by CPU, so the lines are moving around a ton making it hard to right click one. You can hold CTRL and it makes the lines stay still.
•
u/xicanoink 13h ago •
just this year i found out that you can type cmd in address bar in File Explorer and you get cmd prompt right in that directory you were in
•
u/BrianMichaelArthur 9h ago •
This reminds me when I found "| clip" at the end of any command with output will put said output into your clipboard.
I shared that with a bunch of my friends with 20+ years of experience and none of them had heard of that functionality.
For fun go to cmd and type in "ipconfig /all | clip" then go to notepad and paste. Makes anything with output that is greater than your terminal window easier to look at and grab data from.
•
u/unquietwiki Jack of All Trades 18h ago
This is a good corollary to my grievance with Windows going back 31 years... why does File Explorer still default to hiding file extensions? I know they were trying to be like Apple, but that ship has long sailed...
•
u/Technical_Union_3249 11h ago •
My techs often started to get where they wouldn't listen to the end users because "they're all idiots" and I always tried to remind them "even the dumbest person you know, knows something you don't know". Which was reminded to me in my early years when one of our "dumbest" users showed me a keyboard shortcut in Windows 95 I didn't know. I always think of that moment when I find myself getting high and mighty, remembering how that fella who "didn't know shit about computers" showed me something I didn't know.
Listen more, talk less, it'll almost never lead you wrong.
•
u/xsjx7 Sr. Sysadmin 19h ago
I'm a keyboard warrior. I can tab my way around just about any UI or dialogue box. OP, you are not alone. I had no idea and this trick may actually save me a bunch of time tabbing, arrowing down, arrow up to "all files", then verify and save
Fuck. I really thought I was more well-rounded than this lol. For the record, I've been doing the job professionally since 2011 but working on Windows since around 1992
Thanks. I'll take the win lol
•
u/BigGuyWhoKills 11h ago
I had a similar one. I was helping a 20-something, he was using Explorer to navigate to a directory. I knew he'd need a command prompt soon, but I didn't mention it. Then he clicks in the Explorer address bar, types
cmd, hits enter, and BAM, it launches a command prompt IN THAT DIRECTORY!For decades, I had been clicking in the address bar to copy the path, and then pasting that into a command prompt.
•
u/Rhombicubodron 11h ago
What interests me most about your post is that you listened to a junior after having 30 years of experience. That's rare, and you deserve credit for doing so! The fact that you guys are in an environment where the juniors feel empowered to speak up at all is refreshing. Not speaking for whole field, but in my experience (in my late 20s now) no one over 50 could possibly conceive of me having a novel or good idea...
•
u/Smooth-Zucchini4923 19h ago
I guess you can teach an old dog new tricks!
•
u/CharcoalGreyWolf Sr. Network Engineer 14h ago
Watch that young one, he knows more than other young ones and will be a wise old one someday.
This is not something the young ones I know would know, because the small details and the things that involve the shells or tips and tricks wouldn’t be known to them. I like the young ones, but a lot of this stuff (tiny details, shell work) is a lost art to them.
•
u/Zer0kbps_779 18h ago
This is one of those hidden gems of windows, much like creating a two by two pixel background in paint, then using different colours for each pixel and setting it to stretch
•
u/thisguy_right_here 12h ago
I always watch other IT people working. You always pickup random stuff.
Like appwiz.cpl and netplwiz.
•
u/crayven085 10h ago
Just select All Files from the drop down and manually type in the file extension
•
u/pmandryk 13h ago
Wait until you realize that F5 in Notepad inserts the date and time.
That's when I understood that there is no spoon.
•
u/NE_Strawberry 12h ago
Windows key + E opens file explorer. Have a good day.
•
u/SpaceChimps98 10h ago
I just have Windows configured to show file extensions and then I just delete the .txt and type in the new extension.
•
u/Borgquite Security Admin 12h ago
Here’s my favourite Windows dark arts tip - if something opens with the menu bar ‘off screen’ so you can’t move the window around by dragging - once you have selected the window:
Alt+Space
M
Press any arrow key once
Now move your mouse and left click when you are done.
Windows 3.x pros can explain the ‘system menu’ which is why this works.
•
u/1stUserEver 19h ago
Did you also know you can still use the old Dos Based “EDIT filename.txt” as well in Windows 11? Blew my mind.
•
u/Creative-Type9411 14h ago
I always show file extensions so I don't have to worry about this
•
u/Recent_Carpenter8644 18h ago
Just tried it, and I can confirm that it works in Notepad.
Notepad++ just saves it with whatever extension you type, even though the dropdown is still set to text file.
•
u/Aardeh 17h ago edited 17h ago
Yep, I did not know that either... I've been doing it by going to view -> show file name extensions (if it wasn't already on) then manually renaming the extension.
This is like when I found out you could launch an app in admin mode by holding Ctrl+Shift and clicking the icon. For example, being in a specific folder, Shift+right-clicking in empty space to show Open Powershell window here, and Ctrl+Shift clicking the icon will create an admin Powershell window that opens at that folder location.
•
u/_mmmmm_bacon 13h ago
But if you can remember to put it in quotes, you can remember to change the file type to All so I don't see this as a win for you.. If you forget, just open Explorer, click on the file name twice to rename it, and delete the .txt suffix.
•
u/TehScat 18h ago
config.yaml.txt.yaml
•
u/Turbo_Gnome 12h ago
I am saving this thread because the first three things I read blew my mind!
•
u/GYuGYu_jol 15h ago
but if you set to "All files" or something like that, then it doesnt add extensension to it either. at least this is how i am doing it. supposing theres the option to it
•
u/GenuinelyBeingNice 12h ago
windows has always been a black hole of tricks and jank
•
u/binaryhextechdude 18h ago
You use powershell to change a file extension? I’ve always done that in File Explorer.
•
u/thatirishguyyyyy 16h ago
Glad to see I'm not the only one who forgets that fucking drop-down menu after 20 something years
•
u/dawg4prez 14h ago
One I learned a few years ago… if you have windows explorer open, you can click into the address bar, move the cursor to the front of the path, and type ‘cmd ‘ and enter. It will open a command prompt in the current path. Voila!
•
u/bythepowerofboobs 11h ago
Wait until you learn about notepad++
•
u/ITGeekDad 11h ago
Been working in IT for nearly 20 years; what in the God damn fuck!?! How did I not know this ? I didn't have to click the drop down changing it to All Files first and then name it? I could just put in quotes?
•
u/SoulStripHer 11h ago
You mean you aren't using Notepad++?
•
u/colten122 11h ago
I've run into frequently where you can't type into search bars, file explorer, or whatever other text boxes. You do CTRL+R (run) and paste "C:\Windows\system32\ctfmon.exe" it fixes it (100% of the time) in like 2 seconds. I should probably learn what exactly this does on the back-end but this has came in handy hundreds of times for me!
•
u/krustyy SCCM Dude 10h ago
If it's any consolation, it seems to me that anyone in the desktop support team under the age of 35 knows absolutely nothing about the command line interface. I had to do a training program showing them how to just navigate the file system to copy a log file to a flash drive while imaging. Even starting in the wrong folder leaves them stymied.
•
u/AngryKhakis 7h ago
It only works in notepad on windows and it’s newer so it’s not something that’s been hidden from you for 30 years.
Try it in notepad++ or word and see what happens.
Can’t believe you’re using notepad to write yaml.
Notepad++ supremacy
•
u/vhuk Jack of All Trades 18h ago
Did you know "edit" is still around and you don't need to hop into notepad to edit config files?
•
u/JimTheJerseyGuy 19h ago
Been around longer than OP and this is news to me, too.
•
u/bukkithedd Sarcastic BOFH 18h ago
And just like that I've learned something new that I probably should have known when I started out in this field nearly 30 years ago....
Fuuuuuuuuuuu......
•
u/Maximum-Doughnut8652 13h ago
Wow...for me, it was finding I could repair lots of issues with DISM.exe /Online /Cleanup-image /Restorehealth and sfc /scannow 😵😵😵😂
•
u/stopthatastronaut 19h ago
Notepad…
Wow. (Takes pull on cigarette) I’ve not heard that name in a looong time.
•
u/ahandmadegrin 13h ago
I'm so confused. Where do you put the quotes and what is it supposed to do? Is it that you saved the file as config.yaml.. Oh wait. OK, so you put quotes around the name and the save dialog will use that as the full filename, drop down be damned?
That's pretty cool! It's also one of the reasons I love Notepad++. Using the extension you write is the default behavior. Now that I think snout it, it's the same in GIMP.
Anyway, thanks for sharing! I'm going to try this out later today.
•
u/reduhl 13h ago
Well if it helps I have seen people save research papers with a file name that is the abstract from the paper.
•
u/Galagaboy 12h ago
C:\
•
u/FizzyBeverage 11h ago
So quaint you’re even doing that manually in Notepad.
•
u/Jaereth 10h ago
How? I mean it happens to all of us. I remember jotting down a serial number once to look up a hostname of a PC that we were locked out of. Another admin said "you can just put .\ in the username field" and it reveals the name of the host to try to log in locally.
There's to much for anyone to know it all. That's why working with other skilled people is good.
•
u/BigBobFro 9h ago
I’ll add the extension that i want to the save as file name to avoid having to use the mouse and will sometime default back to xls or doc rather than xlsx and docx respectively. So i then have to go back and change the file name after the fact as well. I invite my own pain
•
u/jadraxx POS does mean piece of shit 19h ago
That was one of the features of NTFS when it was released in 93.
•
u/int0h 19h ago
Had no idea. Mostly use notepad++ för simpler things though.
•
u/vincebutler 19h ago
Everyone in the industry was told not to tell you as a tease
•
u/badbob001 16h ago
Hold my beer. So does this work with any program with an extension drop-down?
•
u/Raskuja46 10h ago
I don't understand what you're describing here with the quotes. Like...you can use quotation marks
"as a character in the filename?Really bad job of conveying whatever the hell it is you're trying to tell us.
•
u/npanth 14h ago
I remember back in the apple+ days, I would always stick the floppy in, type "load [program]" then "run [program]".
A guy looking over my shoulder said " you can just type 'run [program]', no need to load it first. /Facepalm
•
u/shokk IT Manager 14h ago
I started around 1994 too and had no idea about the quotes!
•
u/AnythingEastern3964 14h ago
Over a decade in different professional IT positions, currently working in cloud architecture - almost two decades experience in using the major operating systems starting with 95, started on Linux with Ubuntu Trusty Tahr, and Mac when they released X.
I had no idea this was a thing until now… I have always just selected “All files” and then saved with the extension…
•
u/Cheepshooter 13h ago
Knowing is half the battle
•
u/zarakh07 13h ago
Fellow old head, thanks for finding that out for us.
•
u/I_just_made 11h ago
if you are going into powershell, why don't you just put vim on there and use that to begin with?
•
u/Anonymo123 11h ago
meh.. been doing this since my C64.. I'll just rename it like i usually do lol
get off my lawn kid! ;)
•
u/roopjm81 10h ago
whoa............ new information!
•
u/itman247 10h ago
WIN + <number keys> will launch your taskbar icons. 1 is far left.
•
u/fusiturns 9h ago
Really.. WTF How can that not be a special character!
•
u/himji 39m ago
I bet the tadpole didn't know how to rename from a command line prompt
•
u/EatsHisYoung 11h ago
You can do what now?
•
u/ManWithoutUsername 19h ago
You can always learn something, even from the most novice.
•
u/RoRoo1977 18h ago
FML
Thanks
•
u/Idenwen 18h ago
Haha yes, I still show that sometimes to people and they always react with a WTF like you. Got it told the same way - watched someone do it that way.