Windows Commands - Hsanokklis/2022-2023-Tech-journal GitHub Wiki

Helpful Command Line Commands

cd

  • displays current directory

cd\

  • takes you to the root directory

cd file

  • takes you to the directory you want to go to

cd..

  • takes you to the directory before the one you are currently in

dir

  • displays all files/folders within a directory

cls

  • clears everything in the command prompt

rmdir or rd

  • deletes a directory

echo

  • repeats whatever you type in(does not need to have quotes to work)

type

  • displays the contents of a text file

echo "Hello"> file.txt

  • echo repeats what is written after it, the operator > takes what will be displayed by echo and stores it in a file created called file.txt

copy

  • copies something in a file or directory and puts into another file/directory (format is copy file.txt file2.txt)

del

  • deletes file or directory

type nul > file.txt

  • creates an empty file

Color

  • changes color of terminal(you can change background and text(format color D7))

tasklist

  • shows applications running in system

arp -a

  • displays your arp table

image