Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux script?

Status
Not open for further replies.

Edward999

Programmer
Dec 26, 2002
112
MY

Is anyone know how to write a linux script? I need to write a script to total up my file size on particular folder.I totally have no idea how to do this.

This script have to run every 5 mminutes using Linux cron job. I have a Linux 8.0 Redhat machine runing at my backend office.

Any link will be useful.

Thanks for any reply.

 
man du
Code:
du -xsk /your/folder
might fit your needs.

Stefan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top