Basic Shell Commands


Basic Shell Commands

Listing the most commonly used shell commands.

> df

Will show disk free

> du -sh

Will show disk usage from your current location, recursive

> ll

Long list of folder contents

> egrep 'wp-login.php' /usr/local/apache/domlogs/* | grep -v ftp_log | awk -F : '{print $1}' | awk {print $1}' | sort | uniq -c | sort -n

Used to show how many times wp-login.php has hit the domain access logs - change the wp-login.php to whatever you are looking for.

 

 

 

 

Last update:
2014-11-18 17:48
Author:
Admin
Revision:
1.9
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.