Differences between revisions 1 and 2
Revision 1 as of 2006-09-26 04:31:35
Size: 392
Editor: julius
Comment:
Revision 2 as of 2006-09-26 04:38:41
Size: 941
Editor: DannyCheung
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== List of useful commands that don't have a place elsewhere == = List of useful commands that don't have a place elsewhere =
Line 3: Line 3:
==== Command to reset Microsoft Outlook inbox and other settings when it screws up and won't start: ==== == Outlook ==

R
eset Microsoft Outlook inbox and other settings when it screws up and won't start:
Line 7: Line 9:
Reference at [http://office.microsoft.com/en-gb/assistance/ha010347711033.aspx] Reference at http://office.microsoft.com/en-gb/assistance/ha010347711033.aspx


== Linux ==
Finding files that have not been modified for more than N days:
{{{
find <directory> -mtime +N}}}
Deleting files that have not been modified for more than N days (Will not delete files that begin with a . (dot):
{{{
 find <directory> -mtime +N -type f | fgrep -v '/.' | { while read x; do /bin/rm -v "$x"; done; } }}}

== Windows ==
Creating a service:
{{{
sc.exe create <ServiceName> binPath= <ProgramPath> }}}
Starting a service:
{{{
sc.exe start <ServiceName> }}}
Deleting a service:
{{{
sc.exe delete <ServiceName> }}}

List of useful commands that don't have a place elsewhere

Outlook

Reset Microsoft Outlook inbox and other settings when it screws up and won't start:

"C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE" /Cleanfinders /CleanSchedPlus /CleanViews /Profiles /ResetFolders /Safe

Reference at http://office.microsoft.com/en-gb/assistance/ha010347711033.aspx

Linux

Finding files that have not been modified for more than N days:

find <directory> -mtime +N

Deleting files that have not been modified for more than N days (Will not delete files that begin with a . (dot):

 find <directory> -mtime +N -type f | fgrep -v '/.' | { while read x; do /bin/rm -v "$x"; done; } 

Windows

Creating a service:

sc.exe create <ServiceName> binPath= <ProgramPath> 

Starting a service:

sc.exe start <ServiceName> 

Deleting a service:

sc.exe delete <ServiceName> 

RandomUsefulCommands (last edited 2013-09-18 06:09:34 by localhost)