Click to See Complete Forum and Search --> : Brand spankin' new to linux/c++ programming
elpresidente
02-21-2001, 11:35 PM
I installed linux on an old 486 box with the purpose of teaching myself c++. Problem is, I don't know any commands (ls, cd, more and that's it). Can anyone point to where there are good resources on:
1. Basic linux commands
2. Where to find the texteditors on my box as well as use them.
3. How to compile a program I've written including where the libraries are (directory location), basic commands, etc..
I know these are VERY basic questions but all the resources I've found seem to assume a working knowledge in linux and c++ programming. Please, please help me.
-elpresidente
error27
02-22-2001, 01:49 AM
good linux commands are:
locate
man -k keyword
typing: man -k editor
will give you a list of some of the editors on your computer. most of them are worthless.
xemacs is a good text editor. kde has kdevelop and that is a good editor.
to compile a program type:
g++ programname.cpp
the resulting executable is called a.out. type:
./a.out
to run it.
Strike
02-22-2001, 11:57 AM
Basic commands (http://www.linuxnewbie.org/nhf/intel/commands/index.html)
For text editors, if you are going to program or do any heavy Linux usage, I recommend vim (http://www.vim.org) - if it isn't already on your system, it's probably on an installation CD you have. A great thread about tricks with vim is here (http://www.linuxnewbie.org/ubb/Forum14/HTML/000729.html).
And a good programming resource is ... here :)
I was going to reply to that thread since I noticed that the = command isn't mentioned, but I guess you can't since it is pre-bbs-update. Anyway, the = command rock, it automatic sets the selected lines (using move keys or v-mode) to the proper C-indenting. Very useful after pasting a block of code.
scoobydope
02-23-2001, 12:29 PM
one book that i found invaluable when i first started up was "teach yourself unix in 24 hours"
No, its not really one day. Its 24 chapters that are each supposed to take you about one hour to complete. Starts with the most basic, and then gets into the nitty gritty commands.
The same company (SAMS, and no, i am in no way affiliated :) ) has another book out called "teach yourself linux programming in 24 hours" that revolves around the basics of compiling for linux. I have this book too, but haven't opened it yet. (its part two of a linux programming package starting with "teach yourself C in 24 hours" which i am only half way through)
I TOTALLY understand how much of a pain it is to buy computer books due to their stupidly high prices (save that for the rant forum) but here in vancouver there is a Half Price Computer Books store that i usually go to.. they have a TON of the sams books.
http://www.halfpricecomputerbooks.com/results.php?terms=sams&so=title