<?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 | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/tag/unix/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Tue, 08 Mar 2011 07:40:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to Find Out Public IP Address via Command Line in Unix/Linux Machine</title>
		<link>https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php</link>
					<comments>https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 08 Mar 2011 03:20:00 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[wget]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1406</guid>

					<description><![CDATA[<p>If you have more than 100 servers in your network; behind a firewall; lazy to access to documentation. Here is the alternative option to find out your machine&#8217;s public IP Address via command line $ wget -q -O - http://ipchicken.com...</p>
The post <a href="https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php">How to Find Out Public IP Address via Command Line in Unix/Linux Machine</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>If you have more than 100 servers in your network; behind a firewall; lazy to access to documentation. Here is the alternative option to find out your machine&#8217;s public IP Address via command line </p>
<pre>
<code>
$ wget -q -O - http://ipchicken.com |  grep -o -E '(^|[[:space:]])[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*([[:space:]]|$)'
# By default, FreeBSD doesn't have wget, you can use fetch instead
$ fetch -q -o - http://www.ipchicken.com | grep -o -E '(^|[[:space:]])[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*([[:space:]]|$)'
</code>
</pre>
<p>You need port 80 external/WAN access to perform the task. </p>The post <a href="https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php">How to Find Out Public IP Address via Command Line in Unix/Linux Machine</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux/Unix Search and Replace Text from Multiple Files</title>
		<link>https://logs.paulooi.com/linuxunix-search-and-replace-text-from-multiple-files.php</link>
					<comments>https://logs.paulooi.com/linuxunix-search-and-replace-text-from-multiple-files.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Wed, 14 Jul 2010 04:50:02 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1029</guid>

					<description><![CDATA[<p>In Linux/Unix, for newbie to do search text from multiple files/folder look like difficult, replacing string from file sound even harder. It&#8217;s actually not hard or complicated to search and replace text from multiple files in Unix/Linux. The key is...</p>
The post <a href="https://logs.paulooi.com/linuxunix-search-and-replace-text-from-multiple-files.php">Linux/Unix Search and Replace Text from Multiple Files</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>In Linux/Unix, for newbie to do search text from multiple files/folder look like difficult, replacing string from file sound even harder. It&#8217;s actually not hard or complicated to search and replace text from multiple files in Unix/Linux. The key is what command to use, there will be two main commands involve in search and replace, which are <strong>find</strong> and <strong>sed</strong></p>
<p>For example I am hosting multiple web applications, the development might have several pg_connect command to connect database, in the event I am migrating database to other IP address, it might be hard for them to dig the file and replace the IP Address with new IP Addresses. </p>
<p>In Linux/Unix, you can search through the directories, looking for the files and replace it with the new IP address. Here is the sample. </p>
<pre>
<code>
shell> find /path/to/dir/* -type f -exec sed -i .backup20100714 -e "s/host=x.x.x.x/host=y.y.y.y/g" {} \\;
</code>
</pre>
<p>The command above will search for files in the directory.<br />
find -type f mean look for File only.<br />
find -exec is to execute something from returned results.<br />
sed -i means backup the files, in case you would like to restore later.<br />
sed -e &#8220;s/host=x.x.x.x/host=y.y.y.y/g&#8221; is to replace x.x.x.x to y.y.y.y</p>
<p>You have backup files name filename.php.backup20100714, now what you need to do is move the files in a backup directory. </p>
<pre>
<code>
shell> find /path/to/dir/* -name "*.backup20100714" -exec mv {} /your/backup/dir/ \\;
</code>
</pre>
<p>You might want to explore on <strong>find</strong> command, it can do a lot of cool stuffs.</p>The post <a href="https://logs.paulooi.com/linuxunix-search-and-replace-text-from-multiple-files.php">Linux/Unix Search and Replace Text from Multiple Files</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/linuxunix-search-and-replace-text-from-multiple-files.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Modify or Adjust File Date Time on Unix/Linux</title>
		<link>https://logs.paulooi.com/modify-or-adjust-file-date-time-on-unixlinux.php</link>
					<comments>https://logs.paulooi.com/modify-or-adjust-file-date-time-on-unixlinux.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Sat, 10 Jul 2010 15:26:48 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1021</guid>

					<description><![CDATA[<p>You have folders or files in your server last modified date/time was 3 months ago, sometime for some reason we would like to change files or folders last modified date/time to older or recent date. You can modify the date/time...</p>
The post <a href="https://logs.paulooi.com/modify-or-adjust-file-date-time-on-unixlinux.php">Modify or Adjust File Date Time on Unix/Linux</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>You have folders or files in your server last modified date/time was 3 months ago, sometime for some reason we would like to change files or folders last modified date/time to older or recent date. You can modify the date/time of a folder or file with Unix/Linux <strong><em>touch</em></strong> command. </p>
<p>For example I have a file name wireless.pcap, last update or created was in year 2009. I can change the last modify time by the <strong>touch</strong> command <strong>touch -t yyyymmddhhmm filename</strong></p>
<p>shell> touch -t 201007101540 wireless.pcap</p>
<p>This will change the file last updated date and time to 10th July 2010 15:40pm.</p>The post <a href="https://logs.paulooi.com/modify-or-adjust-file-date-time-on-unixlinux.php">Modify or Adjust File Date Time on Unix/Linux</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/modify-or-adjust-file-date-time-on-unixlinux.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create User with useradd in FreeBSD</title>
		<link>https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php</link>
					<comments>https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 01:53:55 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[adduser]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[groupadd]]></category>
		<category><![CDATA[groupdel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[pw]]></category>
		<category><![CDATA[systems]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[unlock]]></category>
		<category><![CDATA[useradd]]></category>
		<category><![CDATA[userdel]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1019</guid>

					<description><![CDATA[<p>You can invoke &#8220;adduser&#8221; command in FreeBSD in order to create new user. Adduser will prompt you for user info like name, uid, gid, shell environment and etc. But sometime we would like to create user access through Bash script....</p>
The post <a href="https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php">How to Create User with useradd in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>You can invoke &#8220;adduser&#8221; command in FreeBSD in order to create new user. Adduser will prompt you for user info like name, uid, gid, shell environment and etc. But sometime we would like to create user access through Bash script. &#8220;useradd&#8221; command is the good way to do it. </p>
<p>In Linux, using &#8220;useradd&#8221; is pretty common for creating new user access. You can also use &#8220;useradd&#8221; in FreeBSD, but not directly invoke &#8220;useradd&#8221; command. Below is the sample of creating new user in FreeBSD with &#8220;useradd&#8221;.</p>
<pre>
<code>
shell> pw useradd cheryl -c 'Cheryl Windows Admin' -d /home/cheryl -s /usr/local/bin/bash
</code>
</pre>
<p>New user account is created, but don&#8217;t forgot to set password for the account </p>
<pre>
<code>
shell> passwd cheryl
</code>
</pre>
<p>You can run other command like &#8220;userdel&#8221;, &#8220;usermod&#8221;, &#8220;usershow&#8221;, &#8220;groupadd&#8221;, &#8220;groupdel&#8221;, &#8220;groupmod&#8221;, &#8220;lock&#8221;, &#8220;unlock&#8221; on FreeBSD by using the &#8220;pw&#8221; command.  </p>The post <a href="https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php">How to Create User with useradd in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change Hostname in Unix FreeBSD</title>
		<link>https://logs.paulooi.com/how-to-change-hostname-in-unix-freebsd.php</link>
					<comments>https://logs.paulooi.com/how-to-change-hostname-in-unix-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Thu, 03 Jun 2010 12:17:04 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=996</guid>

					<description><![CDATA[<p>We have interesting hostname for our all our servers. Some of it is using Football Team like Manchester, Liverpool, Chelsea, Arsenal. Part of it is striker name like Rooney, Ronaldo and etc. We also have like meganfox, milla, jessicaalba for...</p>
The post <a href="https://logs.paulooi.com/how-to-change-hostname-in-unix-freebsd.php">How to Change Hostname in Unix FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>We have interesting hostname for our all our servers. Some of it is using Football Team like Manchester, Liverpool, Chelsea, Arsenal. Part of it is striker name like Rooney, Ronaldo and etc. We also have like meganfox, milla, jessicaalba for those &#8220;hot&#8221; &#8220;steamy&#8221; servers. Occasionally if the football team is not perform well, we will change the hostname for the server to other football team, for example Manchester to Chelsea. Yea.. We are not loyal support, we only support the no. 1 team. </p>
<p>Joking aside, <strong>how to change server hostname in Unix FreeBSD</strong>? There are 2 ways to do it, one is the easy way another is the geeky way. Depend on yourself, if you want to show your elite skills, do it with the text editor, or make the change with Sysinstall. </p>
<p><strong>Change Hostname in Unix FreeBSD with Sysinstall</strong></p>
<ul>
<li>In command line, type: sysinstall </li>
<li>Select Configure</li>
<li>Select Networking</li>
<li>Select Interfaces</li>
<li>Select your Network Interface Card (em0 em1 fxp0)</li>
<li>No IPV6 (Select yes if you are running on ipv6)</li>
<li>No DHCP (Select yes if you are running on dhcp)</li>
<li>host: should be your server name like chelsea</li>
<li>domain: should be your own domain like takizo.com</li>
<li>Select Ok</li>
<li>Exit, Exit, Exit</li>
<li>In command shell, type: hostname chelsea.takizo.com </li>
</ul>
<p>This will update your new hostname in Unix FreeBSD box. But please take note you will have extra junk in /etc/rc.conf. So it&#8217;s recommend to change your hostname in Unix FreeBSD with following method. </p>
<p><strong>Change Hostname in Unix FreeBSD in &#8220;Clean&#8221; Way</strong></p>
<ul>
<li>In command shell, type: hostname chelsea.takizo.com</li>
<li>Edit /etc/hosts with vi, change the existing hostname to your new hostname</li>
<li>Edit /etc/rc.conf with vi, on the &#8220;hostname&#8221; variable change the existing hostname to your new hostname </li>
</ul>
<p>This is the better approach in order to organize your /etc/rc.conf clean and clear. </p>The post <a href="https://logs.paulooi.com/how-to-change-hostname-in-unix-freebsd.php">How to Change Hostname in Unix FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-change-hostname-in-unix-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change User&#8217;s Shell Environment in FreeBSD</title>
		<link>https://logs.paulooi.com/how-to-change-users-shell-environment-in-freebsd.php</link>
					<comments>https://logs.paulooi.com/how-to-change-users-shell-environment-in-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Wed, 26 May 2010 08:39:14 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[csh]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=982</guid>

					<description><![CDATA[<p>In FreeBSD, user&#8217;s default shell environment is either sh or csh and I have installed Bash in FreeBSD and would like to change user&#8217;s shell environment to Bash. To change user&#8217;s shell environment in FreeBSD. shell> chsh -s /usr/local/bin/bash userid...</p>
The post <a href="https://logs.paulooi.com/how-to-change-users-shell-environment-in-freebsd.php">How to Change User’s Shell Environment in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>In FreeBSD, user&#8217;s default shell environment is either sh or csh and I have installed Bash in FreeBSD and would like to change user&#8217;s shell environment to Bash. </p>
<p>To <a href="https://logs.paulooi.com/2010/05/26/how-to-change-users-shell-environment-in-freebsd/">change user&#8217;s shell environment in FreeBSD</a>. </p>
<pre>
<code>
shell> chsh -s /usr/local/bin/bash userid
</code>
</pre>
<p>To change your shell environment in FreeBSD</p>
<pre>
<code>
shell> chsh -s /usr/local/bin/bash
</code>
</pre>The post <a href="https://logs.paulooi.com/how-to-change-users-shell-environment-in-freebsd.php">How to Change User’s Shell Environment in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-change-users-shell-environment-in-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Quick File Copy on File Name with Sample Extension</title>
		<link>https://logs.paulooi.com/quick-file-copy-on-file-name-with-sample-extension.php</link>
					<comments>https://logs.paulooi.com/quick-file-copy-on-file-name-with-sample-extension.php#comments</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 18 May 2010 08:32:11 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux command]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[unix command]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=979</guid>

					<description><![CDATA[<p>By default, some of the application installation provide you a sample configuration file. Usually the sample of configuration will end with name like *.sample, *.default and so on. Let say you have 20 of *.sample files and it will take...</p>
The post <a href="https://logs.paulooi.com/quick-file-copy-on-file-name-with-sample-extension.php">Quick File Copy on File Name with Sample Extension</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>By default, some of the application installation provide you a sample configuration file. Usually the sample of configuration will end with name like *.sample, *.default and so on. Let say you have 20 of *.sample files and it will take you some time to copy, move or rename one by one. Lets do some quicker way which will save more time.</p>
<p>Create a sample file file random name ended with *.sample. Example </p>
<pre>
<code>
touch apple.sample.cfg
touch microsoft.sample.cfg
touch php.sample.cfg
touch config.sample.cfg
touch apache.sample.cfg
touch mysql.sample.cfg
touch pgsql.sample.cfg
touch cacti.sample.cfg
touch wordpress.sample.cfg
touch jessicaalba.sample.cfg
</code>
</pre>
<p>Now you have all the sample configuration, you are going to use them. Are you going to copy one by another and change the same with .cfg prefix? We can do it, in a better and faster way. </p>
<p>Make a new directory to store all the sample file </p>
<pre>
<code>
mkdir sample
cp *.sample.cfg sample/
</code>
</pre>
<p>After that, go to sample directory and copy the files to a location </p>
<pre>
<code>
cd sample 
for d  in `ls *.sample.cfg`; do cp $d `echo $d | sed s/sample.cfg/cfg`; done
</code>
</pre>
<p>That one simple line will easily save you 1-2 minutes. </p>The post <a href="https://logs.paulooi.com/quick-file-copy-on-file-name-with-sample-extension.php">Quick File Copy on File Name with Sample Extension</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/quick-file-copy-on-file-name-with-sample-extension.php/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Enable SSHD on FreeBSD</title>
		<link>https://logs.paulooi.com/enable-sshd-on-freebsd.php</link>
					<comments>https://logs.paulooi.com/enable-sshd-on-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 18 May 2010 01:30:23 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[remote access]]></category>
		<category><![CDATA[serivces]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=975</guid>

					<description><![CDATA[<p>I believe most system admin does remote access to the server. Who doesn&#8217;t enable SSHD on FreeBSD? Almost every new FreeBSD installation, the first thing I will do after installation is enable SSHD Service on FreeBSD. Start the service and...</p>
The post <a href="https://logs.paulooi.com/enable-sshd-on-freebsd.php">Enable SSHD on FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>I believe most system admin does remote access to the server. Who doesn&#8217;t <strong>enable SSHD on FreeBSD</strong>? Almost every new FreeBSD installation, the first thing I will do after installation is enable SSHD Service on FreeBSD. Start the service and remote access from laptop, with a cup of coffee! </p>
<p>To enable SSHD on FreeBSD</p>
<ul>
<li>Edit the file: vi /etc/rc.conf</li>
<li>Add: sshd_enable=&#8221;YES&#8221;</li>
<li>To start sshd service: /etc/rc.d/sshd start</li>
</ul>
<p>If it&#8217;s the first time you enable SSHD, it will generate the keys for the first time. </p>The post <a href="https://logs.paulooi.com/enable-sshd-on-freebsd.php">Enable SSHD on FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/enable-sshd-on-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Disable phpinfo() on Apache Web Server</title>
		<link>https://logs.paulooi.com/tips-of-the-day-phpinfo-code-that-shouldnt-show-to-public.php</link>
					<comments>https://logs.paulooi.com/tips-of-the-day-phpinfo-code-that-shouldnt-show-to-public.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 22 Jul 2008 09:00:00 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[web programming]]></category>
		<category><![CDATA[website]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=277</guid>

					<description><![CDATA[<p>Information displays from phpinfo() may provide resourceful information to attacker, such as file patch, web server environment, php modules, web server modules and etc. It&#8217;s better to disable phpinfo() function on your webserver.</p>
The post <a href="https://logs.paulooi.com/tips-of-the-day-phpinfo-code-that-shouldnt-show-to-public.php">Disable phpinfo() on Apache Web Server</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>Information displays from phpinfo() may provide resourceful information to attacker, such as file patch, web server environment, php modules, web server modules and etc. It&#8217;s better to disable phpinfo() function on your webserver.</p>The post <a href="https://logs.paulooi.com/tips-of-the-day-phpinfo-code-that-shouldnt-show-to-public.php">Disable phpinfo() on Apache Web Server</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/tips-of-the-day-phpinfo-code-that-shouldnt-show-to-public.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Changing File&#8217;s Date and Time on Unix Systems</title>
		<link>https://logs.paulooi.com/changing-files-date-and-time-on-unix-systems.php</link>
					<comments>https://logs.paulooi.com/changing-files-date-and-time-on-unix-systems.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 15 Jul 2008 18:12:55 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[date and time]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[touch]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=275</guid>

					<description><![CDATA[<p>Change Data and Time of a File At times, we might want to change date and time of a file, for record purposes. For example, when you copying log file from remote machine, when it&#8217;s extract on local machine, the...</p>
The post <a href="https://logs.paulooi.com/changing-files-date-and-time-on-unix-systems.php">Changing File’s Date and Time on Unix Systems</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<h3>Change Data and Time of a File</h3>
<p>At times, we might want to change date and time of a file, for record purposes. For example, when you copying log file from remote machine, when it&#8217;s extract on local machine, the date and time will reflect to current date time. </p>
<h3>touch Command </h3>
<p>To update the date and time of file, run;</p>
<p><em>touch -t ccyymmddhhMMSS filename</em></p>
<p>For more info, run;</p>
<p><em>man touch</em></p>The post <a href="https://logs.paulooi.com/changing-files-date-and-time-on-unix-systems.php">Changing File’s Date and Time on Unix Systems</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/changing-files-date-and-time-on-unix-systems.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
