The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need advice on AWK kekanap Shell Programming and Scripting 14 04-22-2008 02:01 AM
need advice naner9 UNIX for Dummies Questions & Answers 1 11-01-2007 07:05 AM
to check redundant file names maverick Shell Programming and Scripting 5 02-09-2004 07:01 AM
Looking for some advice justawind UNIX Desktop for Dummies Questions & Answers 4 07-18-2002 06:40 AM
Need Advice! DaveC UNIX for Dummies Questions & Answers 9 02-14-2002 11:36 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Sep 2007
Posts: 133
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Question is redundant but please advice

I am really really new to Unix. I'm lost with so many books around for different shell. I'm thinking of taking a course on Operating Systems but it contains a lot of Unix programming I think. For example, someone was talking about a "which" command. But I wasn't able to figure out what it does... Which book gives me ideas on such things? Please advice...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Legend986 View Post
Which book gives me ideas on such things? Please advice...
How could you go wrong with a book called something like "UNIX for Dummies"?

"which" looks for a program on the $PATH and prints what it found.

try the following...

Code:
which which
which man
man which
man man
Reply With Quote
  #3 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Sep 2007
Posts: 133
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thanks

Also thanks for the which explanation. So if I want to implement a hypothetical uwhich command that immitates the original which command, would that come under shell programming?

And finally, are there any unix simulators where i can do all this stuff or do you recommend me to install unix altogether?
Reply With Quote
  #4 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Legend986 View Post
So if I want to implement a hypothetical uwhich command that immitates the original which command, would that come under shell programming?
or pascal, or C or C++ or Java or Perl or whatever language you chose to write your "uwhich" program in.

Quote:
Originally Posted by Legend986 View Post
And finally, are there any unix simulators where i can do all this stuff or do you recommend me to install unix altogether?
Why simulate when you can have the real deal?

What are you intending to simulate on? And what is your definition of UNIX?

If I am to guess that you are using Microsoft Windows, then you could do worse than try Cygwin or even Microsoft's very own "Services For UNIX".

I have also had great success running UNIX Version 7 on a PDP-11 emulator running on a Linux machine if that is what you mean.
Reply With Quote
  #5 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Sep 2007
Posts: 133
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I meant in C under Unix itself...

I was talking about simulators because generally they are easy to begin with. No hassles of installation. ANd my definition? Yeah, I know its an OS :P

My system runs Windows XP on a single drive. What is the best way to run Unix now? Paritition the disk or there's some other way?
Reply With Quote
  #6 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Legend986 View Post
I meant in C under Unix itself...
That would count as C programming.

Quote:
Originally Posted by Legend986 View Post
I was talking about simulators because generally they are easy to begin with. No hassles of installation.
Do you not have to install a simulator?

Quote:
Originally Posted by Legend986 View Post
My system runs Windows XP on a single drive. What is the best way to run Unix now? Paritition the disk or there's some other way?
Microsoft's Services for UNIX runs as a personality module under XP.

Cygwin runs as an application on XP.

Alternatively download and burn Ubuntu's LiveCD and boot from that.
Reply With Quote
  #7 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Sep 2007
Posts: 133
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Well, yeah, I need to install even a simulator but I guess application installation is much easier than OS installation atleast according to me.

Anyways, I'm stuck here without any CDs or DVDs. Is it possible to boot from a LiveCd without actually burning it? Now don't kill me for this question. I'm just curious...
Reply With Quote
  #8 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
If your machine can boot from a USB device, you can put some distros on a USB solid state memory disk.
Reply With Quote
  #9 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Sep 2007
Posts: 133
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Ok so if I use a LiveCD I would still be able to write shell scripts and do the basic stuff right?
Reply With Quote
  #10 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Legend986 View Post
Ok so if I use a LiveCD I would still be able to write shell scripts and do the basic stuff right?
As far as I'm aware. However where are you going to store them? (CD's are notoriously read-only). You could use a USB stick as a drive and put them on that, or else mount an NFS export from another machine.
Reply With Quote
  #11 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Sep 2007
Posts: 133
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Alright... I'll try that... Thank you so much. I've started reading the book you asked me to
Reply With Quote
Google UNIX.COM
Reply

Tags
linux

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive gzip password hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 02:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101