{"id":110495,"date":"2021-02-25T12:41:16","date_gmt":"2021-02-25T07:11:16","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?page_id=110495"},"modified":"2024-04-12T14:31:05","modified_gmt":"2024-04-12T09:01:05","slug":"using-commands-2","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/","title":{"rendered":"Using Commands"},"content":{"rendered":"\n<p>Commands are given in CUI and Windows XP being a GUI operating system does support MS-DOS command interface also called as command line or CUI of MS-DOS. Command line utilities helps to better manage a computer in an efficient and effective manner. Command line is started by executing \u2018CMD\u2019 in run option of start menu which is a 32-bit command processor or command line is started by 16-bit command.com. After running the \u2018cmd\u2019 command, the command processor or also called as command interpreter starts. Commands are classified as per their use and the commands are<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Directory Management &#8211; DIR, MD or MKDIR, RD, CD, DELTREE &amp; PAT<\/li>\n\n\n\n<li>File Management &#8211; COPY, XCOPY, DEL, TYPE, REN, MOVE &amp; ATTRIB<\/li>\n\n\n\n<li>Disk Management &#8211; FORMAT, CHKDSK, LABEL, DEFRAG, DISKPART &amp; VOL<\/li>\n\n\n\n<li>DOS utility &#8211; CLS, MORE &amp; SCANDISK<\/li>\n\n\n\n<li>Network utility &#8211; IPCONFIG &amp; PING<\/li>\n\n\n\n<li>System utility \u2013 SFC, FIXBOOT &amp; FIXMBR<\/li>\n<\/ul>\n\n\n\n<p><strong>DIR<\/strong>&nbsp; &#8211; This command lists the files and the sub directories in a directory except the hidden system files such as MSDOS.SYS and IO.SYS, even if present, its usage is<\/p>\n\n\n\n<p>DIR [drive:][path][filename] [\/P] [\/W][:]&nbsp; [\/O[[:]sort order]] [\/S]&nbsp; or DIR [C:][filename.[ext]\n\n\n\n<p>Where,<\/p>\n\n\n\n[drive:][path][filename] &#8211; Specifies drive, directory, and\/or files to list.<\/p>\n\n\n\n<p>\/P&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp; This command lists the directory page wise and pauses after each screen of information.<\/p>\n\n\n\n<p>\/W&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp; This command lists the directory width wise and Uses wide list format.<\/p>\n\n\n\n<p>\/O&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp;&nbsp; List by files in sorted order and the sort order is given as<\/p>\n\n\n\n<p>N&nbsp; By name (alphabetic)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp; By size (smallest first)<\/p>\n\n\n\n<p>E&nbsp; By extension (alphabetic)&nbsp; D&nbsp; By date &amp; time (earliest first)<\/p>\n\n\n\n<p>\/S&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp;&nbsp; Displays files in specified directory and all subdirectories.<\/p>\n\n\n\n<p>For each file its size and date and time of modify is shown. If more data than one screen, \/p and \/w can be combined as<\/p>\n\n\n\n<p>DIR [C:][filename.[ext][\/p][\/w]\n\n\n\n<p>Global characters: \u2018?\u2019 and \u2018*\u2019are known as <strong>wildcard characters <\/strong>and are used in file name and extension parameters. A \u2018?\u2019means zero or one character and \u2018*\u2019 for any number of characters for eg. to display files having extension .BAK of drive C type<\/p>\n\n\n\n<p>C:&gt;DIR *.BAK<\/p>\n\n\n\n<p><strong>MD or MKDIR<\/strong> &#8211; It creates a directory in the specified location. Its usage is<\/p>\n\n\n\n<p>MKDIR [C:] path Or MD [C:] path \u2013OR- MKDIR [drive:]path \u2013OR-&nbsp; MD [drive:]path<\/p>\n\n\n\n<p>If we omit the drive letter, current drive is assumed. Path is path of creation of directory. All characters, that are valid for file name, are valid for a directory name. For e.g.<\/p>\n\n\n\n<p>C:&gt;MD WS<\/p>\n\n\n\n<p>Will create a subdirectory namely WS under the root directory of drive C. the following command creates the subdirectory PRG under the subdirectory WS.<\/p>\n\n\n\n<p>C:&gt;MD WS\\PRG<\/p>\n\n\n\n<p>We can create as many subdirectories, limited by disk space. But maximum length of path from root to desired level is no more than 63 characters, including embedded backslashes. Two or more files or directory can have the same name as long as they are defined in separate directories.<\/p>\n\n\n\n<p><strong>RMDIR or RD<\/strong> &#8211; It removes directory from the specified path. Its usage is<\/p>\n\n\n\n<p>RMDIR [C: [[path] \u2013OR- RD [drive:]path<\/p>\n\n\n\n<p>Directory to remove must be empty i.e. no files or sub-directory. The root directory, the working directory can\u2019t be removed. Suppose we want to remove a directory named C:\\DOS\\TEMP, first ensure that the directory is empty and then type the following command.<\/p>\n\n\n\n<p>RD C:\\DOS\\TEMP<\/p>\n\n\n\n<p><strong>CHDIR or CD<\/strong> \u2013 It changes the current directory. Its syntax is<\/p>\n\n\n\n<p>CHDIR [C:] [path] \u2013OR- CD [C:] [path]\n\n\n\n<p>To go to root directory of the drive.<\/p>\n\n\n\n<p>C:&gt;CD\\<\/p>\n\n\n\n<p>To go to parent directory<\/p>\n\n\n\n<p>C:&gt;CD..<\/p>\n\n\n\n<p>If our working directory is C:\\DOS\\BASIC and we want to change our path to another directory such as C:\\DOS\\PCTOOLS type the following command and press enter<\/p>\n\n\n\n<p>C:\\DOS\\BASIC&gt;CD ..\\PCTOOLS<\/p>\n\n\n\n<p>\u2018.\u2019 Points to present directory and \u2018..\u2019 refers to parent directory.<\/p>\n\n\n\n<p><strong>DELTREE<\/strong> &#8211; It deletes a directory and all the subdirectories and files in it. Its syntax is<\/p>\n\n\n\n<p>DELTREE [\/Y] [drive:]path<\/p>\n\n\n\n<p>Where,<\/p>\n\n\n\n<p>\/Y&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Suppresses prompting to confirm we want to delete the subdirectory.<\/p>\n\n\n\n[drive:]path&nbsp;&nbsp;&nbsp; Specifies the name of the directory we want to delete.<\/p>\n\n\n\n<p>DELTREE deletes every file and subdirectory within the specified directory.<\/p>\n\n\n\n<p><strong>PATH<\/strong> &#8211; It stores list of directories separated by semicolons where program or executable files are present. Its syntax is<\/p>\n\n\n\n<p>PATH&nbsp; [C:] [drive][path] [:drive] [path]\u2026]&nbsp; or&nbsp;&nbsp; PATH<\/p>\n\n\n\n<p>OS searches specified directories in the sequence we entered them. To display current path, type only PATH. To specify specific new list of directories to search, type<\/p>\n\n\n\n<p>C:&gt;PATH C:\\DOS<\/p>\n\n\n\n<p><strong>COPY<\/strong> &#8211; Copies one or more files to another location, its usage is<\/p>\n\n\n\n<p>COPY source&nbsp; [+ source&nbsp; [+&#8230;]] [destination]\n\n\n\n<p>Where,<\/p>\n\n\n\n<p>Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&nbsp; Specifies the file or files to be copied.<\/p>\n\n\n\n<p>Destination &#8211;&nbsp; Specifies the directory and\/or filename for the new file(s).<\/p>\n\n\n\n<p>For e.g.<\/p>\n\n\n\n<p>COPY ABC.IMP B:<\/p>\n\n\n\n<p>If the original file is on the default drive and we don\u2019t specify the second pathname, the copy command is not performed and MS-DOS displays the following message:<\/p>\n\n\n\n<p>File cannot be copied onto itself: 0 file(s) copied.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the second option is a filename only, MS-DOS copies the original file to one on the default drive and renames it with the specified filename. E.g.<\/li>\n<\/ul>\n\n\n\n<p>C&gt;COPY VIP.IMP VVV.IMP<\/p>\n\n\n\n<p>We can use the global characters? And * in the file name and in the extension of both the sources and the target files. E.g.<\/p>\n\n\n\n<p>A&gt;COPY *.* B:<\/p>\n\n\n\n<p>Copies all type of files in the current directory from the default drive A to B.<\/p>\n\n\n\n<p><strong>XCOPY<\/strong> &#8211; This command copies files and directory trees to another location. Its syntax is<\/p>\n\n\n\n<p>XCOPY source [destination] [\/P] [\/S [\/E]] [\/W]\n\n\n\n<p>Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specifies the file(s) to copy.<\/p>\n\n\n\n<p>Destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specifies the location and\/or name of new files.<\/p>\n\n\n\n<p>\/P&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prompts us before creating each destination file.<\/p>\n\n\n\n<p>\/S&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copies directories and subdirectories except empty ones.<\/p>\n\n\n\n<p>\/E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copies directories and subdirectories, including empty ones.<\/p>\n\n\n\n<p>\/W&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prompts us to press a key before copying.<\/p>\n\n\n\n<p><strong>DEL<\/strong><strong> (DELETE)<\/strong> &#8211; It deletes the files specified by the drive and path name. Its syntax is<\/p>\n\n\n\n<p>DEL [drive:][path] filename [\/P] \u2013OR-&nbsp; ERASE [drive:][path]filename [\/P]\n\n\n\n[drive:][path]filename&nbsp;&nbsp; &#8211; Specifies the file(s) to delete.&nbsp; Specify multiple files by using wildcards.<\/p>\n\n\n\n<p>\/P&nbsp; &#8211; &nbsp;&nbsp;&nbsp;&nbsp; Prompts for confirmation before deleting each file. A message \u201cAre we sure (Y\/N)?\u201d is displayed to verify that we actually want to delete the file. Type Y (Yes) if we want to delete otherwise type N (No).<\/p>\n\n\n\n<p>If we do not specify the drive name the current working drive is assumed i.e. the files will be deleted from the current working directory.<\/p>\n\n\n\n<p>A&gt; del C:\\temp<\/p>\n\n\n\n<p>We can\u2019t delete files that are marked as read only. Don\u2019t use DEL command to delete a sub-directory. We can use the global filename characters&nbsp; \u2018?\u2019 and \u2018*\u2019 in the filename and extension e.g.<\/p>\n\n\n\n<p>B&gt; DEL *.BAK<\/p>\n\n\n\n<p>TYPE<\/p>\n\n\n\n<p>It displays contents of a file. Its syntax is<\/p>\n\n\n\n<p>type [filename]\n\n\n\n<p><strong>REN (RENAME)<\/strong> &#8211; Renames a file\/directory or files\/directories, its usage is<\/p>\n\n\n\n<p>RENAME [drive:][path][directoryname1 | filename1] [directoryname2 | filename2]\n\n\n\n<p>Note that we cannot specify a new drive or path for our destination.<\/p>\n\n\n\n<p>A&gt;REN B: MAIN.PRG TIME.PRG<\/p>\n\n\n\n<p>Renames the file MAIN.PRG on drive B to TIME.PRG<\/p>\n\n\n\n<p><strong>MOVE<\/strong> &#8211; This command is utilized for moving files and renames files and directories.<\/p>\n\n\n\n<p>To move one or more files<\/p>\n\n\n\n<p>MOVE [\/Y | \/-Y] [drive:][path]filename1[,&#8230;] destination<\/p>\n\n\n\n<p>To rename a directory<\/p>\n\n\n\n<p>MOVE [drive:][path]dirname1 dirname2<\/p>\n\n\n\n[drive:][path]filename1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specifies the location and name of the file or files we want to move.<\/p>\n\n\n\n<p>Destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specifies the new location of the file. Destination<\/p>\n\n\n\n[drive:][path]dirname1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specifies the directory we want to rename.<\/p>\n\n\n\n<p>dirname2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specifies the new name of the directory.<\/p>\n\n\n\n<p><strong>ATTRIB<\/strong> &#8211; This command can display or change file attributes. Each file has got some attributes, according to which commands are applicable to it. For example a file having enabled hidden attribute cannot be<\/p>\n\n\n\n<p>seen with DIR command. Its syntax is<\/p>\n\n\n\n<p>ATTRIB [+R | -R] [+S | -S] [+H | -H] [[drive:][path]filename]\n\n\n\n<p>Where,<\/p>\n\n\n\n<p>+&nbsp;&nbsp; Sets an attribute,&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp; Clears an attribute,&nbsp; &nbsp;&nbsp;R&nbsp;&nbsp; Read-only file attribute,&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp; System file attribute, &nbsp;&nbsp;H&nbsp;&nbsp; Hidden file attribute.<\/p>\n\n\n\n<p><strong>FORMAT<\/strong> &#8211; This command formats the disk to the specified disk. Formatting analyses the entire disk for any defective tracks; and prepare the disk accept MS DOS files by initializing the directory, File Allocation Table, and system loader. We must use this command to format all new disks before MS can use them. Be careful before formatting any disk, particularly a fixed disk because formatting destroys all data on the disk. Its usage is<\/p>\n\n\n\n<p>FORMAT drive: [\/V[:label]] [\/Q] [\/4] [ \/S]\n\n\n\n<p>\/4&nbsp;&nbsp; &#8211; Format a single sided or double-sided diskette in a high capacity disk drive. (1.2MB)<\/p>\n\n\n\n<p>\/Q&nbsp; &#8211; Performs a quick format.<\/p>\n\n\n\n<p>\/S&nbsp; &#8211;&nbsp; To copy the operating system files MSDOS.SYS, IO.SYS, COMMAND .COM<\/p>\n\n\n\n<p>The first two files are hidden files, so we can\u2019t see these two files in a directory of formatted disks. If the operating system is not on the default drive, format prompts to insert a system disk in the default drive or in drive A. If the default drive is non-removable, a message system transferred is displayed if the operating system files are successively copied onto the disks we are formatting. \/V prompts for a volume label after the disks is formatted as<\/p>\n\n\n\n<p>Enter volume label (11 characters, enter for none)?<\/p>\n\n\n\n<p>A volume label identifies and can be up to 11 characters in length. The volume label cannot be used in place of file names as input to any of the DOS commands.<\/p>\n\n\n\n<p><strong>CHKDSK<\/strong> &#8211; The CHKDSK command checks a disk\u2019s formatted size and available memory space. It also indicates the amount of disk space consumed by system files, data files, and bad sectors. DOS 5 also reports the volume serial number and information about the disks allocation units (clusters).<\/p>\n\n\n\n[C: Path] CHKDSK [File Spec][\/F]\n\n\n\n<p>C: Path is the drive and path where the command file is located if it is not in the current directory or in a directory on the search path.<\/p>\n\n\n\n<p>File Spec is an optional drive and path, including the filename and extension, of the file that is the object of the command. Wild cards are allowed.<\/p>\n\n\n\n<p>\/F allows us to make actual corrections on the disk.<\/p>\n\n\n\n<p><strong>LABEL<\/strong> &#8211; It creates, changes or deletes the volume identification label on a disk. Its syntax is<\/p>\n\n\n\n[C:] [path] LABEL [C:] [volume label]\n\n\n\n<p>To create a volume label type the following command<\/p>\n\n\n\n<p>LABEL b: PURCHASE 89&nbsp;&nbsp; or we can type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL B:<\/p>\n\n\n\n<p>Then we are prompted<\/p>\n\n\n\n<p>Volume in drive B has no label<\/p>\n\n\n\n<p>Volume Label (11 characters, Enter, for none)?<\/p>\n\n\n\n<p>Type PURCHASE 89 and press enter.<\/p>\n\n\n\n<p>DEFRAG<\/p>\n\n\n\n<p>Defragments a disk drive. Its options are<\/p>\n\n\n\n<p>-A \u2013 Analyses the fragmentation of a disk drive<\/p>\n\n\n\n<p>-F \u2013 Force defragmentation even if disk space is low<\/p>\n\n\n\n<p>-V \u2013 Verbose output mode<\/p>\n\n\n\n<p>-H \u2013 Defrag hidden files<\/p>\n\n\n\n<p>Example of usage:<\/p>\n\n\n\n<p>defrag drive letter: -a \u2013v<\/p>\n\n\n\n<p><strong>DISKPART<\/strong> &#8211;&nbsp; It is a command-line hard disk partitioning utility, replacing fdisk which was used in MS-DOS based operating systems. The diskpart command supports the use of scripts to automate its usage. For example, the following text file could be supplied to diskpart to create a new partition:<\/p>\n\n\n\n<p>create partition logical size=2048<\/p>\n\n\n\n<p>assign letter=F<\/p>\n\n\n\n<p>This will create a 2 GB logical partition at the beginning of the free space on the disk and assign it the drive letter F:, provided that space requirements are met.<\/p>\n\n\n\n<p><strong>VOL<\/strong> &#8211; This command displays the disk volume label or volume ID of the specific drive, if it exists. Its syntax is<\/p>\n\n\n\n<p>VOL [drive:]\n\n\n\n<p>If we don\u2019t specify a drive letter, MS-DOS displays the volume label or the disk in the default drive. To display the volume label of drive C<\/p>\n\n\n\n<p>C&gt;VOL C:<\/p>\n\n\n\n<p>Volume in drive C has no label Volume serial number is 1106-16DF<\/p>\n\n\n\n<p><strong>CLS<\/strong>&nbsp; &#8211; This command clears the terminal screen. Its syntax is CLS<\/p>\n\n\n\n<p><strong>MORE<\/strong> &nbsp;&#8211; This command reads data from the standard input device, sends one screen of data to the standard input device, sends one screen of data to the standard output device and then pauses with the message<\/p>\n\n\n\n<p>&#8212;MORE&#8212;<\/p>\n\n\n\n<p>Its usage is<\/p>\n\n\n\n[C:] [path] MORE<\/p>\n\n\n\n[C:] [path] before MORE specifies the drive specifies and path contains the MORE command file. The MORE command will not work if the disk is full or write protected because to hold input information until it is displayed, the MORE command creates a temporary file on the disk. This command is useful for viewing long files, e.g. the following command displays the contents of the LONG.COB on the screen at a time.<\/p>\n\n\n\n<p>TYPE ONG.COB|MORE<\/p>\n\n\n\n<p>If screen is full, the message \u201c&#8212;MORE&#8212; Press any key to see the next screen\u201d appears.<\/p>\n\n\n\n<p><strong>SCANDISK<\/strong> &#8211; It checks and repairs file systems and bad clusters on the hard drive. It was introduced in MS-DOS 6.2. It includes a more user-friendly interface than MS-DOS CHKDSK, more command-line and other configuration options, and the ability to detect and sometimes recover from physical errors on the disk.<\/p>\n\n\n\n<p><strong>IPCONFIG<\/strong> &#8211; It is an acronym for internet protocol configuration and it displays all current TCP\/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings. Its syntax is<\/p>\n\n\n\n<p>ipconfig [\/? | \/all | \/renew [adapter] | \/release [adapter] |\/flushdns | \/displaydns |<\/p>\n\n\n\n<p>\/registerdns | \/showclassid adapter |\/setclassid adapter [classid] ]\n\n\n\n<p>where,<\/p>\n\n\n\n<p>adapter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Connection name<\/p>\n\n\n\n<p>\/?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Display help message<\/p>\n\n\n\n<p>\/all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Display full configuration information.<\/p>\n\n\n\n<p>\/release&nbsp;&nbsp;&nbsp;&nbsp; Releases the IP address for the specified adapter.<\/p>\n\n\n\n<p>\/renew&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Renews the IP address for the specified adapter.<\/p>\n\n\n\n<p>\/flushdns&nbsp;&nbsp;&nbsp; Purges the DNS Resolver cache.<\/p>\n\n\n\n<p>\/registerdns Refreshes all DHCP leases and re-registers DNS names<\/p>\n\n\n\n<p>\/displaydns&nbsp; Display the contents of the DNS Resolver Cache.<\/p>\n\n\n\n<p><strong>PING<\/strong> &#8211; It tests the reachability of a host on an Internet Protocol (IP) network and to measure the round-trip time for messages sent from the originating host to a destination computer. It sends Internet Control Message Protocol (ICMP) echo request packets to target and wait for response. Usage<\/p>\n\n\n\n<p>ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]\n\n\n\n<p>where,<\/p>\n\n\n\n<p>-t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ping the specified host until stopped.<\/p>\n\n\n\n<p>-a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Resolve addresses to hostnames.<\/p>\n\n\n\n<p>-n count&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Number of echo requests to send.<\/p>\n\n\n\n<p>-l size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Send buffer size.<\/p>\n\n\n\n<p>-f&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set Don&#8217;t Fragment flag in packet (IPv4-only).<\/p>\n\n\n\n<p>-i TTL&nbsp;&nbsp;&nbsp;&nbsp; Time To Live.<\/p>\n\n\n\n<p>-v TOS&nbsp;&nbsp;&nbsp; Type Of Service (IPv4-only).<\/p>\n\n\n\n<p>For example ping \u2013t <a href=\"http:\/\/www.google.com\/\">www.google.com<\/a> or ping 192.168.1.100<\/p>\n\n\n\n<p><strong>SFC<\/strong> &#8211; System File Checker (SFC) is a utility to check protected system files. It replaces incorrect versions or missing files with the correct files. To run it, type SFC with the appropriate switch at command prompt. \u2018\/scannow\u2019 option scans all protected files immediately and \u2018\/scanonce\u2019 scans all protected files at the next boot. If some files are missing, prompt to put original OS disc is given, so the files can be copied.<\/p>\n\n\n\n<p><strong>FIXMBR <\/strong>\u2014It repairs MBR of system partition; if MBR is damaged and windows cannot start.<\/p>\n\n\n\n<p><strong>FIXBOOT<\/strong> \u2014It writes new windows boot sector code to system partition.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Apply for IT Support Certification<\/strong><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/certified-it-support-professional\">https:\/\/www.vskills.in\/certification\/certified-it-support-professional<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/certified-it-support-professional\/\" target=\"_blank\" rel=\"noreferrer noopener\">Back to Tutorials<\/a><\/strong><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Commands are given in CUI and Windows XP being a GUI operating system does support MS-DOS command interface also called as command line or CUI of MS-DOS. Command line utilities helps to better manage a computer in an efficient and effective manner. Command line is started by executing \u2018CMD\u2019 in run option of start menu&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[127],"tags":[],"class_list":["post-110495","page","type-page","status-publish","hentry","category-it-support-professional"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Commands - Tutorial<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Commands - Tutorial\" \/>\n<meta property=\"og:description\" content=\"Commands are given in CUI and Windows XP being a GUI operating system does support MS-DOS command interface also called as command line or CUI of MS-DOS. Command line utilities helps to better manage a computer in an efficient and effective manner. Command line is started by executing \u2018CMD\u2019 in run option of start menu...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T09:01:05+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/\",\"name\":\"Using Commands - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2021-02-25T07:11:16+00:00\",\"dateModified\":\"2024-04-12T09:01:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Commands\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Commands - Tutorial","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/","og_locale":"en_US","og_type":"article","og_title":"Using Commands - Tutorial","og_description":"Commands are given in CUI and Windows XP being a GUI operating system does support MS-DOS command interface also called as command line or CUI of MS-DOS. Command line utilities helps to better manage a computer in an efficient and effective manner. Command line is started by executing \u2018CMD\u2019 in run option of start menu...","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T09:01:05+00:00","twitter_misc":{"Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/","name":"Using Commands - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2021-02-25T07:11:16+00:00","dateModified":"2024-04-12T09:01:05+00:00","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/using-commands-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Using Commands"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/110495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=110495"}],"version-history":[{"count":3,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/110495\/revisions"}],"predecessor-version":[{"id":126245,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/110495\/revisions\/126245"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=110495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=110495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=110495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}