Site icon Narayana Tutorial

Windows most useful commands

windows most useful commands

windows most useful commands

Windows most useful commands

In this post I am sharing windows most useful commands using regular basis in our life. you can execute the same commands mentioned in bold, in your system and see output for better understanding.

To check system IP

D:\narayanatutorial>ipconfig

Windows IP Configuration


Ethernet adapter Ethernet:

 Media State . . . . . . . . . . . : Media disconnected
 Connection-specific DNS Suffix . :

Wireless LAN adapter Local Area Connection* 2:

 Media State . . . . . . . . . . . : Media disconnected
 Connection-specific DNS Suffix . :

Ethernet adapter VirtualBox Host-Only Network:

 Connection-specific DNS Suffix . :
 Link-local IPv6 Address . . . . . : fe80::c8:d986:9d97:482b%3
 IPv4 Address. . . . . . . . . . . : 192.168.56.1
 Subnet Mask . . . . . . . . . . . : 255.255.255.0
 Default Gateway . . . . . . . . . :

Wireless LAN adapter Wi-Fi:

 Connection-specific DNS Suffix . :
 Link-local IPv6 Address . . . . . : fe80::2421:bb25:a7c3:3ec6%13
 IPv4 Address. . . . . . . . . . . : 192.168.0.104
 Subnet Mask . . . . . . . . . . . : 255.255.255.0
 Default Gateway . . . . . . . . . : 192.168.0.1

To resolve DNS resolver cache

Some times DNS will not be reflected from cache if you configured new DNS. So using this command we can remove DNS from cache and update new DNS IP

D:\narayanatutorial>ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

D:\narayanatutorial>

To View Entire Directory Structure In Drive

C:\Users\swamy>tree
Folder PATH listing
Volume serial number is 8ACB-4A86
C:.
├───.dbeaver
│ ├───.metadata
│ │ └───.plugins
│ │ ├───org.eclipse.core.resources
│ │ │ ├───.history
│ │ │ │ ├───e6
│ │ │ │ └───ff
│ │ │ ├───.projects
│ │ │ │ └───General
│ │ │ │ └───.indexes
│ │ │ │ └───18
│ │ │ ├───.root
│ │ │ │ └───.indexes
│ │ │ └───.safetable
│ │ ├───org.eclipse.core.runtime
│ │ │ └───.settings
│ │ ├───org.eclipse.e4.workbench
│ │ ├───org.eclipse.ui.workbench
│ │ ├───org.jkiss.dbeaver.core
│ │ │ └───security
│ │ └───org.jkiss.dbeaver.model
│ └───General
│ └───Scripts
├───.Icecream Screen Recorder
│ └───log
├───.oracle_jre_usage
├───.swt
│ └───lib
│ └───win32
│ └───x86

To view commands output data in one page

It will display list of files in the last(end) directory in one page with –more– option at the end of the page, then press space bar then you can jump to next page.

C:\>dir /s |more
Volume in drive C has no label.
Volume Serial Number is 8ACB-4A86

 Directory of C:\Users\swamy

11/01/2016 05:42 AM <DIR> .
11/01/2016 05:42 AM <DIR> ..
09/09/2016 03:37 PM <DIR> .dbeaver
11/01/2016 03:58 AM <DIR> .Icecream Screen Recorder
08/24/2016 07:00 AM <DIR> .oracle_jre_usage
10/28/2016 05:37 PM <DIR> .swt
11/02/2016 09:10 AM <DIR> .VirtualBox
10/04/2016 11:30 PM <DIR> Contacts
10/28/2016 09:31 PM <DIR> Degoo
11/05/2016 10:43 PM <DIR> Desktop
11/04/2016 12:32 AM <DIR> Documents
11/05/2016 07:43 PM <DIR> Downloads
10/05/2016 09:51 PM <DIR> Favorites
11/02/2016 09:10 AM <DIR> Google Drive
10/05/2016 09:51 PM <DIR> Links
10/28/2016 09:56 PM <DIR> Music
09/25/2016 12:23 PM <DIR> OneDrive
10/31/2016 09:55 AM <DIR> Oracle
10/04/2016 11:30 PM <DIR> Pictures
10/04/2016 11:30 PM <DIR> Saved Games
10/14/2016 11:48 PM <DIR> Searches
10/04/2016 11:30 PM <DIR> Videos
11/01/2016 06:44 AM <DIR> VirtualBox VMs
 0 File(s) 0 bytes

 Directory of C:\Users\swamy\.dbeaver

09/09/2016 03:37 PM <DIR> .
09/09/2016 03:37 PM <DIR> ..
10/27/2016 10:19 PM <DIR> .metadata
09/09/2016 03:45 PM <DIR> General
 0 File(s) 0 bytes

 Directory of C:\Users\swamy\.dbeaver\.metadata

10/27/2016 10:19 PM <DIR> .
10/27/2016 10:19 PM <DIR> ..
-- More --

To view list of files in end of the sub directory

We can see the list of files in end of the each sub directory without any pagination. If you want see page wise, then use the above command.

C:\>dir /s
Volume in drive C has no label.
Volume Serial Number is 8ACB-4A86

 Directory of C:\Users\swamy

11/01/2016 05:42 AM <DIR> .
11/01/2016 05:42 AM <DIR> ..
09/09/2016 03:37 PM <DIR> .dbeaver
11/01/2016 03:58 AM <DIR> .Icecream Screen Recorder
08/24/2016 07:00 AM <DIR> .oracle_jre_usage
10/28/2016 05:37 PM <DIR> .swt
11/02/2016 09:10 AM <DIR> .VirtualBox
10/04/2016 11:30 PM <DIR> Contacts
10/28/2016 09:31 PM <DIR> Degoo
11/05/2016 10:43 PM <DIR> Desktop
11/04/2016 12:32 AM <DIR> Documents
11/05/2016 07:43 PM <DIR> Downloads
10/05/2016 09:51 PM <DIR> Favorites
11/02/2016 09:10 AM <DIR> Google Drive
10/05/2016 09:51 PM <DIR> Links
10/28/2016 09:56 PM <DIR> Music
09/25/2016 12:23 PM <DIR> OneDrive
10/31/2016 09:55 AM <DIR> Oracle
10/04/2016 11:30 PM <DIR> Pictures
10/04/2016 11:30 PM <DIR> Saved Games
10/14/2016 11:48 PM <DIR> Searches
10/04/2016 11:30 PM <DIR> Videos
11/01/2016 06:44 AM <DIR> VirtualBox VMs
 0 File(s) 0 bytes

 Directory of C:\Users\swamy\.dbeaver

09/09/2016 03:37 PM <DIR> .
09/09/2016 03:37 PM <DIR> ..
10/27/2016 10:19 PM <DIR> .metadata
09/09/2016 03:45 PM <DIR> General
 0 File(s) 0 bytes

 Directory of C:\Users\swamy\.dbeaver\.metadata

10/27/2016 10:19 PM <DIR> .
10/27/2016 10:19 PM <DIR> ..