My Useful SSH commands

VIEW LOGS

email:

error:

access:

CLEAN LOGS

for CPANEL:

for PLESK:

REMOVE FILES/DIRECTORIES

How to delete an entire directory via SSH | Posted on March 31, 2008 by Dusty Reagan
I know this is probably common knowledge to Linux and Unix geeks. But every time I need to remove a directory with files in my NearlyFreeSpeech.Net SSH terminal I end up having to google for the command. So here it is for anyone else who’s out there googling!

rm -r -f YourDirectoryPathGoesHere
rm = remove / delete
-r = recursively deletes the directory and all files in it, including subdirectories
-f = will not ask for confirmation before deleting

My suggestion:

SEARCH/FIND

Search anywhere in the server.

MALWARE DETECT

Scan all domains:

Scan one domain:

Get the logs.

RESOURCES

(Plesk) Logs and configuration files.

http://kb.parallels.com/en/111283

Common SSH Commands

http://kb.mediatemple.net/questions/247/Common+SSH+Commands#gs

Share if you like...Share on FacebookTweet about this on TwitterShare on Google+Pin on PinterestShare on TumblrEmail this to someone

Leave a Reply