summaryrefslogtreecommitdiff
path: root/pocketHelp.md
diff options
context:
space:
mode:
Diffstat (limited to 'pocketHelp.md')
-rw-r--r--pocketHelp.md96
1 files changed, 48 insertions, 48 deletions
diff --git a/pocketHelp.md b/pocketHelp.md
index 44c5278..36772b0 100644
--- a/pocketHelp.md
+++ b/pocketHelp.md
@@ -11,27 +11,27 @@
## navigate the file tree
-<span class="micro">changing directory to <code>dirname</code></span>
-<code>cd dirname</code>
+<span class="micro">changing directory to `dirname`</span>
+`cd dirname`
<span class="micro">move up a directory in the tree</span>
-<code>cd ..</code>
+`cd ..`
<span class="micro">dont forget you can drag a folder in from the finder to get a path to that directory</span>
<span class="micro">go back to the last directory I was in</span>
-<code>cd -</code>
+`cd -`
<span class="micro">where am I? (present working directory)</span>
-<code>pwd</code>
+`pwd`
<span class="micro">list what's in this directory</span>
-<code>ls</code>
+`ls`
<span class="micro">now give me more information in the listing</span>
-<code>ls -lah</code>
+`ls -lah`
<span class="micro">ssh to server</span>
-<code>ssh user@domain.com</code>
+`ssh user@domain.com`
---
@@ -40,25 +40,25 @@
## find <abbr class="amp" title="and">&amp;</abbr> open
<span class="micro">list all files recursively in subdomains</span>
-<code>find .</code>
+`find .`
-<span class="micro">find all files with '<code>.css</code>' in the name</span>
-<code>find . | grep .css</code>
+<span class="micro">find all files with '`.css`' in the name</span>
+`find . | grep .css`
-<span class="micro">find the string '<code>prose</code>' in the contents of all the files in this directory</span>
-<code>grep -r "prose" .</code>
+<span class="micro">find the string '`prose`' in the contents of all the files in this directory</span>
+`grep -r "prose" .`
<span class="micro">open a file as if you had double clicked it in the finder (mac only)</span>
-<code>open filename</code>
+`open filename`
<span class="micro">open the current directory in the finder</span>
-<code>open .</code>
+`open .`
-<span class="micro">make a directory called <code>dirname</code></span>
-<code>mkdir dirname</code>
+<span class="micro">make a directory called `dirname`</span>
+`mkdir dirname`
-<span class="micro">create a file called <code>filename</code> if it doesnt exist or update last modified date if it does</span>
-<code>touch filename</code>
+<span class="micro">create a file called `filename` if it doesnt exist or update last modified date if it does</span>
+`touch filename`
---
@@ -67,23 +67,23 @@
## move, remove <abbr class="amp" title="and">&amp;</abbr> copy
<span class="micro">move or rename a file or directory</span>
-<code>mv oldname newname</code>
+`mv oldname newname`
<span class="micro">remove a file</span>
-<code>rm filename</code>
+`rm filename`
<span class="micro">remove a directory and all its contents. <strong>BE VERY CAREFUL!</strong> you could easily delete everything!</span>
-<code>rm -rf dirname</code>
+`rm -rf dirname`
<span class="micro">copy a file</span>
-<code>cp oldfilename newfilename</code>
+`cp oldfilename newfilename`
<span class="micro">copy a directory and everything in it</span>
-<code>cp -r olddirname newdirname</code>
+`cp -r olddirname newdirname`
<span class="micro">securely copy a file to / on a remote server</span>
-<code>scp file user@domain.com:</code>
-<span class="micro">you can also copy a directory using <code>scp -r</code></span>
+`scp file user@domain.com:`
+<span class="micro">you can also copy a directory using `scp -r`</span>
---
@@ -92,28 +92,28 @@
## subversion</h2>
<span class="micro">check out a repository to the current directory</span>
-<code>svn co URL .</code>
+`svn co URL .`
<span class="micro">update local directory from repository</span>
-<code>svn up</code>
+`svn up`
<span class="micro">are there new or modified files?</span>
-<code>svn status</code>
+`svn status`
<span class="micro">add new files to the repository</span>
-<code>svn add filename</code>
+`svn add filename`
<span class="micro">remove a file from subversion</span>
-<code>svn remove filename</code>
+`svn remove filename`
<span class="micro">mark a previously conflicted file as resolved</span>
-<code>svn resolved filename</code>
+`svn resolved filename`
<span class="micro">who changed what line number of this file</span>
-<code>svn blame filename</code>
+`svn blame filename`
<span class="micro">commit all changes in this directory</span>
-<code>svn commit -m "commit msg"</code>
+`svn commit -m "commit msg"`
---
@@ -122,22 +122,22 @@
## subversion <abbr class="amp" title="and">&amp;</abbr> download
<span class="micro">is this directory checked out from svn? and where?</span>
-<code>svn info</code>
+`svn info`
<span class="micro">show everything that has changed</span>
-<code>svn diff</code>
+`svn diff`
<span class="micro">show what has changed in one file</span>
-<code>svn diff filename</code>
+`svn diff filename`
<span class="micro">open text editor in order to specify which files to ignore from svn</span>
-<code>svn propedit svn:ignore .</code>
+`svn propedit svn:ignore .`
<span class="micro">download a file to the current directory</span>
-<code>wget URL</code>
+`wget URL`
<span class="micro">show the contents of a file in the terminal</span>
-<code>curl URL</code>
+`curl URL`
---
@@ -146,25 +146,25 @@
## help <abbr class="amp" title="and">&amp;</abbr> information
<span class="micro">run any command as root</span>
-<code>sudo your-command-here</code>
+`sudo your-command-here`
-<span class="micro">get help for any command, eg <code>svn</code></span>
-<code>svn --help</code>
+<span class="micro">get help for any command, eg `svn`</span>
+`svn --help`
<span class="micro">how long has this computer been on?</span>
-<code>uptime</code>
+`uptime`
<span class="micro">what is the size of the current directory and all the contents</span>
-<code>du -h</code>
+`du -h`
<span class="micro">cancel the command you were currently typing</span>
-<code>ctrl + c</code>
+`ctrl + c`
<span class="micro">go to the beginning of the line in the terminal</span>
-<code>ctrl + a</code>
+`ctrl + a`
<span class="micro">go to the end of the line in the terminal</span>
-<code>ctrl + e</code>
+`ctrl + e`
---