This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Start Learning the Linux

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks very much for the information.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


here "vi" is the editor , there are other editors as well. check out Vi basics to understand the basics.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My problems has been resolved. Somehow, the commands that I issued worked. Thank you.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic