tags: apache   archive   business   charity   climbing   comic   communication   database   email   exchange   family   fm2008   hack   hardware   humour   linux   liverpool   microsoft   money   mysql   network   oes   opensource   outlook   php   pictures   process   project   quote   real_life   review   rss   science   security   software   thought   tsm   updates   webdev   website   windows  

Linux for Beginners - Part 1

Thu, 09 Aug 2007 08:06:05

Learning something new can be overwhelming and difficult. Just by familurising yourself to certain princples over time can help progression. I want to introduce you to some very basic Linux commands over a five part series. Reading time will be about 60 seconds and even if you forget the commands and syntax, hopefully basic princples will remain.

After your OS installation you may want to edit some configuration files. Lets assume we are setting up a public facing server so X Windows (a pretty GUI) is not installed for security reasons

Lets open a file, edit, save and close.
To open a file for changes we will use the 'vi' command.
[rick111@ryanpartington ~]$ vi myconfigfile

Once the file is open, hit 'ESC' and then press 'i', this will put us into editing mode. At the bottom of the shell it should say 'INSERT'. Make your changes and hit 'ESC :wq' which will write the changes and quit.
If you've not made any changes and you want to close the file hit 'ESC :q'. If you've made changes but do not want to write them 'ESC :q!'

To summarize, the vi command can be used to edit files from the shell.

Stay tuned
Ryan Partington