diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-09-17 16:30:23 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-09-17 16:34:17 +0200 |
commit | b19a6fc772569a9a8d96b0d2818e5e42b9080f68 (patch) | |
tree | e06a59490d43be107c7871a4a9b27be831330393 /pocketHelp.md | |
parent | 23b66c18c0d664e3ac45bd9de419d72dc7f88832 (diff) |
Convert paragraphs to markdown.
Diffstat (limited to 'pocketHelp.md')
-rw-r--r-- | pocketHelp.md | 156 |
1 files changed, 74 insertions, 82 deletions
diff --git a/pocketHelp.md b/pocketHelp.md index 0ca54fe..44c5278 100644 --- a/pocketHelp.md +++ b/pocketHelp.md @@ -11,28 +11,27 @@ ## navigate the file tree -<p><span class="micro">changing directory to <code>dirname</code></span> +<span class="micro">changing directory to <code>dirname</code></span> <code>cd dirname</code> -</p> -<p><span class="micro">move up a directory in the tree</span> + +<span class="micro">move up a directory in the tree</span> <code>cd ..</code> <span class="micro">dont forget you can drag a folder in from the finder to get a path to that directory</span> -</p> -<p><span class="micro">go back to the last directory I was in</span> + +<span class="micro">go back to the last directory I was in</span> <code>cd -</code> -</p> -<p><span class="micro">where am I? (present working directory)</span> + +<span class="micro">where am I? (present working directory)</span> <code>pwd</code> -</p> -<p><span class="micro">list what's in this directory</span> + +<span class="micro">list what's in this directory</span> <code>ls</code> -</p> -<p><span class="micro">now give me more information in the listing</span> + +<span class="micro">now give me more information in the listing</span> <code>ls -lah</code> -</p> -<p><span class="micro">ssh to server</span> + +<span class="micro">ssh to server</span> <code>ssh user@domain.com</code> -</p> --- @@ -40,27 +39,26 @@ ## find <abbr class="amp" title="and">&</abbr> open -<p><span class="micro">list all files recursively in subdomains</span> +<span class="micro">list all files recursively in subdomains</span> <code>find .</code> -</p> -<p><span class="micro">find all files with '<code>.css</code>' in the name</span> + +<span class="micro">find all files with '<code>.css</code>' in the name</span> <code>find . | grep .css</code> -</p> -<p><span class="micro">find the string '<code>prose</code>' in the contents of all the files in this directory</span> + +<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> -</p> -<p><span class="micro">open a file as if you had double clicked it in the finder (mac only)</span> + +<span class="micro">open a file as if you had double clicked it in the finder (mac only)</span> <code>open filename</code> -</p> -<p><span class="micro">open the current directory in the finder</span> + +<span class="micro">open the current directory in the finder</span> <code>open .</code> -</p> -<p><span class="micro">make a directory called <code>dirname</code></span> + +<span class="micro">make a directory called <code>dirname</code></span> <code>mkdir dirname</code> -</p> -<p><span class="micro">create a file called <code>filename</code> if it doesnt exist or update last modified date if it does</span> + +<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> -</p> --- @@ -68,25 +66,24 @@ ## move, remove <abbr class="amp" title="and">&</abbr> copy -<p><span class="micro">move or rename a file or directory</span> +<span class="micro">move or rename a file or directory</span> <code>mv oldname newname</code> -</p> -<p><span class="micro">remove a file</span> + +<span class="micro">remove a file</span> <code>rm filename</code> -</p> -<p><span class="micro">remove a directory and all its contents. <strong>BE VERY CAREFUL!</strong> you could easily delete everything!</span> + +<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> -</p> -<p><span class="micro">copy a file</span> + +<span class="micro">copy a file</span> <code>cp oldfilename newfilename</code> -</p> -<p><span class="micro">copy a directory and everything in it</span> + +<span class="micro">copy a directory and everything in it</span> <code>cp -r olddirname newdirname</code> -</p> -<p><span class="micro">securely copy a file to / on a remote server</span> + +<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> -</p> --- @@ -94,31 +91,29 @@ ## subversion</h2> -<p><span class="micro">check out a repository to the current directory</span> +<span class="micro">check out a repository to the current directory</span> <code>svn co URL .</code> -</p> -<p><span class="micro">update local directory from repository</span> + +<span class="micro">update local directory from repository</span> <code>svn up</code> -</p> -<p><span class="micro">are there new or modified files?</span> +<span class="micro">are there new or modified files?</span> <code>svn status</code> -</p> -<p><span class="micro">add new files to the repository</span> + +<span class="micro">add new files to the repository</span> <code>svn add filename</code> -</p> -<p><span class="micro">remove a file from subversion</span> + +<span class="micro">remove a file from subversion</span> <code>svn remove filename</code> -</p> -<p><span class="micro">mark a previously conflicted file as resolved</span> + +<span class="micro">mark a previously conflicted file as resolved</span> <code>svn resolved filename</code> -</p> -<p><span class="micro">who changed what line number of this file</span> + +<span class="micro">who changed what line number of this file</span> <code>svn blame filename</code> -</p> -<p><span class="micro">commit all changes in this directory</span> + +<span class="micro">commit all changes in this directory</span> <code>svn commit -m "commit msg"</code> -</p> --- @@ -126,25 +121,23 @@ ## subversion <abbr class="amp" title="and">&</abbr> download -<p><span class="micro">is this directory checked out from svn? and where?</span> +<span class="micro">is this directory checked out from svn? and where?</span> <code>svn info</code> -</p> -<p><span class="micro">show everything that has changed</span> + +<span class="micro">show everything that has changed</span> <code>svn diff</code> -</p> -<p><span class="micro">show what has changed in one file</span> + +<span class="micro">show what has changed in one file</span> <code>svn diff filename</code> -</p> -<p><span class="micro">open text editor in order to specify which files to ignore from svn</span> +<span class="micro">open text editor in order to specify which files to ignore from svn</span> <code>svn propedit svn:ignore .</code> -</p> -<p><span class="micro">download a file to the current directory</span> + +<span class="micro">download a file to the current directory</span> <code>wget URL</code> -</p> -<p><span class="micro">show the contents of a file in the terminal</span> + +<span class="micro">show the contents of a file in the terminal</span> <code>curl URL</code> -</p> --- @@ -152,27 +145,26 @@ ## help <abbr class="amp" title="and">&</abbr> information -<p><span class="micro">run any command as root</span> +<span class="micro">run any command as root</span> <code>sudo your-command-here</code> -</p> -<p><span class="micro">get help for any command, eg <code>svn</code></span> + +<span class="micro">get help for any command, eg <code>svn</code></span> <code>svn --help</code> -</p> -<p><span class="micro">how long has this computer been on?</span> + +<span class="micro">how long has this computer been on?</span> <code>uptime</code> -</p> -<p><span class="micro">what is the size of the current directory and all the contents</span> + +<span class="micro">what is the size of the current directory and all the contents</span> <code>du -h</code> -</p> -<p><span class="micro">cancel the command you were currently typing</span> + +<span class="micro">cancel the command you were currently typing</span> <code>ctrl + c</code> -</p> -<p><span class="micro">go to the beginning of the line in the terminal</span> + +<span class="micro">go to the beginning of the line in the terminal</span> <code>ctrl + a</code> -</p> -<p><span class="micro">go to the end of the line in the terminal</span> + +<span class="micro">go to the end of the line in the terminal</span> <code>ctrl + e</code> -</p> --- |