Your One-Stop Guide to Learn Command Prompt Hacks

For Windows operating systems, Command Prompt (CMD) application is an irreplaceable part of work. Many of us know about the Command Prompt tool, but some of us are only aware of its various useful applications and command tasks it can perform. This tutorial on 'Command Prompt Hacks' covers some of the most used tricks that will show us the application of Command Prompt. 

What Is Command Prompt?

what_is_command_prompt.

The Command Prompt is a graphical interface used to access the system's administrative settings using the CMD commands. It works in the command line interpreter format to read the commands and then execute them. 

Become a Certified Ethical Hacker!

CEH v12 - Certified Ethical Hacking CourseExplore Program
Become a Certified Ethical Hacker!

The CMD commands are used to troubleshoot network connections in the system, maintain system security, and are also applicable for administrative tasks, just by using single-line commands. In this tutorial on 'Command Prompt Hacks', you will understand some of the command hacks.

Next, you will see how you can access the Command Prompt tool.

How to Open Command Prompt?

Many of you are already familiar with accessing the CMD tool, but those who are fairly new to the application can follow these steps to access the Command Prompt window,

Method 1

  • Click on the windows key/Click on the search box.
  • Type CMD in the search box and press enter.

command_prompt_start_1.

Become a Certified Ethical Hacker!

CEH v12 - Certified Ethical Hacking CourseExplore Program
Become a Certified Ethical Hacker!

Method 2

  • Click on the windows key/Click on the search box.
  • Type 'Run' in the search box, and enter.
  • Then type CMD in the Run tool and press 'OK.'

command_prompt_start_2

Now, move on to the main heading of this tutorial on 'Command Prompt Hacks.'

Command Prompt Hacks

Below mentioned tricks are some of the commands that allow the user to experience the usefulness of the Command Prompt tool. Now, take a look at them in detail.

1. How to Create a Hidden Folder?

Often, you need some secure folders, where you can save your private data and information that is not accessible to others, but using the hidden option in the file manager is sometimes unreliable.

command_prompt_secure_folder.

This problem can be solved using the command line, which allows you to create a non-edited, deleted, or moved folder and only accessible to the creator, and this can be done by using the command - md aux\.

2. How to Hide a Folder?

Using the command line, you can easily hide a file or a folder, which can be done by typing the following command, attrib +h +s +r folder_name, and pressing Enter.

command_prompt_hide_folder.

Use the following command, attrib -h -s -r folder_name, to make the folder visible again.

command_prompt_unhide_folder.

3. Open Command Prompt From Any Folder

Click on the address bar in the folder, type CMD, and press Enter.

command_prompt_from_folder1.

command_prompt_from_folder2.

4. Change the Title of the Command Prompt

You can change the title of the Command Prompt Window using the command title window_title_name.

Default Title

command_prompt_default_title.

After Change

command_prompt_user_title

5. Change the Prompt of the Command Prompt

If you want the prompt to display the prompt of your choice, you can type the following command,

prompt prompt_name $G and press Enter.

command_prompt_user_prompt.

The $G in the command represents the greater-than sign (>).

Become a Certified Ethical Hacker!

CEH v12 - Certified Ethical Hacking CourseExplore Program
Become a Certified Ethical Hacker!

6. Open Any Site From the Prompt Window

Command Prompt allows you to open any website directly by using the command line in the interpreter, i.e., start www.website_name.com and press Enter to execute the command.

command_prompt_open_website.

7. Access the IP Address of Any Website

To access the IP address of a website, you can directly do so by using ping www.website_name.com and pressing Enter to execute the command.

command_prompt_IP_address

8. Shutdown System Using Command Prompt

Now that you are used to the command prompt tool, you will end this tutorial on 'Command Prompt Hacks' with the most suitable trick, i.e., using the command line to shut down the system or to restart the system.

Shutdown the system - shutdown -s

command_prompt_shutdown.

To restart the system - shutdown -r

command_prompt_restart.

You can also add a time constraint and message box to make it more interactive in this command.

command_prompt_shutdown_time_message

Transform your cybersecurity career and become an industry-ready professional by enrolling in our Advanced Executive Program in Cybersecurity today.

Conclusion

In this tutorial on Command Prompt Hacks, you understood the working of Windows Command Prompt and how it allows its user to perform advanced tasks in the system.

You also learned various command hacks for the Command Prompt, which would make anyone feel like professional users.

To learn more about topics related to network security and the system's advanced features, you can refer to Simplilearn's Professional Certificate Program in Ethical Hacking and Penetration Testing course, and Windows Command Prompt allows us to perform much more complex tasks in the system just by using a simple command line.

Do you have any questions related to this tutorial on Command Prompt Hacks? If yes, feel free to mention them in the comment section at the bottom of this page. Our team will help you solve your queries ASAP.

About the Author

Anmol KapoorAnmol Kapoor

Anmol is a Research Analyst who aims to become a Data Scientist one day. He enjoys Data Management systems and analysis. You will find him reading a book when he is not working.

View More
  • Acknowledgement
  • PMP, PMI, PMBOK, CAPM, PgMP, PfMP, ACP, PBA, RMP, SP, OPM3 and the PMI ATP seal are the registered marks of the Project Management Institute, Inc.