If you're not sure how to use a command or what options it has you can always do: 'man :command_name' to see the manual for that command (example: man cd)
- Switching folders:
cd :folder_name: - Move up one folder:
cd .. - Going to the home folder:
cd ~ - See folder contents:
ls - See readable folder contents:
ls -la(-laare options for thelscommand) - Open current folder in Finder:
open . - Open any folder in Finder:
open :folder_name: - Remove folder (Careful, it won't go to your trash. Operation can't be undone)
rm -rf :folder_name:
- See file contents:
cat :file_name: - Open file with default app:
open :file_name: - Open file with app:
open -a "App Name" :file_name: - Remove file:
rm :file_name:(Careful, it won't go to your trash. Operation can't be undone) - Create empty/new file:
touch :file_name: