Category: Terminal Articles
BACK
Mar 23 2014 9:00 AM MAR 23 2014 9:00 AM

Comparing two directories for missing directories

Ubuntu | Terminal

I am working on a backup process for my wife's business. The problem we kee facing is, "Did we back this up?" and "We don't need to back everything up..." Part of this process I am working on is to insure that nothing goes missing... This command helps to make sure of this..

 

diff -q --exclude="Fantom" /Users/myusername/directory/ /Volumes/backup/ | grep "Only in" | grep "myusername" > out.txt

Read More
Mar 14 2014 4:00 PM MAR 14 2014 4:00 PM

Recursively find files and move them to another directoryFind files and move them to another directory

Unix | Ubuntu | Linux | Terminal

I had some software that made individual directories for each day of the month a picture was in... Needless to say that was annoying. So I needed to pull them out and place them into one directory...

find /path/to/files/ -iname "*.jpg" -type f -exec mv {} /path/to/where/you/want/them ;

Read More
Mar 1 2014 5:00 PM MAR 1 2014 5:00 PM

Find specific file types in Terminal

Unix | Ubuntu | Linux | Terminal
find . -name '*.cr2' -o -name '*.CR2' > cr2s.txt

Read More
Jan 8 2014 8:00 PM JAN 8 2014 8:00 PM

Dumping a mysql database that is on a different hostmysqldump

MySQL | Unix | Ubuntu | Linux | Terminal

Basically had an issue with phpmyadin and needed to get a decent dump of someones database. Problem is they setup restrictions on ip addresses so I had to be a bit creative. Most my normal tools such as SQL pro could not connect around all this (At lease to my best effort.)

  

mysqldump -h mysql.yourserver.com -u mysql_user -p database_name table_name

Read More
Apr 20 2011 2:00 PM APR 20 2011 2:00 PM

Dance InformaDance News Website

CSS | HTML | Javascript | PHP | MySQL | Reviews | Linux | Custom Frame Work | Terminal

Dance Informa
aus.danceinforma.com
usa.danceinforma.com

  • Custom Frame Work
  • CMS that controls both sites.
  • Banner System
  • Email Campaigns
  • Content Types to breakup page types.
  • Membership System

Read More

Tweets

Social Media

Categories