Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
in the terminal you will need an editor, for example vi or emacs. You write the sourcecode with the editor. Compiling is done on the commandline. For example, if you have progamcode called hello.c you may execute
Code:
gcc -o hello hello.c
the outputfile will be "hello" and can be executed with
Code:
./hello
in Linux other than Windows you'll have to use the path to the programm even it is in your current working directory.
It would be helpful if you explain what you want to do.
Note that vi and Emacs are not like most editors, you can't just start typing like in a normal GUI editor. If you want something simpler, try nano. But if you're going to do a lot of editing, I would recommand that you learn vi or Emacs.
i appreciate your responses alot thanks once again,my problem is that am not familiar enough with using the editors.guys if you dont mind would you please advice or atleast help me on it or give me a tutorial on how to use emacs,vi,and nano.
Well, assuming you have vim already installed. Check that you have a file .vimrc in your home-directory, if not copy the file /usr/share/vim/vim73/vimrc.sample.vim as .vimrc into your home-directory.
vim is a modern clone of the standard-Unix-editor vi.
vim comes with a tutorial, simply execute "vimtutor" on the commandline.
At first sight vim is a little difficult to use, but the best choice when one uses no gui at all. Once you are familiar with vim you'll never use another editor. It is the fastest and most convenient way to edit files. I've installed vim on all my Windows-servers.
Well you can use Vi or Nano. Nano is more user friendly, but if you willing to learn a little bit than i agree with marcush, that is, Vi is a lot better for editing. If you want a non-terminal editing program, Kate is awesome for any KDE system, and i dont mind Gedit (after a little bit of customizing) for gnome.
The first look at Vi, its a little difficult to grasp, but once you know it thats all you'll use
Jump onto youtube and have a look, they have some pretty good tutorials on how to use editors.
If your after programming tutorials, "thenewboston" <<---- (his channel on youtube) has easy to understand beginner tutorials.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.