Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Windows Command Prompt Cheatsheet, Cheat Sheet of Interface between Computer Science and Economics

Cheat sheet on some Windows commands with fonction and usage

Typology: Cheat Sheet

2019/2020
On special offer
30 Points
Discount

Limited-time offer


Uploaded on 10/09/2020

ekanga
ekanga 🇺🇸

4.9

(16)

263 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Windows Command Prompt Cheatsheet
-Command line interface (as opposed to a GUI - graphical user interface)
-Used to execute programs
-Commands are small programs that do something useful
-There are many commands already included with Windows, but we will use a few.
-A filepath is where you are in the filesystem
C: is the C drive
C:\user\Documents is the Documents folder
C:\user\Documents\hello.c is a file in the Documents folder
Command
What it Does
Usage
dir
Displays a list of a folder’s files
and subfolders
dir (shows current folder)
dir myfolder
cd3
chdir
Displays the name of the current
directory or changes the current
folder.
cd filepath
chdir filepath
cd .. (goes one directory up)
md3
mkdir
Creates a folder (directory)
md folder-name
mkdir folder-name
rm33
rmdir
Deletes a folder (directory)
rm folder-name
rmdir folder-name
rm /s folder-name
rmdir /s folder-name
Note: if the folder isn’t empty,
you must add the /s.
copy
Copies a file from one location to
another
copy filepath-from filepath-to
move
Moves file from one folder to
another
move folder1\file.txt folder2\
ren33
rename
Changes the name of a file
ren file1 file2
del
Deletes one or more files
del filename
exit
Exits batch script or current
command control
exit
echo
Used to display a message or to
turn off/on messages in batch
scripts
echo message
type
Displays contents of a text file
type myfile.txt
fc
Compares two files and displays
the difference between them
fc file1 file2
cls
Clears the screen
cls
help
Provides more details about
DOS/Command Prompt
commands
help (lists all commands)
help command
Source: https://technet.microsoft.com/en-us/library/cc754340.aspx
Discount

On special offer

Partial preview of the text

Download Windows Command Prompt Cheatsheet and more Cheat Sheet Interface between Computer Science and Economics in PDF only on Docsity!

Windows Command Prompt Cheatsheet

- Command line interface (as opposed to a GUI - graphical user interface)

- Used to execute programs

- Commands are small programs that do something useful

- There are many commands already included with Windows, but we will use a few.

- A filepath is where you are in the filesystem

  • C:^ is the C drive
  • C:\user\Documents^ is the Documents folder
  • C:\user\Documents\hello.c^ is a file in the Documents folder Command What it Does Usage dir (^) Displays a list of a folder’s files and subfolders dir (shows current folder) dir myfolder cd chdir Displays the name of the current directory or changes the current folder. cd filepath chdir filepath cd .. (goes one directory up) md mkdir Creates a folder (directory) md folder-name mkdir folder-name rm rmdir Deletes a folder (directory) rm folder-name rmdir folder-name rm /s folder-name rmdir /s folder-name Note: if the folder isn’t empty, you must add the /s. copy (^) Copies a file from one location to another copy filepath-from filepath-to move (^) Moves file from one folder to another move _folder1\file.txt folder2_ ren rename Changes the name of a file ren file1 file del (^) Deletes one or more files del filename exit (^) Exits batch script or current command control exit echo (^) Used to display a message or to turn off/on messages in batch scripts echo message type (^) Displays contents of a text file type myfile.txt fc (^) Compares two files and displays the difference between them fc file1 file cls (^) Clears the screen cls help (^) Provides more details about DOS/Command Prompt commands help (lists all commands) help command Source: https://technet.microsoft.com/en-us/library/cc754340.aspx