Journal

Continuing down the route of learning Windows basics in the OSCC training. This section is supposed to be all about CMD

Raw Notes

Windows

  • CMD
    • Using xfreerdp to log in
    • cd\ is windows cd ..
    • dir β†’ lists the contents of the current directory
    • dir /A β†’ WIll show all contents even the hidden ones
    • type file.txt β†’ shows the contents of the file
    • When working with a file with spaces in the name you have to put the file in double quotes
      • type "cats are great.txt"
    • echo "Meow" > cat.txt β†’ This will use echo to create a file named cat.txt and add β€œMeow” to it
    • echo Meow > cat.txt β†’ Will create a file with Meow in it
    • 2> will pipe an error if it happens
    • del β†’ deletes a file
    • rename β†’ Self explanatory
      • rename cat.txt kitten.txt β†’ renames cat.txt to kitten.txt
    • move β†’ Moves files
      • move cat.txt Desktop\ β†’ Moves the cat.txt to desktop
    • copy β†’ copies a file
    • mkdir β†’ makes a directory
    • rmdir β†’ removes a directory
      • rmdir /s β†’ Allows you to remove a directory and all the files and directories inside it
    • > β†’ operator overwrites a file
    • >> β†’ operator appends
    • fc β†’ Compares files
      • fc meow.txt cat.txt β†’ Will compare the two files and state the difference