Skip to main content

Some Useful and Simple Cmd commands everybody must know

 



What gives you a feeling of power? -- Using your computer through a command shell! Throughout my journey as a Tech-Enthusiast, it has been a thing to know and work on the cmd shell on my windows device. Here I'm going to share some crazy, simple, and useful commands which you must know as a Techie and here we go...

Know your saved Wi-Fi password using Netsh

 If you have ever found stuck in a situation where you are unable to extract a password already saved on your device? Well here is your savior the netsh command, here is how can you use it:
  1. Start your command prompt by typing cmd in the search.
  2. Type "netsh wlan show profile" (This command will give you the list of all the profiles associated).
    Profile Viewing Image

  3. Now you need to type "netsh wlan show profile "profile_name" key =clear ".
  4. And now the key content displays the password of your selected wlan profile.
    Key content displaying password

  5. Run this command on your friends' devices and let them look at you with that awestruck gaze!
 Change color of your command prompt 

If you have watched one of those movies where a hacker does some smooth green colored coding and yoo-hoo the system is hacked and have some obsession with colors, you can change the color of your command prompt by simply typing:
  • "color help" (Ths shows you the codes of the available colors). 


  • Once you have decided what color to go with just type "color colorcode"
  • And here we go!

Set a cool name by using "prompt"

 The "prompt" command helps you set a cool username for your prompt. Just try it out by simply typing:

"help prompt": this command gives you access to all the special characters codes



and then type "prompt TheNameYouWant$G" and you get :




Hide your folders using "attrib"

 If you want to hide a super important folder from your computer so that no one could find them, this one is definitely for you :
  1. Open your terminal, and enter the directory where the folder is located.
  2. " attrib +h +s +r  folder_name" and yeah it is that simple, refresh, and it's gone!
  3. For accessing your hidden folder run the command "attrib -h -s -r  folder_name", you will find it right there!
 

Know your Network with "ipconfig"

 This command lets you know all your system's network configurations in one go :
  1. Open your terminal and type "ipconfig /all". That's it!

Know your device in detail with "systeminfo"

 This command lets you know all your system details all at a single place and saves a lot more time than would ever imagine:
  1. Open your terminal and type "systeminfo".
Bingooo! here you are good to go. 


If you have some more commands to share drop them down in the comment section :)!


Comments

Popular posts from this blog

Java & Spring Interview Questions: What Really Happens Under the Hood

  Java & Spring Interview Questions: What Really Happens Under the Hood There is a phase in every developer's career where you can use something without actually understanding what is happening underneath. You know how to use ConcurrentHashMap . You know what @Transactional does. You know that Spring injects dependencies. You know @SpringBootApplication starts your application. And then the interviewer asks: "Okay, but what actually happens internally?" Suddenly, knowing the syntax isn't enough. That is exactly what this blog is about. I'm going to break down some of the Java and Spring concepts that are frequently asked in interviews, but more importantly, I'll try to understand why they work the way they do . Let's start with one of my favourites. 1. ConcurrentHashMap in Java 8: What Actually Happens? Let's first establish the problem. A normal HashMap is not thread-safe. Imagine two threads doing this at the same time: map.put("A",...

Spring & Hibernate Interview Questions: What Really Happens Under the Hood?

  Spring & Hibernate Interview Questions: What Really Happens Under the Hood? After my previous blog on Java & Spring internals , one thing became pretty clear: Knowing the annotation is easy. Explaining what happens because of that annotation is where the real interview begins. You can write: @Transactional But do you know how Spring actually starts the transaction? You can add a Spring Boot dependency. But do you know why Spring suddenly creates a bunch of beans? You can modify a JPA entity without explicitly calling save() . But do you know why Hibernate still sends an UPDATE query? And here's the one I really like: Two users try to buy the last item in stock at exactly the same time. What happens? These are the kinds of questions that move an interview from "Do you know Spring?" to "Do you actually understand Spring?" So, let's go under the hood again. 🔹 Spring & Spring Boot 1. @Bean vs @Component — What's Actually Different? At firs...

Think You Know Java? These 5 Questions Say Otherwise

  Hello everyone! Hope you’re sipping your coffee just right—because I’ve brewed something equally strong for your brain. Welcome to a blog that dives into 5 deceptively tricky Java interview questions —the kind that test not just what you know, but how well you understand Java under the hood. If you, like me, share a love-hate relationship with this language, this blog might just hit home. So, let's get started... Question 1: What will be the output of the following code? Why? class Parent { static void staticMethod() { System.out.println("Static method in Parent"); } private void privateMethod() { System.out.println("Private method in Parent"); } void show() { staticMethod(); privateMethod(); } } class Child extends Parent { static void staticMethod() { System.out.println("Static method in Child"); } private void privateMethod() { System.out.println("Pr...