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 *


× one = 1

  • 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

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

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

Feed

  • Listened to Deceleration - Techno Animal.
  • Listened to Food For Thought - Schizoid.
  • Listened to You're a Hero - Patric Catani.

Connect

connect Twitterconnect LinkedInconnect Deliciousconnect Vimeoconnect Last.fmconnect Soundcloud

Design & code by bruzed. Powered by Wordpress