Pages

Top commands

Here some top commands which are very useful when you are interested  to  learning MS-DOS




Here I'm providing text  if you are not interested to watch video

note: here i'm not providing complete description 


First command
1)command                                                     tasklist
tasklist is used to view your present tasks of your computer which are working with windows os and dos..
example::
C:\Users\Mallesh>tasklist

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0          8 K
System                           4 Services                   0         64 K
smss.exe                       424 Services                   0        780 K
csrss.exe                      544 Services                   0      3,040 K
wininit.exe                    616 Services                   0      3,404 K
csrss.exe                      628 Console                    1      7,032 K
winlogon.exe                   692 Console                    1      6,360 K
services.exe                   744 Services                   0      5,088 K
lsass.exe                      756 Services                   0     10,852 K
svchost.exe                    836 Services                   0     16,124 K
svchost.exe                    900 Services                   0      8,712 K
dwm.exe                       1004 Console                    1     31,040 K
svchost.exe                   1028 Services                   0     17,428 K
notepad.exe                   2760 Console                    1      9,896 K
you can get like this and you can get more tasklists ..
2)command                                  taskkill
taskkill is a commnad which used to kill a running task on your tasklist ..it will useful when your strugling to stop some third party applications or virus programs  etc,. Be-careful when you are using this command because its make system crash or needs to reboots your pc..

example;:                                         taskkill /f /im notepad.exe
it works when notepad opened on your computer ...be sure before using the name of the process..

3)command                                       dir
                                                        dir /a:h
                                                        dir /a:h /s
dir used to show the folders and dir /a:h used to show files which are hidden as a system dir/a:h /s show all files and folders
example:                                              dir 

D:\>dir
 Volume in drive D is Softwares
 Volume Serial Number is F8B3-F211

 Directory of D:\

08-Jul-16  09:39 PM    <DIR>          Bluetooth
06-Jan-15  10:59 PM    <DIR>          DC
27-Jan-17  07:38 PM    <DIR>          dURGA
11-Jun-16  07:08 PM    <DIR>          file
04-Feb-17  05:21 PM            56,518 filelist.bat
06-Feb-17  01:21 PM    <DIR>          Games

09-May-14  04:33 AM    <DIR>          java
example:                                              dir /a:h
D:\>dir /a:h
 Volume in drive D is Softwares
 Volume Serial Number is F8B3-F211

 Directory of D:\

17-Mar-17  12:39 PM    <DIR>          $AV_ASW
11-Jan-16  09:13 AM    <DIR>          $RECYCLE.BIN
27-Feb-17  05:31 PM    <DIR>          1
04-Jul-16  02:13 PM    <DIR>          Bleach
06-Oct-13  11:19 AM    <DIR>          Config.Msi
16-Nov-16  04:50 PM    <DIR>          Mallesh

04-Aug-15  03:49 PM    <DIR>          System Volume Information
example:                                              dir /a:h /s
D:\>dir /a:h /s
 Volume in drive D is Softwares
 Volume Serial Number is F8B3-F211

 Directory of D:\

17-Mar-17  12:39 PM    <DIR>          $AV_ASW
11-Jan-16  09:13 AM    <DIR>          $RECYCLE.BIN
27-Feb-17  05:31 PM    <DIR>          1
04-Jul-16  02:13 PM    <DIR>          Bleach
06-Oct-13  11:19 AM    <DIR>          Config.Msi
16-Nov-16  04:50 PM    <DIR>          Mallesh
04-Aug-15  03:49 PM    <DIR>          System Volume Information
               0 File(s)              0 bytes

 Directory of D:\$AV_ASW

17-Mar-17  12:39 PM    <DIR>          .
17-Mar-17  12:39 PM    <DIR>          ..
               0 File(s)              0 bytes

 Directory of D:\$RECYCLE.BIN

11-Jan-16  09:13 AM    <DIR>          .
11-Jan-16  09:13 AM    <DIR>          ..
02-Aug-15  10:37 PM    <DIR>          S-1-5-18
04-Mar-14  11:42 AM    <DIR>          S-1-5-21-1271761849-3208388806-459017772-1002
21-Apr-14  11:11 AM    <DIR>          S-1-5-21-1271761849-3208388806-459017772-1004
25-Apr-14  11:56 AM    <DIR>          S-1-5-21-1271761849-3208388806-459017772-1007
25-Apr-14  12:42 PM    <DIR>          S-1-5-21-1271761849-3208388806-459017772-1009
29-Jul-15  09:06 PM    <DIR>          S-1-5-21-1271761849-3208388806-459017772-1010

03-Mar-14  09:52 PM    <DIR>          S-1-5-21-1306446933-1447640019-3105811
etc



3)commnad                                     attrib +s +h
This command used hide your folder as system file even the user check for hidden files their can't get the files which is assoicated with this command
example:
D:\>dir
 Volume in drive D is Softwares
 Volume Serial Number is F8B3-F211

 Directory of D:\

08-Jul-16  09:39 PM    <DIR>          Bluetooth
06-Jan-15  10:59 PM    <DIR>          DC

here u can see the DC folder when we use the attrib command it never shows on dir command
D:\>attrib +s +h Dc
D:\>dir
 Volume in drive D is Softwares
 Volume Serial Number is F8B3-F211

 Directory of D:\

08-Jul-16  09:39 PM    <DIR>          Bluetooth
this is it
u want to roll back(take back ur folder) use this command
D:\>attrib -s -h Dc

D:\>
thats it your folder now visible to every one
4)command                                              xcopy /e
this command is used to copy files with their folders including sub folders 
exmaple:
D:\>xcopy /e dc e:\dc
Does E:\dc specify a file name
or directory name on the target
(F = file, D = directory)? d
dc\1 001.jpg
dc\BS.class
dc\BS.java
dc\Bser.class

4 File(s) copied
their is no need to create a new folder in destination u can specify at command as i done

D:\>
5) command                                     help
this command is used to  get information  about commnad u want to know
example:
D:\>help mkdir
Creates a directory.

MKDIR [drive:]path
MD [drive:]path

If Command Extensions are enabled MKDIR changes as follows:

MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:

    mkdir \a\b\c\d

is the same as:

    mkdir \a
    chdir \a
    mkdir b
    chdir b
    mkdir c
    chdir c
    mkdir d            


2 comments: