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.

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.
A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Chapter 3 Understanding the Boot Process and Command Line.
Disk Operating System (DOS)
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.
A+ Guide to Software, 4e Chapter 4 Supporting Windows 2000/XP Users and Their Data.
Working in DOS DOS is a true operating system
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
Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000.
© 2010 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to Managing and Troubleshooting PCs Third Edition Working with.
W INDOWS C OMMANDS. References: Windows Command Line Interface, Prof. Yitzchak Rosenthal 2.
© 2013 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to 802: Managing and Troubleshooting PCs Fourth Edition (Exam.
Chapter 8 Managing Files.
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.
Technology ICT Core: File Management.
Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.
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.
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.
INTRODUCTION TO OPERATING SYSTEMS. An operating system is a program that controls the overall activity of a computer. Like an orchestra conductor an operating.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
1 DOS 2 Directory structure of disks Directory structure of disks Full Path or Full file specification Full Path or Full file specification Creating directories.
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.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
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.
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 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.
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.
Computing Fundamentals Module Lesson 10 — File Management with Windows Explorer Computer Literacy BASICS.
Common DOS Commands Additional information. Important DOS Concepts Common DOS Commands  Why format a disk?  Partitioning and Formatting disks  Structure.
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.
DISK OPERATING System MS-DOS. MS-DOS Microsoft Disk Operating System (MS-DOS) is a single user, single tasking operating system. DOS is a command-line,
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.
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:
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
FIRST COURSE Managing Your Files. XP Objectives Develop file management strategies Explore files and folders Create, name, copy, move, and delete folders.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Operating System. What is Operating System OS is system software, which may be viewed as collection of software consisting of procedures for operating.
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.
Systems Administration (Windows) BIT3111 – Lecture 5 (Introduction to Windows OS)
Yep, you need to know this
Chapter 6 Windows 9x/Me Commands and Startup Disk
Operating Microcomputer
Working with the Command-Line Interface
Working with the Command-Line Interfaced
Operating System Fundamentals
Working with the Command- Line Interface
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
1.3 Given a scenario, apply appropriate Microsoft command line tools
Command Prompt Using DEL, DELTREE, RENAME and MOVE
Presentation transcript:

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 and press ENTER when you want to send it to the computer Computer may come back with text about what it did (or did not do) and then will present the Prompt once more

Accessing the Command Line XP: Run dialog box; type CMD or COMMAND Vista/7: Search Dialog box; same command Right-click shortcut and select Run As Administrator for commands that affect Windows

Focus 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

Filenames 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

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

Folders 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

Path 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

Command.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

Oh No! 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

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

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

Move 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

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

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

Running a Program 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

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

Wildcards * (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

REN Renames a file name to a new name REN

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

Copy/Move 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

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)

Robocopy 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

Format 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; I think it eats Service Packs

Shutdown Guess what it does