Emacs is another good editing tool.
Printable View
Emacs is another good editing tool.
Don't forget to compile it if you need to. ;-)Quote:
So...let's recap:
(Type) vi [filename]
(To edit file - press) i
(To stop editting) ESC
(To Save and quit) :wq!
(In the shell, give permissions) chmod 755 [filename]
(Assuming you had !/bin/bash, run) ./[filename]
(If not) bash [filename
As MsM said
gcc filename.c -o filename
then
./filename
MB
MB> Its a shell script, no need to compile
parz> yeah, you got it
Yes - I recommend everyone learns how to use emacs (or rather, becomes familiar with it - there are so many add-on libraries and such that mastering it can take a while). I prefer to use vi, mostly because I am logged in via ssh, and depending on my client, I have to reset my keys (for meta, ^[letter], etc). Besides that - if you know how to use vi, you seem to automatically receive a badge of honor - "Ohh...HE uses Vi....wow...." - of course, the effect varies - most experienced sysadmins know that vi is both powerful and fairly easy to use, given time.