ITSC 1405 – (Ch. 5-8) PC Operating Systems Exam #2 Study Notes

advertisement
ITSC 1405 – (Ch. 5-8)
PC Operating Systems
More DOS Commands:


COPY vs. XCOPY vs. DISKCOPY
DIR /X (LFN’s & 8.3)
(Commands with aliases)





CD
MD
RD
REN
DEL




MOVE vs. COPY -- MOVE vs. REN
DIR \filename.ext /S (search cmd)
DEL /S and DEL /P
MOVE vs. COPY vs. XCOPY /K
CHDIR
MKDIR
RMDIR
RENAME
ERASE
(results and attributes)



RENAME a directory (2 ways)
REN using wildcards ( * ? )
REN –do not specify drive or directory
for the target filename


COPY [/V] [/Y] [/-Y] [/B] [/A]
TREE [/F] [/A] -- TREE vs. DIR

ATTRIB [+ | -] [SHAR] [/S [/D]]
 Attributes: (S H A R D)
 ATTRIB [+ | -] vs. DIR /AX
 ATTRIB –S vs. /S
 ATTRIB with…
XCOPY /S /E /M /I
“poor mans disk backup?”




XCOPY /S /E (empty) vs. /T (tree)
/A (attrib) vs /M (mark) vs /K (keep)
/L (list) vs. /F (full filenames)
XCOPY /O (ownership) vs. /X (audit)
XCOPY /U (update)
XCOPY /W vs. /P, /V, /Q, or /F
XCOPY [/R] [/Y] [/H] [/V]
CHKDSK [/F] vs. DEFRAG [/A] [/V]
DISKPART vs. FORMAT
SUBST
ITSC 1405 – Exam #2 Study Notes
-Prof Michael P. Harris
Exam #2 Study Notes
Topics:








Program vs. Data files
Meaningful Filenames
Naming Convention
10 characters NOT to use in
filenames “ / \ : | < > * ? +
Wildcards * and ?
.* vs. *.
Source vs. Target filespecs
Using DIR
to “pretest” commands
Absolute vs. Relative path
Default-Drive and its use
Default-Directory and its use
Why use a leading \ (or not)






COPY with + (concatenation)
Un-deleting a file ???
Uses for the /S parameter
Use of . and ..
Root Directory files…
“Read only” files



“Virtual” Drives (SUBST)
FAT, FAT32, NTFS
Allocation Units, (clusters)

Redirect ‘>’ to PRN
COPY to PRN (or LPT1)
[Print Screen] key
[PRT SCN]
\\cismaster\VB179-P1










DOSKEY (TSR)
command history & macros
Incremental Backup
Full Backup
Disk Organization
Page 1 of 2
Examples:

DIR \always.mp3 /s – finds (searches for) files by looking first in the
root directory, and then searching all subdirectories

DIR /AH \ – shows system and Hidden files in root directory

RD /S /Q *.* - will removed everything except system and hidden files

CD ..

CD /D F:\Homework – changes Drive and directory at the same time

MD \A\B\C\D – creates a directory tree

SUBST B: F:\Data – creates virtual drive B: which is physically F:\Data

SUBST H: F:\Homework - creates virtual drive H: which is physically F:\Homework

SUBST B: /D – Deletes virtual drive B:

SUBST H: /D - Deletes virtual drive H:

ATTRIB +R /D

ATTRIB +A *.* /S – turns on the archive bits for all files in all subdirectories

XCOPY *.* D: /SEMI
– takes you to your current parent directory
– makes Directories Read-only too
(or /SHREK)
 *.* D: -copy all files to the D: drive
 /SEMI
– /S
- /E
- /M
- /I
copies all files in all subdirectories,
including all empty directories,
copies only files with the archive bit set on and then turns it off
assume the destination is a directory (not a file)
 /SHREK
- /S copy all files in all Subdirectories
- /H copy Hidden files
- /R overwrite Read-only files
- /E copy Empty files too
- /K Keep all existing attributes
ITSC 1405 – Exam #2 Study Notes
Page 2 of 2
Download