Webpipe Internet Solutions
  Webpipe Internet Services   Webpipe Internet Services   Webpipe Internet Services   Webpipe Internet Services   Webpipe Internet Services
Home Company Info Internet Service Hosting Services Support
Discussion and support Forums   Website Hosting   Wireless, DSL, and Dial-up internet access   Affiliate Login

Linux commands

From Webpipe Wiki

Contents

Using the "yum" command

Inside of your virtual, dedicated, or co-located server, you can use the command 'yum' for package management. This allows you to add and remove your own applications.

Examples:

You can update your entire vserver with the latest patches and fixes by executing the command 'yum update'. It will then show you which packages will be updated and ask you if you would like to continue.

When a new update for Apache is released, you can run 'yum update httpd' and it will check for updates for Apache and install it.

To view what packages are installed you can run 'rpm -qa | less'

To remove a certain package use 'yum erase zlib'

To add a certain package use 'yum install bzip2-devel'

yum update
yum update httpd
yum erase zlib
yum install bzip2-devel

rpm -qa | less 


Using the "chkconfig" command

Inside of your virtual, dedicated, or co-located server, you can use the command 'chkconfig' for package startup management. This allows you to start certain applications automatically when your server boots up.

Examples:

To view all configurable services run:

chkconfig --list

To view a specific application's settings run:

chkconfig --list httpd

To set apache to start on boot run:

chkconfig httpd on

To set apache to NOT start on boot run:

chkconfig httpd off


Using the "service" command

Inside of your virtual, dedicated, or co-located server, you can start and stop certain applications or services using the command 'service'. This allows you to start and stop certain applications manually whenever you choose. This command will often let you view the status of the service as well.

Examples:

To start mysqld run:

service mysqld start

To stop mysqld run:

service mysqld stop

To view the status of mysqld run:

service mysqld status

Of course, if the service comes with another utility you may use that as well, for example, 'apachectl restart'.

Using the "du" command

Inside of your virtual, dedicated, or co-located server, you can utilize the 'du' command to summarize disk usage. Do you have a file somewhere taking up all of your space and don't know how to find it? Use the 'du' command to find it.

Simply start at / and issue 'du -sh *', look for the biggest directory, cd into it and run it again. Repeat the process until you find the problem.

Another command when dealing with more than a screen full of files is 'du -sk * | sort -n', which sorts the output with the biggest files/directories at the bottom, but takes longer and is more resource intense.

du -sh *
du -sk * | sort -n
Views