Unix Terminal question


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers Unix Terminal question
# 1  
Old 10-24-2008
Unix Terminal question

Hi, I'm new here, but I have a quick small question. I'm sorry if it sounds stupid, but I'm new to the UNIX world after using VMS (or Windows) my entire life. I my Mac runs Leopard, and I was wondering;

My friend me through Mac's "Terminal" you can create and program your own applications by just using the UNIX codes and just in Terminal. Is this true? If it is not, what kind of program or application would I need to make any kind of application?

Thanks in advance. Smilie
# 2  
Old 10-24-2008
Yes, UNIX was written in C in a terminal to start with.

While UNIX is "native" C at the core, you can develop useful small to medium applications with Unix tools called from inside shell scripts or one line commands - from the terminal. shell == DCL, except what you can do in UNIX is an extreme superset of that because of tools like awk grep and sed. Entire applications are written in shell. There are also a lot of interpreted languages that let you do things like develop modest db apps in shell or performs extended precision calculations <- examples.

DCL is verbose; shell cryptic and terse... It is possible to write one line of code that does what 20 lines of DCL might do. And a lot harder for beginners to read.

The one thing you will have to learn is regular expressions to get the most out of unix tools. Another concept is processes. Unix creates lots of child processes, sometimes each command is a separate child. This affects variable scope.

Your default shell is probably bash - consider googling for 'Advanced bash guide' and see how you fare with it. Assuming you were okay with DCL.

Last edited by jim mcnamara; 10-24-2008 at 11:34 PM..
# 3  
Old 05-21-2009
Quote:
Originally Posted by Kcahintosh19
Hi, I'm new here, but I have a quick small question. I'm sorry if it sounds stupid, but I'm new to the UNIX world after using VMS (or Windows) my entire life. I my Mac runs Leopard, and I was wondering;

My friend me through Mac's "Terminal" you can create and program your own applications by just using the UNIX codes and just in Terminal. Is this true? If it is not, what kind of program or application would I need to make any kind of application?

Thanks in advance. Smilie
A little advice from someone who owned two OS X-capable Macs and used all the powerful extras he could on both:

OS X Developer Tools, free from Apple (you just have to sign up to their Developer Community, also free) enhances what Terminal can do in terms of compiling and testing programs created with its own resident utilities. Apple's X11 extends those bounds considerably more. If you bought your Mac new or refurb from an authorized Apple reseller, CDs with those packages on them should have come with it. If not, and your Mac happens to burn CDs/DVDs (most do nowadays), then you can download the necessary disk images direct from Apple. Just Google for Developer Tools for Leopard and Mac OS X X11 for Leopard, and look for links where the URLs happen to have either "www.apple.com" or "developer.apple.com" at the beginning.

Twelve years of Mac home use comes in handy sometimes.

BZT
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to get Unix terminal in windows

Hi, How to get unix look and feel in windows environment where i can execute basic commands like date and complex usage like awk, sed etc and not much storage space is needed. Is there any software that i can install to use the same? Thanks, (3 Replies)
Discussion started by: i.srini89
3 Replies

2. Shell Programming and Scripting

who command from non terminal in unix

I was executing a command "who -ms" from a CHUI application but i get below message, It seems that who command can be executed only when we are logged directly in unix box as we have terminal. Is there a way to get rid of this problem , or anyother command where i can get machine name of the... (4 Replies)
Discussion started by: lalitpct
4 Replies

3. UNIX for Advanced & Expert Users

A question about terminal

hi, I sealed a linux app in a pc as an embeded device.. I added several users in my linux system, of coz i am the root user...well, after i saled my products to customers, i want my products run like a embeded devices when they connect the system with terminals... i got a way out.. I want to bind... (4 Replies)
Discussion started by: macroideal
4 Replies

4. UNIX for Dummies Questions & Answers

Dumb gnome terminal question.

I've searched and searched but either I'm not using the right key words or the information isn't in print anywhere. I'm running Cent 5.3 and I have a number of terminal profiles setup to ssh into some of my Unix servers at work, what I'm trying to do is setup shortcuts on my desktop to those... (3 Replies)
Discussion started by: nixnoob
3 Replies

5. OS X (Apple)

Terminal Question...

I have a file I need to run in Terminal. On my friend's computer it shows up under Get Info as a Unix Executable File, but on my computer it shows it as a Document file and doesn't run in Terminal. It doesn't show a file extension either. I also have a .cmd file it also thinks is a document. both... (2 Replies)
Discussion started by: bobknob
2 Replies

6. AIX

Need a UNIX terminal to practice... please help!!!

Is there a web site that i can go to and practice my UNIX commands on their browser (terminal mode) or a telnet service that i can login to for free? I don't have a LINUX/UNIX system at home or at work, yet i want to hone my skils. Thanks for all of your help, (5 Replies)
Discussion started by: abhishek27
5 Replies

7. UNIX for Dummies Questions & Answers

Unix terminal protocol

I need to accomodate terminals running off an NCR UNIX SCO server. I need the protocol so I can get the correct S/W image for the router. (3 Replies)
Discussion started by: de2934
3 Replies

8. UNIX for Dummies Questions & Answers

Mac OS X/UNIX/Terminal Question

Hey everyone I'm new to UNIX due to the new Mac OS X operating system and would like some help. I'm trying to send an email via the UNIX-Shell-Terminal i Mac OS X, (it's called darwin) How do I do that? When I enter the Command mail I can send messages to root and with the command -forward... (4 Replies)
Discussion started by: onkel
4 Replies

9. UNIX for Advanced & Expert Users

connecting to unix through hyper terminal - as a dumb terminal

I just changed from windows NT to XP and I am no longer able to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)
Discussion started by: michelle
2 Replies
Login or Register to Ask a Question