10 Terminal Tips
Terminal is a great application. It comes pre installed on every mac. So today I’m going to be showing you how to use terminal for some pretty cool things.
Tip #1, Making an alias shortcut for a folder:
ln -s (your source) (your destination were you want to put your file)
Example:
ln -s Users/jonah/Movies/terminal_tips.screenflow Users/jonah/Desktop/
Tip #2, Changing the directory:
cd /your/destination
After that you can also type “ls” to view all your files in that directory.
Tip #3, Renaming files:
This command will let you rename and move files.
mv (input) (output)
Example:
mv /Users/jonah/Desktop/root.sh /Users/jonah/Desktop/header.sh
Tip #4, Making a cool text banner:
banner "text"
Tip #5, Making your mac talk:sayAfter you type "say" press "enter" and then you can type what ever you want!
Tip #6, Adding multiple commands on one line:If your a developer or just someone who uses lots of commands then this tip should be pretty useful for you!(command 1) && (command 2)Example:killall Finder && Killall DockTip #7, Deleting files:rm (file location)Example:
rm /Users/jonah/Desktop/Info.plistrm /Users/jonah/Desktop/Info.plistTip #8, Making a new folder:mkdir (new folder location)Example:mkdir /User/Jonah/Desktop/newfolderTip #9, Copying files:cp (input file) (output directory)Example:cp /Users/jonah/Desktop/root.sh /Users/jonah
Tip #10,Downloading files:cd /(directory were you want save your file) && curl -O (url)Example:cd /User/Jonah/Downloads && curl -O http://example.com/file.zip


