<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Joomla! - Open Source Content Management" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Linux stuff</title>
		<description><![CDATA[Random bits of knowledge gathered over the years. Mostly IT related, but recipes etc will do, too.]]></description>
		<link>https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies</link>
		<lastBuildDate>Thu, 14 Jan 2021 10:20:34 +0100</lastBuildDate>
		<generator>Joomla! - Open Source Content Management</generator>
		<atom:link rel="self" type="application/rss+xml" href="https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies?format=feed&amp;type=rss"/>
		<language>en-gb</language>
		<managingEditor>admin@bubbakraut.com (BubbaKraut.com)</managingEditor>
		<item>
			<title>New Mysql Database (and user)</title>
			<link>https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies/35-new-mysql-database-and-user</link>
			<guid isPermaLink="true">https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies/35-new-mysql-database-and-user</guid>
			<description><![CDATA[<p>Alrighty, it's an easy one, but I keep going astray. So here's how to set up a new MySQL database and add a user while at it. All at the command line, of course.</p>
<p>$ mysql -u ''adminusername'' -p</p>
<p>mysql&gt; CREATE DATABASE ''databasename''; <br />mysql&gt; GRANT ALL PRIVILEGES ON ''databasename''.* TO "''username''"@"''hostname''" IDENTIFIED BY "''password''";<br />mysql&gt; FLUSH PRIVILEGES;<br />mysql&gt; EXIT</p>
<p> </p>]]></description>
			<author>admin@bubbakraut.com (Sven Jambor)</author>
			<category>Newbies in Command </category>
			<pubDate>Tue, 30 Oct 2012 11:37:11 +0100</pubDate>
		</item>
		<item>
			<title>Pack it up, dude</title>
			<link>https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies/23-pack-it-up-dude</link>
			<guid isPermaLink="true">https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies/23-pack-it-up-dude</guid>
			<description><![CDATA[<p>Okay, I just realized that giving instructions on how to unpack archives is neat - but about creating tar.gz archives?</p>
<p>Easy: Just use</p>
<pre class="alt2" dir="ltr"><p>tar -cvpzf &lt;output filename&gt; &lt;directory&gt;</p><p>this means:
-c = create new archive
-v = be verbose</p><p>-p = preserver permissions
-z = compress using gzip
-f = filename to create for the new archive

for the directory dont to "directory/*" just to "directory" with no slash

filenames should end in ".tar.gz" as they are tarr'ed then zipped</p></pre>]]></description>
			<author>admin@bubbakraut.com (Sven Jambor)</author>
			<category>Newbies in Command </category>
			<pubDate>Mon, 03 Oct 2011 14:20:53 +0200</pubDate>
		</item>
		<item>
			<title>Finding a string in text files</title>
			<link>https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies/8-findstringinfiles</link>
			<guid isPermaLink="true">https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies/8-findstringinfiles</guid>
			<description><![CDATA[<p>One of the great things with Linux is that almost all files are out there in the open. Configuration of the OS, application config files, php files of your webserver, etc. There's only one problem: there's way too many files to find what you're looking for. Now what?</p>
]]></description>
			<author>admin@bubbakraut.com (Sven Jambor)</author>
			<category>Newbies in Command </category>
			<pubDate>Mon, 11 Apr 2011 21:33:50 +0200</pubDate>
		</item>
		<item>
			<title>Unpack that stuff</title>
			<link>https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies/2-unpacking</link>
			<guid isPermaLink="true">https://dynamic.bubbakraut.com/linuxstuff/8-commandlinenewbies/2-unpacking</guid>
			<description><![CDATA[<p>Well, well, the old lady let you move back in, did she? Time to unpack your bags, then.</p>
<p>In case you happen to be a Linux or Unix server, that might be a bit of an issue. Sure, we all know what to do with zip files in Windows - but what about them tar or gz files? No worries - Bubba to the Rescue.</p>
<p>Here's what you do:</p>
<p><span style="text-decoration: underline;"><strong>To unpack a tar.gz file</strong></span>, you can use the tar command from the shell. Here's an example:</p>
<pre>tar -xzf bubba.tar.gz</pre>
<p>The result will be a new directory containing the files.</p>
<p>Of course, this was the way we did things back then in the old days. Nowadays, when you download the tar.gz from a web browser, a lot of times an unpacker will open - and you can just use that. But that's for whimps. Or Yankees. Or both.</p>
<p><span style="text-decoration: underline;"><strong>For just .gz (.gzip)</strong></span></p>
<p>In some cases the file is just a gzip format, not tar. Then you can use:</p>
<pre>gunzip bubba.gz</pre>
<p> </p>]]></description>
			<author>admin@bubbakraut.com (Sven Jambor)</author>
			<category>Newbies in Command </category>
			<pubDate>Tue, 29 Mar 2011 23:18:51 +0200</pubDate>
		</item>
	</channel>
</rss>
