<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OSX Hosting &#187; -la</title>
	<atom:link href="http://osxhosting.com/osxhosting/tag/la/feed" rel="self" type="application/rss+xml" />
	<link>http://osxhosting.com/osxhosting</link>
	<description>Anything to do with hosting from mac OS X servers!</description>
	<lastBuildDate>Fri, 13 Aug 2010 17:21:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Basic Command Line Utilities, Tips, &amp; Commands</title>
		<link>http://osxhosting.com/osxhosting/basic-command-line-utilities-tips-commands#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://osxhosting.com/osxhosting/basic-command-line-utilities-tips-commands#comments</comments>
		<pubDate>Wed, 20 Feb 2008 17:04:32 +0000</pubDate>
		<dc:creator>montanaflynn</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[-la]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[dir]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[pid]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://macosxhosting.wordpress.com/?p=22</guid>
		<description><![CDATA[Many Mac users avoid the command line altogether, a reasonable amount probably don’t even know it exists. For the curious out there, here are some basic and essential commands and functionalities to know if you want to get started using the Mac OS X Terminal. We’ll cover simple file manipulation, maneuvering in the file system, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://osxdaily.com/images/terminal.jpg" style="float:left;margin-right:12px;" /> Many Mac users avoid the command line altogether, a reasonable amount probably don’t even know it exists. For the curious out there, here are some basic and essential commands and functionalities to know if you want to get started using the Mac OS X Terminal. We’ll cover simple file manipulation, maneuvering in the file system, displaying and killing processes, and more. Remember to remove the brackets or the commands won’t work.<span id="more-24"></span></p>
<h3>The Basics</h3>
<ul>
<li><code>ls -la</code> list all contents of a directory including hidden files</li>
<li><code>cd [directory]</code> move to the specified directory, cd /Applications will move to your applications folder</li>
<li><code>mv [file1] [file2]</code> mv is able to rename files or move them, depending on usage</li>
<li><code>cp [file] [destination]</code> copies a file to either a new filename or destination</li>
<li><code>cat [file] | more</code> display contents of a file screen by screen by ‘piping’ the contents through more</li>
<li><code>touch [file]</code> creates a file with the given name, eg: touch test.txt will create a blank text file</li>
<li><code>top</code> display a continuously updated list of all running processes, including memory and cpu usage, PID is the process ID which you would use to kill a process</li>
<li><code>ps -aux</code> list all processes running from all users, -ux will list only processes of current user</li>
<li><code>kill -9 [pid]</code> kill the specified process id (basically force quit for the command line)</li>
<li><code>rm [file]</code> rm removes the specified file or directory, there is no warning so use with caution</li>
<li><code>ping [ip]</code> determine network latency by pinging another host</li>
</ul>
<h3>General Usability Tips</h3>
<ul>
<li>Use the tab key, the tab key will autocomplete directories and filenames for you</li>
<li>Enable colored terminal, this makes it easier to browse through large amounts of files</li>
<li>If a command confuses you, try running it with the –help flag, which will often display basic instructions on the given command</li>
<li>Remember manual pages exist on many commands as well, access them by typing <code>man [command]</code>, eg: man ping</li>
<li>If the output of a command flies by you and is too much to fit on one screen, try piping it through more, like so: <code>ls -la |more</code> this will enable you to see the output a screen at a time</li>
<li>You can export the contents of a file, output of a command, and results of a script to a text file using the alligators (improper terminology, excuse my forgetfulness), eg: <code> ls -la /Applications &gt; applist.txt</code></li>
<li>If you’ve ever noticed your CPU load skyrocket inappropriately, a good place to find the errant process is with the <code>top</code> command, use top in conjection with <code>kill</code> to find the process ID and kill the CPU hog</li>
<li>Don’t be afraid to get your hands dirty!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://osxhosting.com/osxhosting/basic-command-line-utilities-tips-commands/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
