Files & Directories
Windows: Make Directories in the GUI & CLI
mkdir my_cool_foldermkdir my cool foldermkdir 'my cool folder'mkdir my` cool` folder
Linux: Make Directories in the Bash
mkdir my_cool_folderlsmkdir 'my cool folder'
Windows: Command History
historymkdir my_cool_folder
Ctrl + Rmkdir my_cool_folder2mkdir my_cool_folder3clear
Linux: Command History
history
Ctrl + Rclear
Windows: Copying Files & Directories
-
Hotkey
-
Cpoy
Ctrl+C
-
Paste
Ctrl+V
-
cp mycoolfile.txt c:\Users\cindy\Desktop
-
cd ~\Desktop
-
ls
-
Windcard A character that’s used to help select files based on a certain pattern.
-
cd c:\Users\cindy\Documents
-
cp *.jpg c:\Users\cindy\Desktop
-
cd ~\Desktop
-
ls
-
Recurse
-
Verbose
-
cp 'Bird Picture' c:\Users\cindy\Desktop
-
cp 'Bird Picture' c:\Users\cindy\Desktop\ -Recursive -Verbose
Linux: Copying Files & Directories
ls
cp my_very_cool_file.txt ~/Desktop
ls ~\Desktop
cp *.png ~/Desktop
ls ~\Desktop
cp -r 'cat Pictures' ~/Desktop
ls ~\Desktop
Windows: Moving and Renaming Files & Directories
mv .\blue_document.txt yellow_document.txt
ls
mv .\yellow_document.txt c:\Users\cindy\Documents
ls c:\Users\cindy\Documents
mv *_document.txt c:\Users\cindy\Documents
ls c:\Users\cindy\Documents\
Linux: Moving and Renaming Files & Directories
mv red_document.txt blue_document.txt
mv *_document.txt ~/Desktop
Windows: Removing Files & Directories
rm ~\text1.txt
rm ~\misc_folder -Recurse
Linux: Removing Files & Directories
rm text1.txt
rm self_destrcution_buton
rm -r misc_folder