<?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>Otak Atik [dot] Com &#187; bash command</title>
	<atom:link href="http://www.otakatik.com/tag/bash-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.otakatik.com</link>
	<description>Empowering Computer</description>
	<lastBuildDate>Wed, 25 Jan 2012 09:06:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nine Helpful UNIX Utilites</title>
		<link>http://www.otakatik.com/nine-helpful-unix-utilites/</link>
		<comments>http://www.otakatik.com/nine-helpful-unix-utilites/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 05:35:10 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[bash command]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/nine-helpful-unix-utilites/</guid>
		<description><![CDATA[This time, I want to share several UNIX Utilities/commands that I use them everyday. Of course, ls, su, sudo are not included because as you know ehm.. ehm sure they are the most &#8216;important&#8217; UNIX commands, at least for me. And hopefully this article may help many Mac OS X users, especially for newbie users&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/logo.png" alt="Logo" title="Logo" /><br />
This time, I want to share several UNIX Utilities/commands that I use them everyday. Of course, <code>ls, su, sudo</code> are not included because as you know ehm.. ehm sure they are the most &#8216;important&#8217; UNIX commands, at least for me. And hopefully this article may help many Mac OS X users, especially for newbie users&#8230;<span id="more-25"></span><br />
And my favorite commands are:<br />
<strong>1. top</strong><br />
This command has function to show table that contains list of program that&#8217;s currently running on your Mac computer (including program that running on background too). And how do to use this command? At console prompt, type <code>top</code> then hit Enter key and to exit from this command type <code>q</code>.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/top_1.jpg" alt="top command" title="top command" /></p>
<p><strong>2. kill</strong><br />
You can force quit a locked program with this command. Yup, you can use the <strong>Activity Monitor</strong> and force quit the locked program with it. But this command can be a helpful command, for example if you want kill program at remote Mac OS X through <strong>telnet</strong>, you can use this command (Sometimes I feel it close faster than using GUI version). Unless you use sudo command, you can kill your &#8216;own&#8217; program. My suggest is run top command first to get program ID number, and type <code>kill -parameter id number</code>. For example if you want close program <strong>Smultron</strong> that has ID number 975 (figure-1) and you want kill it with parameter KILL(non-catchable, non-ignorable) type <code>kill -9 975</code> and Smultron will closed soon.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/kill_2.jpg" alt="kill command" title="kill command" /></p>
<p><strong>3. bc</strong><br />
If you are in UNIX shell environment and you need calculator, it means you need this command. I am very like this command because simple and fast (you are not having to open GUI calculator version or dashboard). To use it just type <code>bc</code> at prompt. And type the expression that want you calculate, for example type <code>2*3</code>. That&#8217;s so simple, isn&#8217;t it? To exit from this command, types quit and then press ENTER.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/bc_3.jpg" alt="bc command" title="bc command" /></p>
<p><strong>4. open</strong><br />
You can open a file or more with its association program or you may open it with your chosen program. For example, if you want open Safari program, just type <code>open -a Safari</code> or you want open file test.htm with Safari just type <code>open -a Safari test.htm</code>. Maybe you think this command isn&#8217;t too useful, but wait for minutes&#8230; you can open all files with specified file name. For example you want open files that containing with word test, just type <code>open -a Safari *test*</code> and then press ENTER. And all files in the folder that have part name &#8220;test&#8221; will opened with Safari. This command can be more powerful if you use it into automated script.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/open_4.jpg" alt="open command" title="open command" /></p>
<p><strong>5. ps</strong><br />
If you look another way to look all the programs that running on your Mac, even it invisible, just type <code>ps -auxw</code> and you will get the detail.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/ps_5.jpg" alt="ps command" title="ps command" /></p>
<p><strong>6. shutdown</strong><br />
You can shutdown your Mac instantly with this command. You need root user for run this command. To use this command just type <code>shutdown -</p>
<parameter> time</parameter></code>, for example if you want shutdown your Mac now, type <code>sudo shutdown -h now</code> and type your administrator password if you asked. You can also use this command to restart the computer, type <code>sudo shutdown -r now</code>.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/shutdown_6.jpg" alt="shutdown command" title="shutdown command" /></p>
<p><strong>7. gzip</strong><br />
This command to compress a file and delete it automatically. For example if you want compress file test.txt, type <code>gzip test.txt</code>. That&#8217;s so simple, isn&#8217;t it?<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/gzip_7.jpg" alt="gzip command" title="gzip command" /></p>
<p><strong>8. tar</strong><br />
If you&#8217;re a UNIX user, maybe you&#8217;re very like with this format if you want combining/compress multiple files. To use it type: <code>tar -cf file.tar destination file/folder</code>. For example if you want to combining file test.htm to test.tar, type <code>tar -cf test.tar test htm</code> and you files will combining them into one file with light speed and if you want combining and compress it type <code>tar -czf test.tar /Document/test</code> so all files inside test folder will combining and compress into test.tar<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0087/tar_8.jpg" alt="tar command" title="tar command" /></p>
<p><strong>9. zip</strong><br />
Zip format is very popular with Windows user. Zip command will combining and compresses them. To use it type <code>zip file_name.zip destination file/folder</code>, for example if you want zip all files inside test folder type into my_file.zip file, type <code>zip my_file.zip /Document/test/</code>. For note:<br />
a. For tar and zip you can zip multiple files with some criteria. For example if you want zip all files that containing word &#8220;s&#8221; in its filename, type <code>zip my_file.zip *s*</code>.<br />
b. If you want get help on each command use <code>info</code> or <code>man</code> command, for example <code>info zip</code> or <code>man gzip</code>.<br />
Hopefully, this article may help you&#8230;.<br />
<em>(article no:0087)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/nine-helpful-unix-utilites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

