W INDOWS C OMMANDS. References: Windows Command Line Interface, Prof. Yitzchak Rosenthal 2.

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

DOS & Windows O/s Prof. Sujata Rao Less 5.
Macintosh OS X. What is an operating system? O Like cars, computers have operating systems (sometimes abbreviated OS). O A computer operating system is.
QWERTY Keyboards.
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
Introduction to Windows File Management
MCT260-Operating Systems I Operating Systems I Navigating the File System.
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
The sequence of folders to a file or folder is called a(n) ________.
1 Windows Command Line Interface (AKA DOS commands) Prof. Yitzchak Rosenthal.
Command Console Tutorial BCIS 3680 Enterprise Programming.
FILES  A file is a collection of related information  Files are kept in directories on a disk.
Operating System Fundamentals
© 2010 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to Managing and Troubleshooting PCs Third Edition Working with.
© 2013 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to 802: Managing and Troubleshooting PCs Fourth Edition (Exam.
Laboratory Exercise # 3 – Basic File Management Office Productivity Tools 1 Laboratory Exercise # 3 Basic File Management Objectives: At the end of the.
Or CMD/BATCH.  Title this comand makes the cmd prompt’s title whatever you would like it to be.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 4 Disk Operating System (DOS) and the Command-Line Interface McGraw-Hill.
Course ILT Folder and file management Unit objectives Explore the contents of a hard disk and view file and folder attributes by using Windows Explorer.
PC Maintenance: Preparing for A+ Certification Chapter 29: Managing Files.
I Can… Define basic file management and related terms Identify levels of a file system Identify and explain ways to view files in Windows OS Explain the.
DOS Understanding what you can do. Operating System Traits An OS only works with one type of processor –X86 processors for us; Motorola for Mac –Must.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
Chapter Five Maintaining a Computer Part III: File and Folder Management.
DOS Commands What is a command Types of DOS Commands Basic Terms
Ch 61 Using DEL, REN, MOVE, and RD /S. Ch 62 Overview Will continue to work with internal commands that help manage and manipulate files.
Chapter 6: Managing Your Data The Windows XP File System File system task on DOS or UNIX Vs. Windows XP –cd or chdir would change your current directory.
The Command Line Interface. The OS files IO.sys MSDOS.sys Command.com IO and MSDOS are hidden files, COMMAND.COM shows in directory listings.
Understanding the Boot Process and Command Line
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
Gene Perkins, Lassen High School Networking Academy
MICROSOFT WORD GETTING STARTED WITH WORD. CONTENTS 1.STARTING THE PROGRAMSTARTING THE PROGRAM 2.BASIC TEXT EDITINGBASIC TEXT EDITING 3.SAVING A DOCUMENTSAVING.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
1 2 Lab 2: Organizing Your Work. 2 Competencies 3 After completing this lab, you will know how to: 1. Use Explorer to manage files. 2. Copy files. 3.
Office of Education Technology (OET) Active Directory Bulk Import Saturday March 11, 2006 /8:30 – 10:30 AM.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
File Management Presented to The Glades Computer Club January 4, 2001.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
XP New Perspectives on Windows 2000 Professional Windows 2000 Tutorial 2 1 Microsoft Windows 2000 Professional Tutorial 2 – Working With Files.
Basic MS-DOS. History MS-DOS 1.0 was released in August 1981, and was updated until April 1994 when it was replaced by Windows 95 All versions of windows.
1.  Microsoft DOS (Disk Operating System) use a command line user interface.command line  A command line user interface means that the user is required.
© 2010 Pearson Education, Inc. | Publishing as Prentice Hall1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Chapter 1: Starting with Microsoft.
1. Chapter 3 Aligning and Indenting Paragraphs 3 Paragraphs in Word A paragraph in Word is any amount of text followed by the press of the Enter key.
Learning Windows 7. History of Windows 1975–1981: Microsoft boots up The dawn of MS ‑ DOS. 1982–1985: Introducing Windows –1992: Windows 2.0–
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
Operating System Fundamentals 1. Components of an OS 2. Functions of an OS 3. Types of OS 4. Command-line tools.
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
Basic DOS How to get some work done. It’s all a file Everything is a file: OS files, Application files, Data files and Game files Files have 8.3 names:
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
The Command Line Yep, you need to know this. The Basics Start with the Prompt, what the computer tells you when ready for a command You type a command.
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Section 4 The Basics of Windows 7. Windows 7 Versions  Home Premium  Professional  Specialized.
Ahmadu Bello Computer Repair Training Course 6: Use of Software By Suprix Technology Nigeria ( A.B.U repair computer training.
IST 222 Day 6. DOS Naming Conventions A filename contains up to 8 characters, a separating period, and a file extension of up to three characters This.
MS-DOS is an acronym for MicroSoft Disk Operating System It is a CUI based operating system. It provides user with a command prompt (generally called.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Systems Administration (Windows) BIT3111 – Lecture 5 (Introduction to Windows OS)
Yep, you need to know this
Operating Microcomputer
New Perspectives on Windows XP
Operating System Fundamentals
Working with the Command- Line Interface
Command prompt OS Command Prompt (cmd.exe), the command-line interpreter on Windows operating systems + R Open the Run dialog box. Peymer Anatoly.
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
1.3 Given a scenario, apply appropriate Microsoft command line tools
Presentation transcript:

W INDOWS C OMMANDS

References: Windows Command Line Interface, Prof. Yitzchak Rosenthal 2

CLI AND DOS The Windows command line interface (CLI) commands are sometimes referred to as "DOS" commands. DOS was the name of the operating system that predated Windows (it stands for Disk Operating System). The only way to control DOS was to use these commands The commands in the modern Windows Command Line interface are very similar to the original DOS commands.

W HY SHOULD WE USE THE CLI (DOS COMMANDS ) ? Many windows users will never have a need for the DOS commands DOS commands are useful or required for many administrative or programming tasks For example, using DOS commands one can write programs to automate many administrative tasks.

T HE B ASICS Prompt: what the computer tells you when ready for a command (c:\>) You type a command and press ENTER when you want to send it to the computer Computer may come back with text about what it did (or didn’t do) and then will present the Prompt again. 5

A CCESSING THE C OMMAND L INE XP: Run dialog box; type CMD or COMMAND Vista/7: Search Dialog box; same command or start | All Programs | Accessories | Command Prompt or Right-click shortcut and select Run As Administrator for commands that affect Windows Win 8/8.1: Windows Button, CMD 6

F OCUS Command Line always focused on a drive and directory; prompt will show both C:\Windows\System32> has focus on C: drive and Windows\System32 folder Change focus – Type drive letter and colon, then ENTER – Type CD and directory name to drill down – Type CD.. To go up a level DOS will remember drive and directory 7

F ILENAMES Everything is a file to the computer Each file has a name: 8.3 format Windows allows 255 characters in file name Extension (should be) unique to application that created the file; changing the file extension does not change the file contents Windows uses file extension to determine: a) Program that created it and b) What icon to use for the file 8

ASCII American Standard Code for Information Interchange Each unique method of binary organization is called a file format ASCII defines 256 eight-bit characters First, universal, file format still used for configuration files 9

F OLDERS Also called directories Any file at the root of the directory tree is said to be in the Root Directory A folder within a folder is a sub-directory or subfolder Any folder can have many subfolders and files; names have to be unique unless in different folders 10

P ATH The route to a file; listing of drive and directory structure to get to the file: C:\Windows\System32\Notepad.exe This is the path to the file and its full name 11

C OMMAND. COM Shifts command to upper case Looks within command.com Looks within the current directory (focus) Looks in directories specified in the PATH Returns “Bad command or file name” /? Will bring up help on the command 12

O H N O ! DOS will do what you say, not what you mean so double-check spelling and syntax before the Enter key is pressed I wanted a directory listing, but I typed DEL instead of DIR 13

DIR Shows the contents of the current directory Can show another directory if you point it there: dir c:\windows Dir /w will give you a five-column display Dir /p will pause at each screenful of information 14

15 SPACES IN FILENAMES If any folder or filename in a path contains spaces, you must surround the entire path with quotes when using it in a DOS command. Example dir "c:\my folder\my file.txt"

CD Change directory CD will take you down to that directory CD.. Will take you up one directory level CD \ will take you to the root directory for the drive 16

M OVE BETWEEN DRIVES Type the drive name followed by a colon and then press enter A: will take you to the A: drive C: will take you to the C: drive Command will remember what directory you were in on each drive when you switch 17

MD MD to make a directory New directory is directly below current directory Automatically creates. (dot) and.. (double-dot) files. Dot is current directory; double-dot is parent directory (one up) Does not tell you anything if it worked 18

RD RD to remove (empty) directory (only. and.. Files remain Removes directory below current directory RD /s will remove files, subdirectories and directory 19

R UNNING A P ROGRAM Your computer can only run files with the extensions:.exe,.com or.bat You do not have to type the extension to run the file/program 20

ATTRIB Attrib displays the attributes (H,S,R,A) for a file Attrib + turns on the attribute Attrib - turns off the attribute 21

W ILDCARDS * (shift-8) replaces any number of characters ? Replaces just one character Can be used anywhere a file name is legal DIR a*.* will find any file that starts with “a” in the directory and has any extension 22

REN Renames a file name to a new name REN 23

DEL BE VERY CAREFUL WITH THIS COMMAND!!!! Deletes one or more (if you use wildcards) files; all gone, no going back Will not remove directories Actually, replaces the first character with Σ You don’t get a response 24

C OPY /M OVE Copy Copy d:\win98\*.* c:\win98\*.* will copy all files from the D: drive (optical drive) win98 directory to the C:\WIN98 directory – will not change file names There is no “undo” for copy/move gone wrong 25

XCOPY Allows copying of directories, files and subdirectories at one time Xcopy c:\data d:\data /s/e will copy everything in the c:\data directory to a d:\data directory including files and subdirectories (/s) even if empty (/e) 26 R OBOCOPY Robust copy command Allows you to copy files and directory structures across a network Found in Vista and 7

CHKDSK Command line version of Error Check Usually fails when you start it because it can not lock the drive; will run next time Windows restarts 27 F ORMAT We have a whole presentation on this Format c: /s will format c: drive and install system files (DOS)

Hostname Will give you the name of the computer SFC System File Checker SFC /scannow Will attempt to set computer disk to be the same as installation disk Shutdown 28

| MORE This is what you type followed by the ENTER key ` This is the prompt. It is printed by the computer To view a lot of output, instead of using the scroll bar, you can force the output of most commands to be displayed one screen at a time. Type the command followed by "| more" (without the quotes), for example: c:\> help | more The vertical bar symbol (also called a pipe symbol) is located on the keyboard above the backslash ( \ ) character.

30 OUTPUT OF " HELP | MORE " When you use "| more", the output from the command is displayed one screenfull at a time Below is the output of the command "help | more" Press the spacebar to see the next screenfull of output. Press the ENTER key to see the next line of output. To quit seeing the output type "q" (for quit) or Ctrl-C

31 U SING “| MORE ” WITH OTHER COMMANDS You can add “| more” (without the quotes) to the end of most commands to have the output of that command displayed one page at a time. E.g. dir | more type myfile.txt | more We will learn more about what the “|” means later.

32 C HANGING THE PROPERTIES OF THE COMMAND WINDOW Another way to see more information at once is to increase the height of the command window To do that, "left click" on the icon in the upper left hand corner of the window and choose "Properties"

INCREASE THE SIZE OF THE COMMAND WINDOW

C HANGING THE PROPERTIES OF THE COMMAND WINDOW Another way to see more information at once is to increase the height of the command window To do that, "left click" on the icon in the upper left hand corner of the window and choose "Properties"

35 I NCREASING THE HEIGHT OF THE COMMAND WINDOW choose the "Layout" tab. change the value of the "Height" field in the "Window Size" section this is the number of lines of output that is displayed in the command window. (the default value is 24) press the "OK" button

36 A PPLY THE CHANGES finally, you will see this dialog box If you choose "Apply properties to current window only" then the next time you start a command window the new window will be the original size If you choose "Modify shortcut that started this window" then then next time that you start a command window it will be the larger size.

37 RESULT - LARGER COMMAND WINDOW

38 I NCREASING THE HEIGHT OF THE COMMAND WINDOW choose the "Layout" tab. change the value of the "Height" field in the "Window Size" section this is the number of lines of output that is displayed in the command window. (the default value is 24) press the "OK" button

39 A PPLY THE CHANGES finally, you will see this dialog box If you choose "Apply properties to current window only" then the next time you start a command window the new window will be the original size If you choose "Modify shortcut that started this window" then then next time that you start a command window it will be the larger size. Make a choice (either is fine) and press the "OK" button.

40 RESULT - LARGER COMMAND WINDOW

Windows Command-Line File and Folder Management Tools ToolDescription ATTRIBDisplays, applies, or removes attributes for the specified file or folder. CDChanges to the specified folder. COMPCompares the contents of two specified files byte by byte. COMPACTDisplays or modifies the compression settings for the specified file or folder (which must be located on an NTFS partition). COPYCreates a copy of the specified file or folder in another location. DELDeletes the specified file or folder. DIRDisplays a directory listing for the current folder or for the specified file or folder. FCCompares the content of two specified files. FINDSearches for and displays all the instances of a specified string in a file. FINDSTRUses a regular expression to search for and display all the instances of a specified string in a file. MKDIRCreates the specified folder. MOVEMoves the specified file or folder to another location. RENChanges the name of the specified file or folder. REPLACEReplaces files in the destination folder with files in the source folder that have the same name. RMDIRDeletes the specified folder. SORTSorts the specified file and then displays the results. SFCRuns the System File Checker, which scans and verifies the protected Windows 7 files. TAKEOWNEnables an administrator to take ownership of the specified file. TREEDisplays a graphical tree diagram showing the subfolder hierarchy of the current folder or the specified folder. WHERESearches for and displays all the files that match a specified pattern in the current folder and in the PATH folders. XCOPYCreates a copy of the specified file or folder in another location. This tool offers many more options than the COPY command. 41