<?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>Talk Binary &#187; terminal commands</title>
	<atom:link href="http://talkbinary.com/tag/terminal-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://talkbinary.com</link>
	<description>Programming Resources, Technology, Computers</description>
	<lastBuildDate>Wed, 15 Feb 2012 16:01:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Basic Linux Terminal Commands</title>
		<link>http://talkbinary.com/linux/basic-linux-terminal-commands/</link>
		<comments>http://talkbinary.com/linux/basic-linux-terminal-commands/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 23:04:07 +0000</pubDate>
		<dc:creator>Diego</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[terminal commands]]></category>

		<guid isPermaLink="false">http://talkbinary.com/?p=106</guid>
		<description><![CDATA[If you are new to Linux and it&#8217;s terminal, you might be wondering how to move around? I&#8217;ll show you how with some basic terminal commands. Below I&#8217;ll list a few examples with comments denoted by # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18<a class="moretag" href="http://talkbinary.com/linux/basic-linux-terminal-commands/">&#160;&#160;Full Article&#8230;</a>
]]></description>
			<content:encoded><![CDATA[<p>If you are new to Linux and it&#8217;s terminal, you might be wondering how to move around? I&#8217;ll show you how with some basic terminal commands.<br />
<br/><br />
<center><img src="http://talkbinary.com/wp-content/uploads/2008/06/terminalcommands1.jpg" alt="" title="terminalcommands1" width="500" height="168" class="alignnone size-full wp-image-108" /></center></p>
<p><br/>Below I&#8217;ll list a few examples with comments denoted by #<span id="more-106"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Displays contents in folder</span>
<span style="color: #c20cb9; font-weight: bold;">ls</span> 
&nbsp;
<span style="color: #666666; font-style: italic;"># Changes Directory </span>
<span style="color: #7a0874; font-weight: bold;">cd</span> FOLDERNAME
&nbsp;
<span style="color: #666666; font-style: italic;"># Go up one directory</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
&nbsp;
<span style="color: #666666; font-style: italic;"># Go to your home directory</span>
<span style="color: #7a0874; font-weight: bold;">cd</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Make directory</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> FOLDERNAME
&nbsp;
<span style="color: #666666; font-style: italic;"># Remove a file</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">--</span> FILENAME
&nbsp;
<span style="color: #666666; font-style: italic;"># Copy a file</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> ORIGINALFILE NEWFILE
&nbsp;
<span style="color: #666666; font-style: italic;"># Move a file</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> SOURCE DESTINATION
&nbsp;
<span style="color: #666666; font-style: italic;"># Install Program in Ubuntu and other Linux Distros</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> PROGRAMNAME
&nbsp;
<span style="color: #666666; font-style: italic;"># To run a program you usually specify the name, </span>
<span style="color: #666666; font-style: italic;"># if text editor, its usually name of program and </span>
<span style="color: #666666; font-style: italic;"># text file to create, if no file is specified, the text editor still opens.</span>
firefox
emacs hello_world.cpp
&nbsp;
<span style="color: #666666; font-style: italic;"># Compile a program using g++ </span>
<span style="color: #c20cb9; font-weight: bold;">g++</span> hello_world.cpp
&nbsp;
<span style="color: #666666; font-style: italic;"># Execute program </span>
.<span style="color: #000000; font-weight: bold;">/</span>PROGRAMNAME</pre></td></tr></table></div>

<p><br/>An example of finding help for a certain command is the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">man</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span></pre></td></tr></table></div>

<p><br/>The <b>man</b> command will give you the manual page for a given command.<br />
<br/></p>
<h3 id="section-1">Example using the terminal</h3>
<p>Let&#8217;s say we want to view the contents of a folder, create a folder called Example, create a text file using emacs, compile it, run it, and go back to our home directory. To do this, we would simply do the following.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> C++
<span style="color: #7a0874; font-weight: bold;">cd</span> C++
emacs hello_world.cpp
<span style="color: #c20cb9; font-weight: bold;">g++</span> hello_world.cpp
.<span style="color: #000000; font-weight: bold;">/</span>a.out 
<span style="color: #7a0874; font-weight: bold;">cd</span></pre></td></tr></table></div>

<p><br/>Yes there are numerous ways to achieve this, its just a matter of how you want to navigate the terminal.<br />
<br/></p>
<h3 id="section-2">What now?</h3>
<p><br/>If you feel another basic command needs to be here or need more help, simply drop in a line in the comments box! I&#8217;ll be sure to put it down.<br />
<br/>Expect advanced terminal commands in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkbinary.com/linux/basic-linux-terminal-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: talkbinary.com @ 2012-05-24 15:38:48 -->
