<?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>NewSourceMedia Blog &#187; terminal</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Mon, 07 May 2012 01:26:28 +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>Top 10 useful SSH terminal commands.</title>
		<link>http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/</link>
		<comments>http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 02:30:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[virtual server]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=813</guid>
		<description><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/"><img title="Top 10 useful SSH terminal commands." src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/img_Terminal1-300x300.png" alt="Top 10 useful SSH terminal commands." width="0" height="200" /></a></span><br/>Now that you have a virtual server setup, you can enjoy the benefits of managing your server as root (super admin). With root level access, you can send commands to your server using a bash terminal. Here are the common &#8230; <a href="http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/"><img title="Top 10 useful SSH terminal commands." src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/img_Terminal1-300x300.png" alt="Top 10 useful SSH terminal commands." width="0" height="200" /></a></span><br/><a href="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/img_Terminal1.png"><img class="alignnone size-medium wp-image-815" title="img_Terminal" src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/img_Terminal1-300x300.png" alt="" width="300" height="300" /></a>

Now that you have a virtual server setup, you can enjoy the benefits of managing your server as root (super admin). With root level access, you can send commands to your server using a bash terminal. Here are the common commands:
<ul>
	<li><strong>man</strong> - stands for manual. Very useful command if you are just getting started with Linux. You can invoke 'man', followed by any other Linux command (cd, for example) and it will display detailed description and list of all available options.</li>
	<li><strong>cd</strong> - cd is short for 'change directory'. Allows browsing between different folders of your VPS.</li>
	<li><strong>cp, mv, rm</strong> - great commands for basic file management. You can copy (cp), move (mv) or remove (rm) files/folders this way from your server.</li>
	<li><strong>grep</strong> - grep permits you to print lines that match a particular pattern. Useful if you are looking for a phrase or or line in a large text file (logs, for example).</li>
	<li><strong>ls</strong> - allows you to list the content of a directory. Using "ls -la" will also show you hidden files/directories (those starting with a dot) and additional attributes, such as permissions and ownership.</li>
	<li><strong>chown, chmod</strong> - every file or directory has its own ownerhip rights - user and group. With "chown" you can modify those parameters and "chmod" gives you the ability to change permissions (read, write, execute) for the owner, group and the rest of the users, accessing that file/directory.</li>
	<li><strong>nano, vi </strong>- "nano" and "vi" are probably the two most popular Linux text editors. You may find "nano" easier to use, while "vi" appears as the preferred editor among more experienced.</li>
	<li><strong>top, ps</strong> - "top" provides you with a periodic update (every five seconds by defaut) of running Linux tasks, while "ps" takes a snapshot of all current processes and prints it on your screen.</li>
	<li><strong>df -h, du -hs </strong>- shows you the current overall use of your disk in gygabytes (df -h)."du -hs" calculates the total size of a directory in a human readable format (e.g., 1K 234M 2G).</li>
</ul>
Here are <strong>two bonus</strong> commands for checking <strong>DESK SPACE</strong> and <strong>RAM</strong> usages:

To check out the disk space usage on your server, execute this command:
<strong>df -h</strong>
And to see the memory usage:
<strong>free -m</strong>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t delete file on external hard drive &#8211; Mac</title>
		<link>http://newsourcemedia.com/blog/cant-delete-file-on-external-hard-drive-mac/</link>
		<comments>http://newsourcemedia.com/blog/cant-delete-file-on-external-hard-drive-mac/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 02:04:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[exteranl hard drive]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=627</guid>
		<description><![CDATA[I ran out of space on my external hard drive so I selected some folder file and pressed command-delete on my keyboard. They files looked as if though they were deleted but I notice the available space did not budge. &#8230; <a href="http://newsourcemedia.com/blog/cant-delete-file-on-external-hard-drive-mac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[I ran out of space on my external hard drive so I selected some folder file and pressed command-delete on my keyboard. They files looked as if though they were deleted but I notice the available space did not budge. I knew right than it was time to whip out the terminal to force the hard drive in to submission.

1) Type these command into Terminal window. MAKE SURE TO replace "disk" with the name of your external drive. If you have a problem creating a path to your external hard drive, type "cd" than a space and drag the icon of your hard drive to the terminal window. A path will be filled in automatically.

<strong>Code:</strong>
<em>
cd /Volumes/disk</em>

2) Type out the remove command on then hidden trash directory.

<strong>Code:</strong>

<em>sudo rm -rf .Trashes</em>

3) It will ask you for your password. You will not see your password as you type for extra security. Once you are done,  press enter.

<strong>Code:</strong>

Password:

If you have a lot of files that needed deleting (ex: over 20GB) you may notice a dalyed response. If so, just keep an eye on the drive's avalible memory and you will notice a gradual increase of space right before your vary eyes.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/cant-delete-file-on-external-hard-drive-mac/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to backup MySQL Database via SSH</title>
		<link>http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/</link>
		<comments>http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 02:44:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[MySQL / Database]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/</guid>
		<description><![CDATA[First you log in using your terminal application by typing the flowing SSH command: ssh yourusername@hostname-or-ipaddress After that, you will be prompted to enter your password. As you enter your password, the text will be hidden. Next we should switch &#8230; <a href="http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[First you log in using your terminal application by typing the flowing SSH command:

ssh yourusername@hostname-or-ipaddress

After that, you will be prompted to enter your password. As you enter your password, the text will be hidden. Next we should switch to the "root" user. You can do so by typing the following in your terminal window:

su - root

You will have to enter a password once more. Now navagate to where you would like to store your MySQL database file. For an example of changing the directory to the "public_html" direcotry, type this:

cd /var/www/html_public

Now you can back up your db here using the following command. This command will backup all of your databases. I also chose to compress them after the pipe "|" as a gzip file. Type the following but be sure to change the user name and password to your info:

mysqldump -u yourusername -p yourpassword --all-databases | gzip &gt;databasebackup.sql.gz

You can also target single database using the following:

mysqldump -u yourUserName -p yourDBName | gzip &gt;databasebackup.sql.gz]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eject or Unmount a disk through the Terminal</title>
		<link>http://newsourcemedia.com/blog/eject-or-unmount-a-disk-through-the-terminal/</link>
		<comments>http://newsourcemedia.com/blog/eject-or-unmount-a-disk-through-the-terminal/#comments</comments>
		<pubDate>Fri, 02 Jul 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Terminal]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[eject]]></category>
		<category><![CDATA[mount drive]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[resart]]></category>
		<category><![CDATA[stuck.]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[unmount]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/eject-or-unmount-a-disk-through-the-terminal/</guid>
		<description><![CDATA[Having problem unmounting your disk. Here is an alternative to restarting your computer to eject your unresponding disk. Having problem unmounting your disk? Try using your Terminal application before restarting. Open the Terminal application. Then type 'df'. This will display &#8230; <a href="http://newsourcemedia.com/blog/eject-or-unmount-a-disk-through-the-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Having problem unmounting your disk. Here is an alternative to restarting your computer to eject your unresponding disk.
<span id="more-193"></span>
Having problem unmounting your disk? Try using your Terminal application before restarting.
<ol>
	<li>Open the Terminal application.</li>
	<li>Then type 'df'. This will display a list of all mounted disk items.</li>
	<li>Find the disk you want to eject.</li>
	<li>The disk I was looking to unmount displayed like this:
"/dev/disk1s1s2 208484 208484 0 100% /Volumes/Alex Model Pix".</li>
	<li>Above you see first a Unix name "/dev/disk1s1s2" followed by the      CD volume name "/Volumes/Alex Model Pix".</li>
	<li>Now type "hdiutil eject FullUnixName" to eject it.</li>
	<li>Example: "hdiutil eject /dev/disk1s1s2".</li>
</ol>
That's it. If this does not work. Just restart or poke a pin inside the hidden    eject hole by the disk tray if there is one.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/eject-or-unmount-a-disk-through-the-terminal/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Basic Terminal Commands</title>
		<link>http://newsourcemedia.com/blog/basic-terminal-commands/</link>
		<comments>http://newsourcemedia.com/blog/basic-terminal-commands/#comments</comments>
		<pubDate>Mon, 30 Jun 2003 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[computer terminal]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[terminal application]]></category>
		<category><![CDATA[utillity]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2003/06/29/basic-terminal-commands/</guid>
		<description><![CDATA[Here are a few common Terminal Commands I found to be useful for OSX/Unix newcomers like myself. Introduction: There are times that you’ll need to use the Terminal Command-Line Interface (CLI), especially when troubleshooting. Here are a few common Terminal &#8230; <a href="http://newsourcemedia.com/blog/basic-terminal-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Here are a few common Terminal Commands I found to be useful for OSX/Unix newcomers like myself.
<span id="more-254"></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><strong>Introduction:</strong></span>

<strong></strong>There are times that you’ll need to use the Terminal Command-Line Interface    (CLI), especially when troubleshooting.

Here are a few common Terminal Commands I found to be useful for OS X/Unix newcomers    like myself.

<strong>Preparation:</strong>

<strong></strong>Before we start, open the application called TextEdit in the Applications    directory. Change the format to “Make Plain Text” from the “Format”    menu (note that this tutorial works with the “Make Rich Text” format    as well with a “.rtf” extension; however, I prefer the “.txt”    extension because it is the universal cross platform extension for plain text    files). Then save the file with the name “test.txt” to your Desktop

Now open the Terminal application in the Applications directory. The start up    screen will look something like this:

<em><span style="font-family: Courier New,Courier,mono;">Last login: Sun Jan 5 12:51:58 on    ttyp1
Welcome to Darwin!
 alex%</span></em>

<em></em>Unlike the Mac OS X’s nice Aqua interface, the Terminal will display   the file data and directory structure in a raw black and white format. The Terminal    usually starts off in your home directory. (user%) So let's get started with a command-line    to change the directory to the “Desktop” directory.

<strong>Commands:</strong>

<strong>1) cd</strong>

<strong></strong>Cd is short for change directory. This will change the current directory    to the directory specified. To access the “Desktop” directory, type:

<span style="color: #006600;">cd Desktop</span>

Hit return to execute the command (do this every time to execute each command    line).

To return to your home directory, type:

<span style="color: #006600;">cd ~ </span>

But for now let's keep the path to the “Desktop” (cd Desktop).

<strong>
2) mkdir</strong>

<strong></strong>Mkdir is short for make directory (make folder). To make a test directory,    type:

<span style="color: #006600;">mkdir test</span>

<strong>3) pwd</strong>

<strong></strong>Pwd displays the path of the current directory. Type:

<span style="color: #006600;">pwd</span>

will display something like this:

<em><span style="font-family: Courier New,Courier,mono;">/Users/alex/Desktop</span></em>

<strong>
4) cp</strong>

<strong></strong>Cp is short for copy. To copy the “test.txt” file inside of the    “test” directory on the “Desktop”, type:

<span style="color: #006600;">cp /Users/alex/Desktop/test.txt test/test2.txt</span>

This placed a copy of the “test.txt” file inside the “test”    directory and named it “test2.txt”.

Notice after the command “cp” we type “pathdir+old name”    space, than “dir+new name”.

Change (cd) directory to the “test” directory (see above for help).

<strong>5) ls</strong>

<strong></strong>Ls is short for list. Ls will list files in a directory. Type:

<span style="color: #006600;">ls</span>

will output.

<span style="font-family: Courier New,Courier,mono;"><em>test2.txt</em></span>

<strong>6) mv</strong>

<strong></strong>Mv will change the name of a file. From the test directory type:

<span style="color: #006600;">mv test2.txt test3.txt</span>

Notice after the command “mv” we type “old name” space,    than “new name”. Type “ls” to check if it worked.

<strong>7) rm</strong>

<strong></strong>Rm is short for remove (delete). To remove the “test3.txt” file    inside the current directory type:

<span style="color: #006600;">rm test3.txt </span>

<span style="color: #000000;">Or remove a <strong>folder</strong> with or without items in side</span>

<span style="color: #008000;">sudo rm -rf /path/folder_name</span>

<strong>8) man</strong>

<strong></strong>Man is short for manual. For example to display the manual for “rm”    type:

<span style="color: #006600;">man rm</span>

This will display information about the “rm” command. You can type    any command after “man” to access additional information on that topic.

<strong>
9) “Q” key</strong>

<strong></strong>Q is short for quit. To escape the manual screen, hit the "Q"    key:

If you have any questions, please search or post a question to the forum.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/basic-terminal-commands/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
