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 directorydir /Aβ WIll show all contents even the hidden onestype 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 itecho Meow > cat.txtβ Will create a file with Meow in it2>will pipe an error if it happensdelβ deletes a filerenameβ Self explanatoryrename cat.txt kitten.txtβ renames cat.txt to kitten.txt
moveβ Moves filesmove cat.txt Desktop\β Moves the cat.txt to desktop
copyβ copies a filemkdirβ makes a directoryrmdirβ removes a directoryrmdir /sβ Allows you to remove a directory and all the files and directories inside it
>β operator overwrites a file>>β operator appendsfcβ Compares filesfc meow.txt cat.txtβ Will compare the two files and state the difference