COMMON COMMANDS
LINUX / OSX WINDOWS
ls dir List files and directories
ls myfolder dir myfolder List files and dirs inside a folder
pwd cd Get current directory path
clear -same- Clear the terminal
touch example.txt echo > example.txt Create new file
mkdir myfolder -same- Create new directory
cd myfolder -same- Change directory to myfolder
cd .. -same- Go back one directory
cp example.txt myfolder/ copy example.txt myfolder\ Copy example.txt file to myfolder
mv example.txt myfolder/ move example.txt myfolder\ Move example.txt to myfolder
rm example.txt del example.txt Delete example.txt
rm -r myfolder del /Q /S myfolder Delete myfolder and its content
mv example.txt myexample.txt move example.txt myexample.txt Rename example.txt to myexample.txt
tree tree /F Get current directory structure
find . -name example.txt dir example.txt /s /p Find file or directory
cat example.txt type example.txt Display file content
du example.txt -none- Get file or directory size
zip example.zip example.txt -none- Compress example.txt to example.zip
unzip example.zip -none- Unzip example.zip to current directory
zip -r example.zip myfolder -none- Compress all files of myfolder to example.zip
help pwd -same- Show help message for a command
man pwd -none- Show manual text for a command
pip3 install —user library -same- Installs a package for Python 3
pip3 uninstall library -same- Uninstalls a package for Python 3
authors: Ardit Sulce, David Schenck