You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Rename_all_the_file_extenstions_in_a_directory" />
  </query-continue>
  <query>
    <pages>
      <page pageid="121" ns="0" title="Redhat - fedora service startup">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">== run levels ==

Service start and stop scrips are associated with run levels 0-6.  Each has a corresponding directory in /etc/rc.d.  For each run level, a script beginning with K stops the service, whereas a script beginning with S starts the service.


== starting services on boot ==

In order to start it automatically on every system boot, run

 # systemctl enable sshd.service

Likewise, you can remove it from system startup

 # systemctl disable sshd.service

If you would like to see a list of all available managed services, run

 # systemctl -a

== chkconfig method ==


===listing existing services=== 

listing existing services and the run level start configurations

 # chkconfig --list

example: 

 # chkconfig --list | grep sshd
 sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off

corresponding start/stop scripts

 # grep -r -m 1 sshd /etc/rc.d/*  | sort -n
 /etc/rc.d/init.d/sshd:# processname: sshd
 /etc/rc.d/rc0.d/K25sshd:# processname: sshd
 /etc/rc.d/rc1.d/K25sshd:# processname: sshd
 /etc/rc.d/rc2.d/S55sshd:# processname: sshd
 /etc/rc.d/rc3.d/S55sshd:# processname: sshd
 /etc/rc.d/rc4.d/S55sshd:# processname: sshd
 /etc/rc.d/rc5.d/S55sshd:# processname: sshd
 /etc/rc.d/rc6.d/K25sshd:# processname: sshd

===adding new services===

adding a new service if isn't already listed.  


 # '''chkconfig --add &lt;name&gt;'''

name = service name as its start script appears in /etc/init.d/ or you will get an error

example

 # '''chkconfig --add snmpd'''
 error reading information on service badserviced: Invalid argument

example...

 # '''chkconfig --add snmpd'''

check service just added, notice all run levels will be off by default

 # '''chkconfig --list | grep nrpe'''
 nrpe            0:off   1:off   2:off   3:off   4:off   5:off   6:off

===setting the run levels===

 # chkconfig --level &lt;levels&gt; &lt;name&gt; on

example, setting levels 2-5...

 # '''chkconfig --level 2345 snmpd on'''

==misc info==
 # '''chkconfig sshd on 
on fedora 17, the above command creates a symlink in a subdir of /etc/systemd/system/



[[category:redhat]]</rev>
        </revisions>
      </page>
      <page pageid="262" ns="0" title="Removing spaces from filenames">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">Remove all spaces from all files in current directory: 

Shell one-liner 

 &lt;p&gt;IFS=$'\n';for f in `find .`; do file=$(echo $f | tr [:blank:] '_'); [ -e $f ] &amp;&amp; [ ! -e $file ] &amp;&amp; mv &quot;$f&quot; $file;done;unset IFS Script 


[[Category:Linux]]</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>