LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-24-2013, 07:21 AM   #16
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380

Just to clarify about some of the commands inside vi, q I believe it is intuitive means quit, wq write and quit, q! means quit and not save where the symbol ! is used in many programming languages as a not like in != where it means not equal or different. And many other things in GNU/Linux system are that way, take as example common commands like cp copy, ls list, mv move, etc.

About editor it is good to know that are many available, just to mention some: ed, joe, jed, nano, mcedit which come with mc Midnight Commander a powerful file manager with many abilities, it is a must tool for daily use.

Here some links that will help you:
http://www.oreillynet.com/linux/cmd/
http://rute.2038bug.com/index.html.gz
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.pixelbeat.org/cmdline.html

I believe those will be a good start, you do have a good goal, keep going that way and in no time will be knowing a lot.

Regards
 
Old 03-24-2013, 08:40 PM   #17
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Actually,
Code:
# use the esc key to get (back) into cmd mode then
# you have (at least) the following options

# to quit no save (it'll ask for confirmation)
:q

# quit no save and don't ask me for confirmation
:q!

# exit with save
:x

# save changes made so far; does not quit or exit
:w
No need for ':wq'; that's cargo cult stuff
 
Old 03-24-2013, 09:58 PM   #18
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,116

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Quote:
Originally Posted by chrism01 View Post
No need for ':wq'; that's cargo cult stuff
Actually, I use "ZZ" myself, so there!
 
Old 03-26-2013, 07:21 PM   #19
silverdrgn
Member
 
Registered: Mar 2005
Location: Texas
Distribution: slackware, slackware
Posts: 41

Original Poster
Rep: Reputation: 15
Well thanks a lot guys I have been reading some for dummies books thus far but I will check out the links you guys posted up. I appreciate ur support and hopefully soon I can provide some help to others and also be able to use my Linux box more appropriately. Thanks again everyone, you guys make me feel accepted
 
Old 03-26-2013, 10:23 PM   #20
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,822

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
for basic tasks
small edits on files and such .Vi is a bit of "overkill "

It is one of the best editors , BUT with a huge learning curve

i normally use " nano" for small edits

there is a handy "cheat sheet" on the bottom of the terminal screen

look into installing Nano
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 09:34 AM
Access denied for NFS - but hosts.allow and hosts.deny seem OK royce2020 Linux - Networking 4 10-17-2011 11:44 PM
hosts.allow - permission denied rainlinux Linux - Newbie 14 10-06-2010 02:57 AM
updating the change of /etc/hosts.deny in AIX 4.3.3 zepplin611 AIX 7 07-18-2004 03:31 PM
IP still denied, after removed from hosts.deny anth2oo1 Linux - Security 13 05-06-2003 08:31 PM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration