XHanch Studio Log in | Register | Cart

Forum

Notifications
Clear all

[Tip] Useful linux CentOS shell commands for server administrator

1 Posts
1 Users
0 Likes
1,416 Views
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
Topic starter
 

Here are common and useful linux CentOS shell commands for server administrator

mkdir <directory name>
Create a new directory

rm -rf <directory name>
Delete directory recursively

chmod -R 755 <directory name or file name>
Change permission recursively to a directory and all files and sub directories in it

chown -R <owner name>:<group name> <dir name>
Change ownership recursively to a directory and all files and sub directories in it

reboot
Reboot/restart server

/usr/local/sbin/pure-ftpd start
Start PureFtpD server

/etc/init.d/mysqld start
Start MySQL server

service named start
Start BIND server

/sbin/service httpd restart
Restart Apache server

top
Show processes details

/etc/init.d/cpanel restart
Restart Cpanel. (If you cannot access your CPanel, it can be caused by your CPanel service stop working)

service crond start
Start cron

 
Posted : 03/03/2011 1:59 am
Share:

× Close Menu