You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
attrib Alter the file attributes. The '+' adds an attribute, and '-' removes it. Attributes are: a=archive; r=read only; s=system; h=hidden.
attrib -r -a -s -Hh index.html All previously mentioned attributes will be cleared from index.html
C: Shortcut to the C: drive. Can substitue 'C' for other drive letters.
C:
cd Navigate into a directory.
Note that a directory is also referred to as a folder.
Just typing cd\ by itself goes to the base (root) of the file system and is usually the C: drive.
cd.. navigates up one level. Say you are in the 'foo' directory and want to get out of this directory. This would get out of 'foo'
cd <directory name> navigates to that directory. You can provide a path of directories \ e.g.
cd Users\myself\Documents\git\mycode takes you to C:\Users\myself\Documents\git\mycode
cls Clear (reset) the screen.
cls
del Delete one or more files in the current working directory. Can be used with the '*' and the '?' wildcards.
del *.* will delete every file in the current directory.
(Note: del alone cannot be used to delete other directories. Use rd to remove a directory.)
del index.html deletes index.html
del *.html will delete all HTML files at your current location.
del foo*.* will delete all files beginning with 'foo' that are any type.
del foo??.* will delete files that are 5 characters long and begin with 'foo' that are any type.
dir List (reveal) contents of a directory (folder).
dir *.html displays all HTML files in the current and subdirectories.
dir /s lists the contents of all subdirectories.
dir /ah displays all hidden files.
help Displays DOS help info. For info on an individual command simply type help followed by the command.
help md displays information on the cls (make directory) command.
md Generate (make) directory. Creates a new directory at your current location. May also substitute with mkdir
md boo create 'boo' directory.
rd Delete a directory. Note that the directory you want to remove not have any files. The command rmdir may be used instead of rd
rd boo deletes the 'boo' directory
renameRenames a file.
rename foo.html zoo.html
type Pipe (display) the contents of a file to terminal. If the file doesn't contain text (e.g. image) gibberish (binary encodings) will be displayed. If you pipe this command to more with "|more" then the text will be displayed one page at a time.
type site\index.html|more displays index.html one page at a time.
Module 1 Guidelines
Coming Soon
Module 2 Guidelines
Coming Soon
Module 3 Guidelines
Coming Soon
Module 4 Guidelines
Coming Soon
About
Example code for HTML, CSS, and Javascript for Web Developers Coursera Course