Nooruu - www.nooruu.com
Common SSH Commands 1)- File Editing SSH Commands useful for editing files via Shell • cd - change directory, “cd /usr/local apache” • pico - file editor, “pico /home/think/www/file.html” • nano - another file editor, same syntax as pico • rm - delete a file, “rm /usr/bin/filename.txt” • ls- lists all files in the current directory • crontab - u username -e - edit the cronjobs of a user
2)- Management Commands useful for managing accounts and the server in general • top - gives a realtime view of server activity (press “q” to close) • /scripts/suspendacct (Suspends a cPanel users account) • netstat -n -p - Allows you to see all connected users and services • /scripts/simpleps - Prints out a simple process list, easier to read than “top” • /scripts/admin - Run a lite version of WHM • /scripts/ipusage - Displays an IP Usage Report
3)- Services Commands for managing services running on the server • service servicename start/restart/stop - (ex: “service lfd stop”) • Common Services: chkservd, crond, exim, httpd, lfd, csf, mysql, named, proftpd, cpanel, bandmin