Idiots guide to UNIX
Discussion
Oh help,
I've got my final year uni project and its all maths and modelling using UNIX as a basis.
I don't want to be treated like a moron, but in all honesty, I am. I didn't even know that UNIX existed until yesterday and all I've got is this bloody text box to tap things into.
How can it be made simple??? What do I need to know, and how do I do simple things like make a file, find a directory and log on
Help
I've got my final year uni project and its all maths and modelling using UNIX as a basis.
I don't want to be treated like a moron, but in all honesty, I am. I didn't even know that UNIX existed until yesterday and all I've got is this bloody text box to tap things into.
How can it be made simple??? What do I need to know, and how do I do simple things like make a file, find a directory and log on

Help

Ha, ha, ha. Welcome to "real computing" or "the dark ages" ... take your pick, opinions vary. I'm sure there must be a load of beginners manuals available on the interweb and somebody who knwos there arse from their elbow will be along to point you in the right directon soon. Have no fear; you don't have to learn much to be able to create directories, move around the tree, create files etc. Once you've got the basics and you've played with it for an hour you'll be fine.
Mr E's guide looks like a good place to start
Mr E's guide looks like a good place to start
Edited by ATG on Tuesday 16th October 22:33
Go and grab SuSE Linux or Fedora, install, get a command prompt and type 'man <command>' a lot :-)
Also learn to use the 'vi' (or 'vim') editor, it's amazing and you'll never want to use anything else once you're used to it.
To make an empty file: touch <filename>
To find something (lots of variations but I like this one): 'find <start> -name <file>', i.e. find /opt -name "*.txt" finds all text files under the /opt directory.
Good luck,
Matt
Also learn to use the 'vi' (or 'vim') editor, it's amazing and you'll never want to use anything else once you're used to it.
To make an empty file: touch <filename>
To find something (lots of variations but I like this one): 'find <start> -name <file>', i.e. find /opt -name "*.txt" finds all text files under the /opt directory.
Good luck,
Matt
Edited by mattski on Tuesday 16th October 22:41
Crikey, sed and awk. Got an O'reilly sed and awk book on the shelf behind me. Not been looked at in years, thankfully I have no use for it now 
Edited to add - Good luck LGF. I've not used Unix in years but its not too hard, like someone else said, the man (manual) pages are good, if you know what command you want help on .....

Edited to add - Good luck LGF. I've not used Unix in years but its not too hard, like someone else said, the man (manual) pages are good, if you know what command you want help on .....
Edited by Mrs BlueCerbera on Tuesday 16th October 23:21
PMSL laughing at everything above.
LGF, you are going to have to tell us a little bit more about what it is you need to do.
Then we will spend a few hours debating whether it should be written in bash or perl or ruby or java or c or c++.
Then once we've decided on that well debate how it should be implemented; command line/web-service-xml/html-cgi/html-php/html-ajax/ruby-rails.
You get the drift!
(At least you are not looking at VB/C#/J#/.Net)
As final question, if this is your final year project, just what have you been doing for the last few years?
Anyway... spill your beans because the devil is in the detail!
LGF, you are going to have to tell us a little bit more about what it is you need to do.
Then we will spend a few hours debating whether it should be written in bash or perl or ruby or java or c or c++.
Then once we've decided on that well debate how it should be implemented; command line/web-service-xml/html-cgi/html-php/html-ajax/ruby-rails.
You get the drift!
(At least you are not looking at VB/C#/J#/.Net)
As final question, if this is your final year project, just what have you been doing for the last few years?
Anyway... spill your beans because the devil is in the detail!
littlegreenfairy said:
Umm its to do with heat conduction in rock...
As for the last few years I've been doing a materials engineering degree and there has been no work on this at all, or indeed anything on computers (not even CAD) so I'm utterly screwed!
Ok. UNIX is basically what the heavy duty computers run; the things that run banks... billing systems for megacorps and so on. And yes, unfortunatley, it's used a lot when doing high variable simulations of 'stuff' (rocket motors, nuclear bombs... etc).As for the last few years I've been doing a materials engineering degree and there has been no work on this at all, or indeed anything on computers (not even CAD) so I'm utterly screwed!
By virtue of the fact you only find it, for the most, in server farms, it's completely and utterly un-f
king-friendly. Now, we might... might be able to make it a bit more friendly. If you had to type in such arcane commands as 'ssh' or 'telnet' to get the weird prompt up... you're screwed and well you're gonna need reinforcements. If you're say sat in front of an actual terminal somewhere try these commands:startkde &
gnome-session &
startx &
Hopefully the machine will sit there and think about this for a few seconds and up will pop a GUI; bit different to OS X and Windows but. It might not and then we're back to plan B

Thing is, what does your project actually involve? Thermal conductivity of rock samples is one thing; but are you supposed to punch the numbers in to an existing program and then go on to extrapolate from it... or write the sim for scratch or something totally different? It just seems really odd that in a course that had next to no computery stuff they'd drop you in the deep end this way.
littlegreenfairy said:
Umm its to do with heat conduction in rock...
As for the last few years I've been doing a materials engineering degree and there has been no work on this at all, or indeed anything on computers (not even CAD) so I'm utterly screwed!
Why so optimistic?As for the last few years I've been doing a materials engineering degree and there has been no work on this at all, or indeed anything on computers (not even CAD) so I'm utterly screwed!
Mathematical model of the heat flow in the rock ... some diffusion equation thing.
Now turn to a text book on "numerical techniques" which guides you through the options for putting together an iterative method for solving the differential equation and expresses it in some easy-to-read computer language (could do a lot worse than "Numerical Recipes in ForTran" ... stop laughing at the back). If you can make headway on those bit you've done the tough stuff.
Converting that into a programme that will actually run on a computer is pretty much a mechanical process. Yes, you'll have to learn how to crank the handle to produce the programme and you'll have to get used to putting every dot and comma in the right place, but it is very doable.
We do thermal modelling software on Unix (and Windows)
Mainly for cooling electronics, but also do HVAC systems and the software deals with heat conduction and stuff. No geological stuff though, other than having various materials available, and the ability to build up materials from base property values.
As mentioned, the numerical recipes book, in C or C++, none of this old dodgy fortran
, could be just what you need. That's assuming you will be developing some software to do some calculations, rather than using existing software to calculate various heat flow properties of different materials and comparing results, etc.
A bit more detail about your actual project would be useful for those willing to help. Unix itself is quite cool, but then I was around in the (later) days of DOS, so find command lines quite refreshing
Plenty of books on getting to grips with unix, and free resource on the web, and you'll be able to get free compilers to build any source code that you may need to write. Possibly a steep learning curve, but sounds like it could be quite enjoyable (to my twisted mind anyway
)
Mainly for cooling electronics, but also do HVAC systems and the software deals with heat conduction and stuff. No geological stuff though, other than having various materials available, and the ability to build up materials from base property values.As mentioned, the numerical recipes book, in C or C++, none of this old dodgy fortran
, could be just what you need. That's assuming you will be developing some software to do some calculations, rather than using existing software to calculate various heat flow properties of different materials and comparing results, etc.A bit more detail about your actual project would be useful for those willing to help. Unix itself is quite cool, but then I was around in the (later) days of DOS, so find command lines quite refreshing
Plenty of books on getting to grips with unix, and free resource on the web, and you'll be able to get free compilers to build any source code that you may need to write. Possibly a steep learning curve, but sounds like it could be quite enjoyable (to my twisted mind anyway
)Edited by Hanslow on Wednesday 17th October 00:36
TheLearner said:
Spokey said:
ATG said:
FFS ... it should be written in Python 
And whoever said "use vi", you are a very bad person. I'll agree it is "amazing", but not in a good way.
Burn the heathen! 
And whoever said "use vi", you are a very bad person. I'll agree it is "amazing", but not in a good way.


Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff




