Author
Start Learning the Linux
JiaPei Jen
Ranch Hand
Joined: Nov 19, 2000
Posts: 1309
posted Aug 31, 2009 10:25:47
0
I have been using the Windows all these years. Now, I have to get myself familiar with the Linux. The distribution I use is the CentOS and I was told to use it as the development platform. Please guide me from the starting point. Thank you.
Tim McGuire
Ranch Hand
Joined: Apr 30, 2003
Posts: 819
Hi, Do you have CentOS installed already?
I would start by installing VMWare player in your windows and downloading a CentOS or other VMWare appliance. This will give you a ready-to-go linux environment to start learning in, without fear of losing time if you screw up the install or something.
Then, get familiar with
navigation, http://www.linuxconfig.org/Filesystem_Basics
search, http://content.hccfl.edu/pollock/Unix/FindCmd.htm
editing files with vi http://www.linuxclues.com/articles/08.htm
beyond that, ask a specific question and you will get a prompt answer here.
JiaPei Jen
Ranch Hand
Joined: Nov 19, 2000
Posts: 1309
posted Aug 31, 2009 11:47:20
0
Thanks very much for the information.
JiaPei Jen
Ranch Hand
Joined: Nov 19, 2000
Posts: 1309
posted Sep 22, 2009 10:27:22
0
I am undertaking my first task - editing the "hosts" file in the "etc" directory.
First, I opened a command line window:
[root@my_username ~]# find / -name hosts
/etc/avahi/hosts
/etc/hosts
/etc/sysconfig/networking/profiles/default/hosts
My questions are:
1. how do I go to the "etc" directory?
2. how do I open the "hosts" file?
JiaPei Jen
Ranch Hand
Joined: Nov 19, 2000
Posts: 1309
posted Sep 22, 2009 10:33:06
0
I forgot to say that I am in the root directory -
[root@my_username ~]# pwd
/root
However, I tried to go to the "etc" directory, I got:
[root@cjen ~]# cd etc
bash: cd: etc: No such file or directory
Balu Sadhasivam
Ranch Hand
Joined: Jan 01, 2009
Posts: 874
here "vi" is the editor , there are other editors as well. check out Vi basics to understand the basics.
JiaPei Jen
Ranch Hand
Joined: Nov 19, 2000
Posts: 1309
posted Sep 22, 2009 10:40:41
0
My problems has been resolved. Somehow, the commands that I issued worked. Thank you.
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
JiaPei Jen wrote: I forgot to say that I am in the root directory -
[root@my_username ~]# pwd
/root
However, I tried to go to the "etc" directory, I got:
[root@cjen ~]# cd etc
bash: cd: etc: No such file or directory
The "/root" directory is not the same as the root directory "/" of the file system. The etc directory is in "/", not in "/root". Try this:
[root@cjen ~]# cd /etc
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
subject: Start Learning the Linux