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.
I tried this option: "vi file1". File1 opened as a new file and there is no data in the file. I typed in some text and tried to save the file and exit the "vi" editor. But i dont know how to do it. I am trying to use the vi editor similar to the windows textpad or notepad. Can I insert some text and save it and quit the vi editor to go back to the command line?
If yes can you please escort me with the command?
I tried :wq, Control q, and ZZ.
It didnt work, It simply typed in all of this commands in the vi editor.
Did you do those commands on the command line?. I mean, vi(m) has two modes, insert and command. Press ESC first then ":" then "wq" to write and quit the file. Try running "vimtutor" to have a quick tutorial about using vim
Funny this should com up. I'm trying to learn linux and was getting ready to set up a home server. I started playing around with vi and had some problems. So I did some digging and came up with a couple good cheatsheets. Here is one that looks pretty good but doesn't cover everything. Then there's this PDF cheat sheet that seems to cover just about anything the newbie could want. Another option is this PDF intro that gets you to write your own cheatsheet.
I printed them all off and will use them in my studying.
Hello people thank you very much for your replies. I really appreciate it. Actually the only thing i wasnt doing was not pressing ESC key. Now everything is working fine. I wasnt able to do net for a couple of days so it took time to reply. Anyways Thanks so much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.