Unix » Terminal Commands

Linux Search For String In Files

Open terminal
CD in to the directory that you wish to search.
grep -Rils ‘hello world’ *
OR try this:
|find . -type f -exec grep -iH ‘puttexthere’ {} \;|

Posted by Mark on August 13th, 2009 under Terminal Commands  •  No Comments

XAMPP Start / Stop Apache PHP etc

Must be logged in as root. See here

/opt/lampp/lampp start
/opt/lampp/lampp stop

Posted by Mark on July 13th, 2009 under Terminal Commands  •  No Comments

Log In As Root

In termial:

sudo -s

Posted by Mark on July 13th, 2009 under Terminal Commands  •  1 Comment

kill A Process

kill $(pgrep firefox)

Posted by Mark on April 30th, 2009 under Terminal Commands  •  No Comments