Rob DiNardo - Web Development Tips

Home

Shell

warning: Creating default object from empty value in /var/www/robdinardo.com/public_html/modules/taxonomy/taxonomy.pages.inc on line 34.

Useful Linux Commands

Rob — November 28, 2010 - 22:37

This blog entry is going to be my collection of useful Linux commands that I wish to refer back to in the future. I hope you find them useful as well.

Apache 2, Restart, Stop, Start on Ubuntu Linux

sudo /etc/init.d/apache2 restart

sudo /etc/init.d/apache2 stop

sudo /etc/init.d/apache2 restart

Finding files

Find all files in the home folder (and its subfolders) with a 'txt' extension, sort the results, then output to a file:

find /home -name '*.txt' | sort >> text-files.txt

  • Linux
  • Shell
  • Rob's blog
  • Read more
Syndicate content

User login

  • Request new password

Code

  • WordPress Plugins