<?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>Unix Sysadmin &#187; Linux</title>
	<atom:link href="http://www.sysadmindayph.com/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadmindayph.com/blog</link>
	<description>SysAdmin Blog, TechTips and Reviews</description>
	<lastBuildDate>Fri, 27 Jan 2012 04:36:08 +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>getfacl and setfacl &#8211; Unix Access Control (acl) Tool</title>
		<link>http://www.sysadmindayph.com/blog/getfacl-and-setfacl-unix-access-control-acl-tool/</link>
		<comments>http://www.sysadmindayph.com/blog/getfacl-and-setfacl-unix-access-control-acl-tool/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 14:12:06 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[access list]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[getfacl]]></category>
		<category><![CDATA[setfacl]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=194</guid>
		<description><![CDATA[Today&#8217;s topic is all about Access List&#8230; For Unix and Unix-like system, the usual command to set the file permission is the &#8216;chmod&#8217; command. However there are instances that we need more flexibility in giving access and control for files and folders. Get it? Access and Control? In this situation, there is a file utility &#8230; <a href="http://www.sysadmindayph.com/blog/getfacl-and-setfacl-unix-access-control-acl-tool/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s topic is all about <strong>Access List</strong>&#8230; For Unix and Unix-like system, the usual command to set the file permission is the &#8216;chmod&#8217; command. However there are instances that we need more flexibility in giving access and control for files and folders. Get it? Access and Control? In this situation, there is a file utility built in Unix called &#8216;<strong>getfacl</strong>&#8216; and &#8216;<strong>setfacl</strong>&#8216;.</p>
<p><strong><br />
getfacl</strong> is a file utility for viewing the access control list information associated with a file or directory.</p>
<p>For a memory aid, you can think of &#8216;getfacl&#8217; as &#8220;<strong>G</strong>et <strong>F</strong>ile <strong>ACL</strong>&#8220;.. ACL being Access Control List.</p>
<p>Access control lists are extended attributes added to most major file systems in the 2.6 kernel to improve ability to control the access of files. They allow permissions to be set for individual groups and users and not just the owning user, owning group, and all other users.</p>
<p><strong>setfacl</strong> is a command that allows you to set the Access Control List information for a file or directory.</p>
<p>Access control lists are extended attributes added to most major file systems in the 2.6 kernel to improve ability to control the access of files. They allow permissions to be set for individual groups and users and not just the owning user, owning group, and all other users.</p>
<p>You can read man pages for both <a href="http://www.unix.com/man-page/All/1/getfacl/">getfacl</a> and <a href="http://www.unix.com/man-page/All/1/setfacl/">setfacl</a> for more information.</p>
<p>getfacl and setfacl example&#8230;.</p>
<p>Here&#8217;s an example of using the basic funtion of getfacl and setfacl</p>
<p># getfacl</p>
<p>#setfacl</p>
<p>setfacl -m default:user::rwx,default:group::r-x,default:other:r-x,default:mask:rwx /u06/OneSource/datapump_dbdump</p>
<p>setfacl -m default:user:rcodapp1:r-x,default:group:r-x,default:other:&#8212;,default:mas:rwx /u06/OneSouce/datapump_dbdump</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/getfacl-and-setfacl-unix-access-control-acl-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top equivalent for AIX &#8211; Topas, Only Better</title>
		<link>http://www.sysadmindayph.com/blog/top-equivalent-for-aix-topas-only-better/</link>
		<comments>http://www.sysadmindayph.com/blog/top-equivalent-for-aix-topas-only-better/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:03:41 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[topas]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=155</guid>
		<description><![CDATA[Top equivalent for AIX &#8211; Topas, Only Better&#8230; That&#8217;s what I searched when I got a ticket from one of the AIX boxes here complaining about CPU being 99% used up. Of course, you can use vmstat with interval, but for those sysadmin folks who are use to using Top, its still more comfortable using &#8230; <a href="http://www.sysadmindayph.com/blog/top-equivalent-for-aix-topas-only-better/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Top equivalent for AIX &#8211; Topas, Only Better&#8230; That&#8217;s what I searched when I got a ticket from one of the AIX boxes here complaining about CPU being 99% used up.</p>
<p>Of course, you can use vmstat with interval, but for those sysadmin folks who are use to using Top, its still more comfortable using (and seeing) the top output.</p>
<p>Topas is the equivalent of Top for AIX.. it&#8217;s better than Top as a matter of fact according to some AIX gurus (and Solaris)</p>
<p>If you persists in using top, You&#8217;ll have to build it yourself from the sources at <a href="http://www.unixtop.org/">http://www.unixtop.org/</a> plus probably this fix: </p>
<p>        <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=934590&amp;group_id=72892&amp;atid=536044">http://sourceforge.net/tracker/index.php?func=detail&amp;aid=934590&amp;group_id=72892&amp;atid=536044</a></p>
<p>Good luck!</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/top-equivalent-for-aix-topas-only-better/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Searching For Fee Car Classifieds Script</title>
		<link>http://www.sysadmindayph.com/blog/searching-for-fee-car-classifieds-script/</link>
		<comments>http://www.sysadmindayph.com/blog/searching-for-fee-car-classifieds-script/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 02:40:53 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[car classified]]></category>
		<category><![CDATA[classified]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[free script]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=141</guid>
		<description><![CDATA[Cars are no longer a luxury nowadays (except if you want to own a Ferrari or something). Cars are now a necessity in today&#8217;s standard of living. And let&#8217;s face it, with the price of brand new cars and the forever raising price of gasoline, not every one can buy a new set of wheels. &#8230; <a href="http://www.sysadmindayph.com/blog/searching-for-fee-car-classifieds-script/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Cars are no longer a luxury nowadays (except if you want to own a Ferrari or something). Cars are now a necessity in today&#8217;s standard of living. And let&#8217;s face it, with the price of brand new cars and the forever raising price of gasoline, not every one can buy a new set of wheels.</p>
<p>Thanks to <strong>websites </strong>that offer to sell (and buy) second hand, used cars many people can have places to search for and are no longer limited to the restrictions of locations.</p>
<p>I bought my first car (my only car for that matter) from a dealer that posted their <strong>inventory online</strong>. So, thanks to this second hand <a title="used car philippines" href="http://usedcar-philippines.info/">used car website</a>, I was able to find myself and buy my very own car.</p>
<p><span id="more-141"></span></p>
<p>Thanks also to this website (and the internet) for that matter, and idea popped to mind. Why not make <a title="second hand car philippines" href="http://usedcar-philippines.info/">my own used car websites</a> that will not only help people buy quality used car, but also earn a couple of dimes on the side?</p>
<p><strong>The search for Free Car Classified Script</strong></p>
<p>How hard could it be? All you need is a <strong>webhosting company</strong> running with the servers running a <a title="ubuntu 9" href="http://www.sysadmindayph.com/blog/ubuntu-new-release-ver-9-available-for-download-free/">flavor of Linux</a>, <strong>PHP</strong>, <strong>Mysql</strong>, and <strong>open source classfied script</strong> and you&#8217;re good to go.</p>
<p>But the problem is, I could find a free car classified script that I can install on my webhosting company. I did a quick &#8220;free car classified script&#8221; search and a &#8220;free car classified script download&#8221; and the search result came with script that I need to cash out a couple of dollars&#8230; unlucky for me, I have no extra dough to cash out.</p>
<p>Hence, this post. I would like to ask for your help. If you know a flexible, free car classified script out there in internet, could you please drop a comment? I already tired auto_classified and PHP Car Dealer.. (and I bought one before forgot the name, but it doesn&#8217;t have what I am looking for.. yeah yeah, modify.. no time)</p>
<p>Thanks in advance to those who will point me in the right site for the car classified script! Chow!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/searching-for-fee-car-classifieds-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up an FTP server on Debian</title>
		<link>http://www.sysadmindayph.com/blog/setting-up-an-ftp-server-on-debian/</link>
		<comments>http://www.sysadmindayph.com/blog/setting-up-an-ftp-server-on-debian/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 04:19:09 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=73</guid>
		<description><![CDATA[First things first, check to see what available ftp server are there for Debian atp-cache search ftp-server This will suppose to to list all available ftp server . As you can see there are a few available server you can choose. Popular one is proftp. To install the service do: apt-get install proftp This will &#8230; <a href="http://www.sysadmindayph.com/blog/setting-up-an-ftp-server-on-debian/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>First things first, check to see what available ftp server are there for Debian</p>
<blockquote><p>atp-cache search ftp-server</p></blockquote>
<p>This will suppose to to list all available ftp server . As you can see there are a few available server you can choose. Popular one is proftp.</p>
<p>To install the service do:</p>
<blockquote><p>apt-get install proftp</p></blockquote>
<p>This will start installing .. you know, displaying all those letters and words and stuff..</p>
<blockquote><p>webserver:~# apt-get install proftpd<br />
Reading package lists&#8230; Done<br />
Building dependency tree&#8230; Done<br />
The following extra packages will be installed:<br />
libmysqlclient15off libpq4 mysql-common perl perl-modules ucf<br />
Suggested packages:<br />
libterm-readline-gnu-perl libterm-readline-perl-perl proftpd-doc<br />
Recommended packages:<br />
perl-doc debconf-utils<br />
The following NEW packages will be installed:<br />
libmysqlclient15off libpq4 mysql-common perl perl-modules proftpd ucf<br />
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 9623kB of archives.<br />
After unpacking 39.1MB of additional disk space will be used.<br />
Do you want to continue [Y/n]? Y</p></blockquote>
<blockquote><p>Run proftpd from inetd or standalone?</p>
<p>inetd<br />
standalone</p></blockquote>
<p>Initially selected standalone here.</p>
<p>And you&#8217;re done!</p>
<p>To start up the FTP service:</p>
<blockquote><p>/etc/init.d/proftpd start</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/setting-up-an-ftp-server-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vi Search and Replace&#8230; The Basics, Dummy&#8217;s Reference</title>
		<link>http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/</link>
		<comments>http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 22:18:04 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/</guid>
		<description><![CDATA[Yep, this is a dummy&#8217;s reference&#8230; I keep on forgetting the syntax so I might as well put it here for my own reference&#8230; vi is the one, if not the most popular text editor available for a System Administrator on a UNIX and UNIX-like machines. It has two modes, command and editor mode. Here &#8230; <a href="http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Yep, this is a dummy&#8217;s reference&#8230; I keep on forgetting the syntax so I might as well put it here for my own reference&#8230; <img src='http://www.sysadmindayph.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>vi is the one, if not the most popular text editor available for a System Administrator on a UNIX and UNIX-like machines.</p>
<p>It has two modes, command and editor mode.</p>
<p>Here are some syntax in using the Search and Replace in &#8216;vi&#8217;.</p>
<p>Search:</p>
<p>The most basic and most easily remembered command for searching is vi is <em>slash </em>or &#8216;/&#8217; followed by the character being searched. That&#8217;s for forward searching. For backward, vi use &#8216;?&#8217; followed by the string being searched.</p>
<p>To go to the next occurrance of the string being searched, vi use &#8216;n&#8217; command. Doesn&#8217;t matter if your searching forward (from up, down) or backward, from down to top.</p>
<p>Example:</p>
<p>(you have to be in command mode&#8230; press ESC first)</p>
<p>/<em>search_string</em></p>
<p>?<em>search_string</em></p>
<p><strong>Search and Replace</strong></p>
<p>For search and replace, use the syntax</p>
<p>:%s/original/replaced/g</p>
<p>Make sense?<br />
Any command that begins with a &#8220;<tt>:</tt>&#8221; is called a line mode command and performs its duty on the line the cursor is currently on.</p>
<p>The above syntax serves my purpose now&#8230; If I want to replace text in certain ranges.. <a href="http://unix.t-a-y-l-o-r.com/VBsr.html">syntax can be found here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Trouble Installing Ubuntu on a NEO Laptop</title>
		<link>http://www.sysadmindayph.com/blog/trouble-installing-ubuntu-on-a-neo-laptop/</link>
		<comments>http://www.sysadmindayph.com/blog/trouble-installing-ubuntu-on-a-neo-laptop/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 13:14:42 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/trouble-installing-ubuntu-on-a-neo-laptop/</guid>
		<description><![CDATA[I bought my very first laptop last week which comes pre-installed with Windows Vista Home Basic. My original plan was to erase the whole thing and put Ubuntu on it. Tried it couple of days ago but didn&#8217;t work out. After the boot up from the CD (requested a copy of Ubuntu 7.10) it displayed &#8230; <a href="http://www.sysadmindayph.com/blog/trouble-installing-ubuntu-on-a-neo-laptop/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I bought my very first laptop last week which comes pre-installed with Windows Vista Home Basic.</p>
<p>My original plan was to erase the whole thing and put Ubuntu on it. Tried it couple of days ago but didn&#8217;t work out.</p>
<p>After the boot up from the CD (requested a copy of Ubuntu 7.10) it displayed the little cross hair, then nothing&#8230;</p>
<p>I thought it&#8217;s probably the Vista&#8230; So I put in XP.. coz I tried installing Ubuntu over XP before, but the same thing happened!</p>
<p>So I wonder if this is a hardware issue on my laptop? It&#8217;s a NEO Empriva 540SVBe.</p>
<p>Will do a search later.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/trouble-installing-ubuntu-on-a-neo-laptop/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>mysql: Multiple Table Query, Output into File</title>
		<link>http://www.sysadmindayph.com/blog/mysql-multiple-table-query-output-into-file/</link>
		<comments>http://www.sysadmindayph.com/blog/mysql-multiple-table-query-output-into-file/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 13:49:24 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/mysql-multiple-table-query-output-into-file/</guid>
		<description><![CDATA[Got a request from the boss today to extract all users plus their contact numbers from the Paging server Server is a Red Hat Enterprise Linux AS release 4, running LAMP. The data needed are located in several tables, so we need to query all relevant tables in the databse: mysql&#62; SELECT users.username, users.emailaddress, user_services.current_service &#8230; <a href="http://www.sysadmindayph.com/blog/mysql-multiple-table-query-output-into-file/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Got a request from the boss today to extract all users plus their contact numbers from the Paging server</p>
<p>Server is a Red Hat Enterprise Linux AS release 4, running LAMP.</p>
<p>The data needed are located in several tables, so we need to query all relevant tables in the databse:</p>
<blockquote><p> mysql&gt; SELECT users.username, users.emailaddress, user_services.current_service FROM users, user_services WHERE users.username=user_services.username</p></blockquote>
<p>The statement above queries two tables &#8211; <em>users</em> and <em>user_services</em>, as show from the expressin &#8216;FROM users, user_services&#8217;. The record in users table that information is required are in the username and emailaddress record. On user_services, it&#8217;s current_services. The WHERE sets the limit condition.</p>
<p>To send that output to a file, we use the INTO OUTFILE &#8216;&lt;/path/to/file&gt;&#8217;.</p>
<p>So, that&#8217;s</p>
<blockquote><p>mysql&gt; SELECT users.username, users.emailaddress, user_services.current_service FROM users, user_services WHERE users.username=user_services.username INTO OUTFILE &#8216;/tmp/tempfile.txt&#8217;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/mysql-multiple-table-query-output-into-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AsteriskNOW &#8211; Asterisk Out Of The Box</title>
		<link>http://www.sysadmindayph.com/blog/asterisknow-asterisk-out-of-the-box/</link>
		<comments>http://www.sysadmindayph.com/blog/asterisknow-asterisk-out-of-the-box/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 08:11:47 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VoIP]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/asterisknow-asterisk-out-of-the-box/</guid>
		<description><![CDATA[I recently found a nice read about a Linux Project or Distro that includes Asterisk. It contains all the Asterisk stuff one will ever need. The project is called AsteriskNOW. You can donwload the package at asteriskNOW.com. You can choose to download and ISO image or a VMWare image on the donwload page. The is &#8230; <a href="http://www.sysadmindayph.com/blog/asterisknow-asterisk-out-of-the-box/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I recently <a href="http://www.linuxscrew.com/2007/11/19/asterisk-unveils-customized-linux-distro/">found a nice read</a> about a Linux Project or Distro that includes <a href="http://www.sysadmindayph.com/blog/asterisk-overview-an-open-source-voip-application/">Asterisk</a>. It contains all the Asterisk stuff one will ever need. The project is called AsteriskNOW.</p>
<p>You can <a href="http://elizar.palad.info/blog/how-to-search-and-donwload-mp3-for-free/">donwload</a> the package at asteriskNOW.com. You can choose to download and ISO image or a VMWare image on the <a href="http://elizar.palad.info/blog/how-to-search-and-donwload-mp3-for-free/">donwload page</a>.</p>
<p>The  is so easy to use and install that AsteriskNOW claims that you can <a href="http://www.cyberciti.biz/tips/download-install-asterisknow-in-30-minutes.html">install it 30 minutes</a>!</p>
<p><span id="more-56"></span></p>
<p>Mark Spencer, the original author of <a href="http://www.asterisk.org">Asterisk</a> and founder of <a href="http://www.digium.com/">Digium</a>, said</p>
<blockquote><p>&#8220;What we did was take the Asterisk, the GUI,  and a variety of other packages and put it all in a CD that you drop it in a computer and install. And that is what AsteriskNOW is.&#8221;</p></blockquote>
<p>Here&#8217;s a video of Mr. Spencer himself, showing how easy it is to install and get started with AsteriskNOW.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/ONOxNJquatk&amp;rel=1" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/ONOxNJquatk&amp;rel=1" wmode="transparent"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/asterisknow-asterisk-out-of-the-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UNIX Quick Tip: Changing The Time Stamp Of A File</title>
		<link>http://www.sysadmindayph.com/blog/unix-quick-tip-changing-the-time-stamp-of-a-file/</link>
		<comments>http://www.sysadmindayph.com/blog/unix-quick-tip-changing-the-time-stamp-of-a-file/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 15:28:56 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/unix-quick-tip-changing-the-time-stamp-of-a-file/</guid>
		<description><![CDATA[This tip is a give away. Everyone knows this, but for those who doesn&#8217;t or forgot&#8230;  here&#8217;s refresher&#8230; Here&#8217;s a typical output of a file listing using `ls -l` on a directory: [root@unix-box icons]# ls -l &#124; more total 636 -rw-r&#8211;r&#8211;    1 elizar root          246 Aug 26  2005 a.gif -rw-r&#8211;r&#8211;    1 elizar root          242 Aug &#8230; <a href="http://www.sysadmindayph.com/blog/unix-quick-tip-changing-the-time-stamp-of-a-file/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>This tip is a give away. Everyone knows this, but for those who doesn&#8217;t or forgot&#8230;  here&#8217;s refresher&#8230;</p>
<p>Here&#8217;s a typical output of a file listing using `ls -l` on a directory:</p>
<blockquote><p>[root@unix-box icons]# ls -l | more<br />
total 636<br />
-rw-r&#8211;r&#8211;    1 elizar root          246 Aug 26  2005 a.gif<br />
-rw-r&#8211;r&#8211;    1 elizar root          242 Aug 26  2005 alert.black.gif<br />
-rw-r&#8211;r&#8211;    1 elizar root          279 Aug 26  2005 alert.black.png<br />
-rw-r&#8211;r&#8211;    1 elizar root          247 Aug 26  2005 alert.red.gif<br />
-rw-r&#8211;r&#8211;    1 elizar root          298 Aug 26  2005 alert.red.png<br />
-rw-r&#8211;r&#8211;    1 elizar root         2326 Aug 26  2005 apache_pb.gif<br />
-rw-r&#8211;r&#8211;    1 elizar root         1385 Aug 26  2005 apache_pb.png<br />
-rw-r&#8211;r&#8211;    1 elizar root          293 Aug 26  2005 a.png</p></blockquote>
<p>When using the -l (dash &#8216;el&#8217;) option of ls, the output will display a more detailed listing of the files. Here you&#8217;ll see the file properties/permission (-rw-r&#8211;r&#8211;) the number of links, the owner of the file, the group of the user, file size, the date/time stamp and finally the file name. That&#8217;s 7 column.</p>
<p><strong>Changing The Time Stamp Of A File</strong></p>
<p>To change the time stamp of a file (the 6th column in the `ls -l` listing), we use the UNIX command <strong>touch</strong>.</p>
<p>From the Man Pag:</p>
<blockquote><p>NAME<br />
touch &#8211; change file timestamps</p>
<p>SYNOPSIS<br />
touch [OPTION]&#8230; FILE&#8230;<br />
touch [-acm] MMDDhhmm[YY] FILE&#8230; (obsolescent)</p></blockquote>
<p>There are many options for the <em>touch </em>command, but the one I use fairly often is the -t option</p>
<blockquote><p>       -t STAMP;    use [[CC]YY]MMDDhhmm[.ss]</p></blockquote>
<p>Example:</p>
<blockquote><p> [root@unix-box icons]#  touch -t 200607161201 a.gif<br />
[root@unix-box icons]# ls -l | more<br />
total 636<br />
-rw-r&#8211;r&#8211;    1 elizar root          246 Jul 16  2006 a.gif<br />
-rw-r&#8211;r&#8211;    1 elizar root          242 Aug 26  2005 alert.black.gif</p></blockquote>
<p>Other options that you  may find useful are -a (change access time only) -m (modification time only) and others. Consult the man page for more details</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/unix-quick-tip-changing-the-time-stamp-of-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Less is More</title>
		<link>http://www.sysadmindayph.com/blog/less-is-more/</link>
		<comments>http://www.sysadmindayph.com/blog/less-is-more/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 14:17:49 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/less-is-more/</guid>
		<description><![CDATA[In a Linux system (and in Solaris 5.8, 5.9, 10, Solaris in general apparently), there are two (identical? opposite?) commands that are very easy enough to remember. How is that? Well, first the command names speak for itself or do exactly what it is called. What are those commands? Well, they are: more and and &#8230; <a href="http://www.sysadmindayph.com/blog/less-is-more/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>In a Linux system (and in Solaris 5.8, 5.9, 10, Solaris in general apparently), there are two (identical? opposite?) commands that are very easy enough to remember. How is that? Well, first the command names speak for itself or do exactly what it is called.  What are those commands? Well, they are:</p>
<p><em>more </em>and and <em>less</em>.</p>
<p><strong>more</strong></p>
<p>The <strong><a href="http://linux.about.com/library/cmd/blcmdl1_more.htm">more </a></strong>command is a filter for paging through text one screenful at a time. For example if your viewing one large text file, you could use more to view the content of the file one screenfull at a time.</p>
<blockquote><p># more /path/to/file/filename</p></blockquote>
<p>more also has an interactive mode that uses the commands based on <em>vi</em>. So if you&#8217;re viewing a file using more, it will pause on the first screenfull and just in case you would want to &#8216;search&#8217; for a particular string you could use the slash (&#8216;/&#8217;) or the question mark (&#8216;?&#8217;) just like you would if you&#8217;re using <em>vi</em>.</p>
<p><strong>less</strong></p>
<p>The command <strong>less</strong>, is just like <strong>more </strong>but unlike more which only goes one way, less allows backward movement in the file as well as forward movement.</p>
<p>Also, since more is a lot primitive than less, less also has tons of command line options. <a href="http://linux.about.com/library/cmd/blcmdl1_less.htm">See it&#8217;s man pages for details</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/less-is-more/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

