Useful centos command

Useful centos command

How to remove webmin ?

Ans. Remove using “yum remove” command

[root@centos6 ~]# yum remove webmin

Updating Your System

[root@centos6 ~]# yum update

Restart or Reboot Your System

[root@centos6 ~]# reboot

How to CWP install ?
Update system

[root@centos6 ~]# yum update

Start Mysql

[root@centos6 ~]# /etc/init.d/mysqld start

Installer with MySQL version 5.1

[root@centos6 ~]# 
cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest
sh cwp-latest

To compress a file with zip, type the following:

 zip -r filename.zip files 

To extract the contents of a zip file, type:

unzip filename.zip

To copy a file from B to A while logged into B:

scp /path/to/file username@a:/path/to/destination 
Example: scp /home/folder.zip root@IP:/home/

To move file or folder

 mv /file path/ /destination path/ 
Example: mv /home/wp-acontent/ /home/public_html/user/

Leave a Reply