Looks like you're using Internet Explorer 7.0. For a better browsing experience either upgrade your browser or get a better one like Chrome.

bruzed

  • About
  • Portfolio
  • Archives
  • Contact
03
09.09

Terminal commands

0
Posted in Code Tagged svn, terminal

Basic SVN and other terminal commands that I use all the time!

#-----------------
# Import db
#-----------------
$ ./mysql -u root --password=root dbname < sqlfilename.sql

#-----------------
# Export db
#-----------------
$ ./mysqldump -u root --password=root dbname > dbbackupname.sql

#-----------------
# List hidden files
#-----------------
$ ls -a
$ ls -la

#-----------------
# Delete file/folders
#-----------------
$ rm -rfi [path/filename]

#-----------------
# Untar files
#-----------------
$ tar -zxvf filename.tar.gz

#-----------------
# Tar files
#-----------------
$ tar cjf filename.tar.bz2 /path/to/drupal/

#-----------------
# list file permissions
#-----------------
$ ls -l
$ sudo chmod 777 file.name

#-----------------
# copy directory
#-----------------
$ cp -rp /path/to/directory /path/to/backupdir

#-----------------
# start svn server
#-----------------
$ sudo -u www /sw/bin/svnserve -d -r /Users/al/svnrepo

#-------------------
# checkout a project
#-------------------
$ svn checkout svn://localhost/project1

#---------------
# basic commands
#---------------
$ svn up             # update
$ svn add [file]     # add
$ svn ci -m "msg"    # commit
$ svn log

#--------------------------
# file/directory management
#--------------------------
$ svn copy foo bar
$ svn mkdir foo
$ svn mv foo bar
$ svn rm foo

#------
# other
#------
$ svn status
$ svn diff
$ svn revert
$ svn info
$ svn list URL
$ svn list svn://localhost/

from: Basic SVN commands | devdaily.com.

Share|

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


8 + = fifteen

  • Categories

    • Code
    • Experiments
    • Interesting People/Work
    • Medium
      • Installation
      • Light
      • Physical
      • Platform
      • Print
      • Projection
      • Sound
      • Video
      • Web
    • Podcasts
    • Portfolio
    • Portfolio Archive
    • Press & Recognition
    • Prototypes
    • Thesis
    • Tools
    • Type
      • 3D
      • A/V Systems and Machines
      • Application
      • Audio Synthesis
      • Computer Vision
      • Data Visualization
      • Game Design
      • Information Design
      • Interactive Design
      • Interface Design
      • Musical Instrument
      • Performance
      • Physical Computing
      • Sound Design
      • Visual Design
      • Web Development
      • Wordpress Plugin
      • Wordpress Theme
  • Recent Posts

    • Transmutation
    • Field Internships in Information Design
    • TweetCatcha on The Huffington Post
    • Shredboard semifinalist in 2010 Adobe Design Achievement Awards
    • social sqncr @ ART|SCI, CNSI, UCLA
    • social sqncr
    • social sqncr @ MIT
    • Hypnagogia
    • social sqncr on typeslashcode blog
    • social sqncr @ onezero 2010
  • Tags

    vsti XML openCV BBPress Illustrator picchip Newswire svn processing mrmr max/msp/jitter C++ Photoshop arduino OSCemote Python Javascript PHP waveshield AIR osc Maya audacity speakjet HTML supercollider YouTube API terminal Flash jQuery GuitarRig iphone imovie second life git runes of magic After Effects OpenFrameworks openGL MySQL Ableton Live CSS Wordpress Plugin API Wordpress API Google Maps API reaktor PyGame garageband NYTimes Yahoo! Weather API actionscript last.fm Flex Builder
  • People

    • Adrienne Michetti
    • Allyscope
    • Baxter Crabtree
    • Claytical
    • David Calvo
    • Denise Flasz
    • GreyC
    • Hilary Fenton
    • Jen Cotton
    • Joe Saavedra
    • Kunal D. Patel
    • Lawrence Mascia
    • Nick Hardeman
    • Rupa DasGupta
    • sava
    • umi
    • Vargatron
  • Archives

    • January 2012
    • January 2011
    • November 2010
    • August 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • April 2008
    • March 2008
    • December 2007

Recent Stuff

  • Transmutation
  • Field Internships in Information Design
  • TweetCatcha on The Huffington Post
  • Shredboard semifinalist in 2010 Adobe Design Achievement Awards
  • social sqncr @ ART|SCI, CNSI, UCLA

Tags

reaktor processing max/msp/jitter OpenFrameworks Photoshop garageband AIR git osc PHP speakjet XML API openGL Python Google Maps API Flash PyGame svn second life terminal HTML supercollider audacity openCV OSCemote BBPress MySQL Wordpress CSS arduino actionscript C++ picchip Flex Builder Javascript Maya Illustrator Wordpress Plugin API jQuery

Feed

  • Listened to Insurrection - Lamb of God.
  • Listened to Cheated - Lamb of God.
  • Listened to Invictus - Lamb of God.

Connect

connect Twitterconnect LinkedInconnect Deliciousconnect Vimeoconnect Last.fmconnect Soundcloud

Design & code by bruzed. Powered by Wordpress