This document provides a comparison of common commands used in Linux/OSX and Windows operating systems. It lists basic file and directory navigation commands like ls, pwd, mkdir alongside commands for copying, moving, deleting, compressing and extracting files. Equivalent commands are shown for both Linux/OSX and Windows to allow users to easily translate commands between the two environments.
This document provides a comparison of common commands used in Linux/OSX and Windows operating systems. It lists basic file and directory navigation commands like ls, pwd, mkdir alongside commands for copying, moving, deleting, compressing and extracting files. Equivalent commands are shown for both Linux/OSX and Windows to allow users to easily translate commands between the two environments.
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