Useful Commands in a terminal/cmd prompt

Useful Commands

Here are few commands for Stop execution.

To stop execution of a command in the middle of a process..
On Linux terminal, Press Ctrl+Z. It will stop the execution..
On SQL terminal, Press Ctrl+C. It will stop the execution..
On Windows cmd(command prompt) terminal, Press Pause/Break button.

it stops the execution..

The following commands helps you to fix internet connectivity problem,

open cmd prompt as administrator. Below shows screenshot of opening cmd prompt as Administrator on windows 10.

commands

and now run these command

ipconfig /flushdns
ipconfig /registerdns
netsh

netsh>winsock reset

Now restart PC, you can see Internet problem fixed.

You may be also interested in following

 

 

Quickest way to open a command prompt Windows

Quickest way to open a command prompt Windows

To open a command prompt quickly with a working directory of the current windows explorer folder on a Windows PC, you may try these

  • Hold Shift while Right-Clicking a blank space in the desired folder, you can see an option Open Command Window Here . This option available in vista, 7, 8 and 10 too

Quickest way

    • Open windows explorer, Click File menu at top left, you can see Open Command Prompt menu item, when you focus on it, it will open sub menu, with two options Open Command Prompt, and Open Command Prompt as As Administrator. Right-Click on a option and select Add to Quick Access Toolbar.

cmd_option3

cmd prompt will be added to Quick Access Toolbar at the top right as shown below, you can, So you can click on it whenever you need a cmd prompt with working directory

cmd_option2

cheers 🙂

You may be also interested in following

‘gradle’ is not recognized as an internal or external command when installed Android Studio

‘gradle’ is not recognized as an internal or external command

While trying to run a gradle command, I see ‘gradle’ is not recognized as an internal or external command. It took me sometime to know the Gradle executable path, after installing Android Studio. Hence, thought to share so it may help somebody…

The gradle executable is usually installed here(when installed by Android-Studio):

<user_home_dir>.gradle\wrapper\dists\gradle-<version>-bins\<somekey>\gradle-<version>\bin

<user_home_dir>, refers to the user directory, eg. C:Users/myuser

<version>, refers to installed gradle version number like 1.6 or 1.7 etc

the whole path looks like below

C:\Users\praveen\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok\gradle-1.6\bin

You have to set this kind of path in Environment variable PATH. And then close and reopen the cmd Prompt. Now you can able to run gradle commands

try, and you can see following details
>gradle -v
————————————————————
Gradle 1.6
————————————————————

Gradle build time: Tuesday, 7 May, 2013 9:12:14 AM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy: 2.2.0
JVM: 1.7.0_21 (Oracle Corporation 23.21-b01)
OS: Windows 8 6.2 amd64

 

not recognized

You may be also interested in