11 Command Prompt Tricks which will make you a Command Prompt Expert

11 Command Prompt Tricks which will make you a Command Prompt Expert


Windows Command Prompt Tool, and many of its commands, seem to be boring or even relatively useless at first glance, but whoever has used a command prompt can tell you, there is a lot to love!

I guarantee that many of these command prompt tricks and other command prompt hacks will encourage you about the commands of many monotonous command prompt.

Some of these command prompts are special features or fun usage for tricks and hack command prompts, while with some other CMD commands you can do only simple or relatively unknown things.



1) Use Ctrl-C to Abort a Command

Any command running on your track can be stopped with this Ctrl-C command.

If you did not actually execute the command, you can delete whatever you have typed with the back space of the keyboard, but if you have already executed it, then press Ctrl-C to stop it. Can.

2) View a Command

Are there any such commands that generate a lot of information on the screen? Like dir command This information is difficult to see on the same screen at the same time.

There is a way for this, so whatever information is produced you are shown in a page, or a line.

To do this, simply type the command, for example dir command, and then type more command with the pipe character.
for example-
dir / p

Command Prompt Tricks
When this command is executed, many results will be generated for pages that you expect from the dir command, but the more commands will stop every page of the results in the bottom of the page.

Just press the spacebar to see the next page, or hit enter to push one row at a time.

3) Run Command Prompt as Administrator Automatically

To run many commands in Windows, you need to run it as run as administrator.

For this you have to always right-click any command prompt shortcut and select Run as administrator.

But if you always need to run a command prompt with Run as administrator, creating a shortcut for it can be a big time saver.

Command Prompt Tricks
To complete this command prompt trick, simply create a command prompt shortcut on the desktop, in the shortcut properties, check the Run as administrator box on the Advanced button.

4) Become a Command Prompt

The fact is that function keys actually do a lot in the command prompt and it is probably one of the great secrets about this tool:

F1: Paste the last exicute command (Character by Character)

F2: Past exits the command (from the entered character)

F3: Paste the last exicute command

F4: Deletes current current prompt text to the entered character

F5: Recently pastes Execute commands.

F6: Paste ^ z in the prompt.

F7: First Execute makes a selectable list of commands

F8: Recently Execute Command (Cycle)

F9: F7 asks for paste from the list to the number of commands


5) Hack the Prompt Text

Did you know that the prompt at the command prompt is automatically customizable?

Instead of C: \>, you can set prompts for any text, including the time, the current drive, the Windows version number (such as in this example image), you can name it.

A useful example-

prompt $ m

6) Get Help for Any Command

Believe it or not, the help command does not provide support for every command prompt.

However, any command /? Option can be suffixed with, which is usually called the help switch, to display detailed information about the syntax of the command and often some examples.
for example-

Command Prompt Tricks in Hindi-1
dir /?

7) Save a command

An incredibly useful command prompt is a trick redirection operator, especially> and >> is the use of operators.

These small characters allow you to redirect the output of the command to a text file, giving you a saved version of any of the commands given in the command prompt window.


For example, you -


systeminfo> D: \ mycomputerinfo.txt


Command Prompt Tricks in Hindi

To save the information provided by the systeminfo command in that file, you can excel.

8) View a Drive's Entire Directory Structure

One of the smallest commands is the tree command. With the tree, you can create a kind of map of the directory on your computer's drive.

To see the folder structure under that directory, excel the tree command from any directory.
With so many information created with this command, perhaps exporting a tree's result to a file is a good idea so that you can actually see it.

For example, tree / a> D: \ export.txt, all the Folder Structure from the Current Directory directory will be exported to a NotePat file on your PC's D drive.
09) Open Command Prompt From Any Location
If you have ever worked for a long time in a command prompt, then you know that exchanging the cd / chdir command repeatedly can be frustrating to get into the root directory.

Fortunately, there is a super easy command prompt trick that will open the Command Prompt window in whatever folder you see in Windows.

All you have to do is navigate to that folder from where you want to start working in the command prompt. When you are there, hold Shift while right-clicking anywhere in the folder.

Command Prompt Tricks in Hindi
Once the menu is popped up, you have to click on the Open command window here.



10) Drag and Drop

Most command prompt commands require you to specify a full path for files or folders, or options, but typing a long path can be frustrating, especially when you want to leave a character and start over Are.

For example, in Windows 10, the Accessories Group's path to the Start menu is C: \ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ Accessories. Who would want to type it manually?

Fortunately there is a command prompt trick that makes it very easy: drag and drop

Just navigate to the file that you want the path in the file / windows explorer. Once there, drag that folder or file to the Command Prompt window. Now it will be magic and the full path will come in the command prompt window.



11) Shut Down or Restart Another Computer

In the business system administrators do this all the time for a variety of reasons, but you can also shut down or restart any other computer on your computer's command prompt.

The easiest way to shut down the computer remotely, to open the remote shutdown dialog shown here, type this command at the command prompt -


shutdown / i


Command Prompt Tricks in Hindi

Now a dialog box of Remote Shutdown will open. Enter the name of the remote computer here), choose what you want to do (restart or shutdown), select some other options, and then click OK.
Share:

No comments:

Post a Comment

Categories

Popular Posts