Deleting files and folders in Unix can be a little scary, so use caution. Unix doesn’t have a trash bin that your files go to when deleted. Once you invoke the delete command, the files or folders will be gone. Forever. We cannot stress this enough.
These two commands are used to move and copy files.The first, mv is used to move files from one location to another. Let’s say that I had a file located in my user folder, but I wanted it moved to a folder called Documents.
Have you ever wanted to find out who is logged onto your Mac? Perhaps you have a multi-user system, or have SSH enabled; either way, you might need to know who is logged in. This simple Terminal command can tell you very easily. Simply head to the command line and type in who. In a blink of an eye, the system will return a list of all the users currently logged on and what date and time they logged in. Pretty nifty, huh?
If you have a nice-looking screensaver like us, you want to see it all the time. Type the command below in Terminal, and your current screensaver will appear as your Desktop’s background image. Then, as with all commands on this page and the next, hit Return.
Terminal’s Unix-style command-line interface may be serious business, but that doesn’t mean you can’t use it for a little monkey business, too. These Terminal tricks show you some interesting tweaks you probably haven’t imagined before, and to save you the pain of meticulously typing in all these commands, you can copy/paste them.