 |
 |
Learning Terminal
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
I have been working with Apple computers for a few years now supporting both the hardware and software and I try to keep on top of everything as much as I can, but said to say, Terminal is something I have not used as much as I would like to.
I have some understanding of Terminal and I have used it but I would like to know it more.
Guess my question is, what's the best way to learn. Is there a really nice document out there that people like that sticks in their heads after reading it, or perhaps a how to video that perhaps shows the basics to then move on from there.
I'm eager to learn Terminal and try to use it in my daily tasks, but need to get on a good start with it.
**Edit
I'm sifting through these two pages to see what's good:
Unix Links
Gary Kerbaugh's Unix on OS X Picks
.
(Last edited by carterx; Nov 22, 2007 at 06:51 PM.
(Reason:Title update))
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2005
Location: Vancouver, BC
Status:
Offline
|
|
"Terminal" is just an interface to the BSD subsystem. What you're really saying is that you want to learn the UNIX command line. :-P
Since Mac OS X has a FreeBSD-based userland, UNIX Basics is an excellent start.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Originally Posted by Tomchu
"Terminal" is just an interface to the BSD subsystem. What you're really saying is that you want to learn the UNIX command line. :-P
Since Mac OS X has a FreeBSD-based userland, UNIX Basics is an excellent start.
Ya, was thinking of that. Read somewheres else to search FreeBSD
Had a look at the link and looks good. Will have to sit down and read through that.
Now here is the "I'm Stupid" question?
I really do want to leverage Terminal/Unix Commands for using OS X, but heres the question..... what should I be using Terminal for. For example, if needing to browse folders, make permission changes, create/remove, and general stuff can be done rather quick and easily from GUI. Again, I know Terminal is very important and can help in many ways, but I guess I'm just trying to see where the line to cross is when it comes to deciding to use Terminal or just use the GUI.
Thanks,
.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Sep 2005
Location: Canada... be nice, eh?
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: Apr 2001
Location: Wasilla, Alaska
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Here are some things I do in the Terminal frequently:
- syncing and copying files between computers
- finding text in folders of text files (very useful for web development)
- managing code projects via Subversion
- finding large files to free up space
- finding files based on a pattern (such as the iPhoto library recovery thread)
- text processing/manipulation
- network and system diagnostics (top, uptime, ifconfig, dig, etc.)
- command line interfaces to software I use (e.g. MySQL, Cyrus, Subversion, gnupg, etc.)
- compiling software, installing Unix software I want to use
- managing processes (stopping, starting, killing, etc.)
- monitoring logs (e.g. tail -f | grep <string>)
- downloading files via BitTorrent and Usenet (works great with "screen")
- automating/scheduling stuff
- running software update, burning/mounting images, doing stuff there is a GUI equivalent for (sometimes it is simply faster to do it in a Terminal, especially if I'm already there)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Today or tomorrow I'm gonna head out and buy two books. One for Leopard as there are a number of them out as for the looks of Amazon though unsure if any have hit the shelves yet or not and the other being a Unix Command-line (for beginers/slight users) of OS X Terminal.
May not have any recommendations for OS X Leopard yet, but how about a book book for OS X/Unix Command Line?
The online documents are great but want something that I can sit back and just read with out the need of a computer.
Thanks,
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: Apr 2001
Location: Wasilla, Alaska
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Well, stopped into a Chapters this eve and looked around and picked up "Unix for Mac OS X Tiger".
I figure that will give me the basics and perhaps an idea what I can do inside the OS with command line.
Will look to pickup another as work is paying for it and I will have a look at those books "AKcrab"
Thanks
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 1999
Location: Always within bluetooth range
Status:
Offline
|
|
Here's another site I have bookmarked. Not a comprehensive guide by any means but its a d@mn nice quick reference with an example line and its OS X specific (Darwin specific). Great for those times when you know what you want to do and just need to see example syntax. I discovered the 'say' command on that site so I could f#ck with my GF and her son :-)
OS X commands
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Originally Posted by Krusty
Here's another site I have bookmarked. Not a comprehensive guide by any means but its a d@mn nice quick reference with an example line and its OS X specific (Darwin specific). Great for those times when you know what you want to do and just need to see example syntax. I discovered the 'say' command on that site so I could f#ck with my GF and her son :-)
OS X commands
maha, I forgot about that command. We messed around in class with the instructor when I did the OS X Server Essentials course. lol, I bet he regret showing us that.
Thanks for the link,
.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status:
Offline
|
|
Originally Posted by AKcrab
Huh? A Spotlight search for kind:image is just a ⌘F away. That's seconds.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by TETENAL
Huh? A Spotlight search for kind:image is just a ⌘F away. That's seconds.
Can you do a Spotlight search for image files matching a specific pattern, and then act on each of these results found? While it looks like you can do Boolean searches in Leopard and group select the results, I don't think you could in Tiger.. Anybody?
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by carterx
Today or tomorrow I'm gonna head out and buy two books. One for Leopard as there are a number of them out as for the looks of Amazon though unsure if any have hit the shelves yet or not and the other being a Unix Command-line (for beginers/slight users) of OS X Terminal.
May not have any recommendations for OS X Leopard yet, but how about a book book for OS X/Unix Command Line?
The online documents are great but want something that I can sit back and just read with out the need of a computer.
Thanks,
I suggest not narrowing your search to "OS X Terminal". There is nothing unusual about OS X's Terminal application, it is simply an application that provides you with access to OS X's BSD subsystem, it itself is not Unix or anything but a simple application.
Therefore, you could pick up any Unix book you liked, it doesn't have to be OS X specific. In fact, I would suggest picking up a Linux book - the stuff you learn will be far more useful in the IT world, if picking up work is of interest to you.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status:
Offline
|
|
You don't need a fancy Boolean search to find all images in a folder. And of course you can act on the search results. Search would be pretty useless if you couldn't.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Originally Posted by besson3c
I suggest not narrowing your search to "OS X Terminal". There is nothing unusual about OS X's Terminal application, it is simply an application that provides you with access to OS X's BSD subsystem, it itself is not Unix or anything but a simple application.
Therefore, you could pick up any Unix book you liked, it doesn't have to be OS X specific. In fact, I would suggest picking up a Linux book - the stuff you learn will be far more useful in the IT world, if picking up work is of interest to you.
Not looking for a job but looking to expand/venture into the command line. In my daily job I work with Apple products for our College where my primary support is my campus but at the same time help out with the rest of the colleges in the province.
I know Apple OS, SOftware, Hardware etc. pretty good, but I think knowing Unix/Linux would really help.
I have played with Linux many times, but never really keep them long. Guess most of the time is apps and not have the best understanding of compiling, use and so on but hopefully I can help change that.
Would there be an ideal book that would be good to look for that is for a beginner, but will help me with the Unix/OS X side.
I have the understanding of the differences between Unix & Linux, but is the command line with Linux the same as Unix/OS X.
Thanks,
.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by TETENAL
You don't need a fancy Boolean search to find all images in a folder. And of course you can act on the search results. Search would be pretty useless if you couldn't.
What if you wanted to find .jpg, .gif, or .png images? What if you wanted to find pictures newer than a certain date?
I'm not sure if the original poster had images of different file types in iPhoto (or whether Spotlight would have just found images of all file types), so perhaps a Spotlight search would have worked in this case. However, there are lots of uses for Boolean searches in narrowing down what is found, and I *think* that Tiger didn't support Boolean Spotlight searches.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Originally Posted by TETENAL
You don't need a fancy Boolean search to find all images in a folder. And of course you can act on the search results. Search would be pretty useless if you couldn't.
If I understand correctly it does sound right to use command line.
The pictures in the iphoto library are in many folders but all under sub folders labeled Original. Doing a search for could be done and you can then drag each folder or it's contents to a new location, or search for .jpg/jpeg and find them that way but then you have to see which images are under what areas as you do not want the thumb nails. Plus in case there were any videos they would be in these Original folders as well.
Once again, only if I'm understanding it correctly, doing it though command really will mean it's just that one step to find them and copy/move them in turn be a lot faster & easier.
.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by carterx
Not looking for a job but looking to expand/venture into the command line. In my daily job I work with Apple products for our College where my primary support is my campus but at the same time help out with the rest of the colleges in the province.
I know Apple OS, SOftware, Hardware etc. pretty good, but I think knowing Unix/Linux would really help.
I have played with Linux many times, but never really keep them long. Guess most of the time is apps and not have the best understanding of compiling, use and so on but hopefully I can help change that.
Would there be an ideal book that would be good to look for that is for a beginner, but will help me with the Unix/OS X side.
I have the understanding of the differences between Unix & Linux, but is the command line with Linux the same as Unix/OS X.
Thanks,
.
My suggestion: don't just read a book and learn about stuff through a book, because you probably won't retain this information this way. Find a project, and use the book as a guide.
Check out some of the stuff they have students do in Unix certification courses (I can probably dig up the curriculum for ours that we offer), and go through the projects they do with a spare PC and try to accomplish the same setup with your PC. In other words, create yourself a project - a goal, preferably something you might actually use.
For example, install a Linux distro of your choice. Setup the firewall, get it backing up data using a scheme of your choice, setup and secure a web server, setup and secure an IMAP and SMTP server, etc. I could list tons of other tasks for you if you'd like...
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by carterx
If I understand correctly it does sound right to use command line.
The pictures in the iphoto library are in many folders but all under sub folders labeled Original. Doing a search for could be done and you can then drag each folder or it's contents to a new location, or search for .jpg/jpeg and find them that way but then you have to see which images are under what areas as you do not want the thumb nails. Plus in case there were any videos they would be in these Original folders as well.
Once again, only if I'm understanding it correctly, doing it though command really will mean it's just that one step to find them and copy/move them in turn be a lot faster & easier.
.
True... I forgot about the whole "Original" folder scheme. The Spotlight search would need to discriminate between photos in and outside of these folders.
(Last edited by besson3c; Nov 22, 2007 at 11:08 PM.
)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|