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