<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.2" -->
<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/"
	>

<channel>
	<title>Linux technical support, Technical Blogs, Cheap dedicated server support, Cheap linux dedicated server support, Cheap windows dedicated server, Dedicated server support, Data center Operation, System Administration, Bash and perl scripts for server maintainance</title>
	<link>http://blog.sysadminupdates.com</link>
	<description>Linux technical support, Technical Blogs, Cheap dedicated server support, Cheap linux dedicated server support, Cheap windows dedicated server, Dedicated server support, Data center Operation, System Administration, Bash and perl scripts for server maintainance</description>
	<pubDate>Fri, 18 Jul 2008 11:14:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>
	<language>en</language>
			<item>
		<title>tar: directory checksum error + solaris</title>
		<link>http://blog.sysadminupdates.com/2008/07/18/tar-directory-checksum-error-solaris/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/18/tar-directory-checksum-error-solaris/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 11:14:26 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/18/tar-directory-checksum-error-solaris/</guid>
		<description><![CDATA[

gunzip  filename.tar.gz 
and then
tar -xvf filename.tar
 
]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>gunzip  filename.tar.gz </p>
<p>and then<br />
tar -xvf filename.tar</p>
<p> <img src='http://blog.sysadminupdates.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/18/tar-directory-checksum-error-solaris/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hardening Solaris server</title>
		<link>http://blog.sysadminupdates.com/2008/07/17/hardening-solaris-server/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/17/hardening-solaris-server/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 17:59:34 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/17/hardening-solaris-server/</guid>
		<description><![CDATA[

1> Download and install the latest Solaris 10 Recommended Patch Cluster from http://sunsolve.sun.com
   #tar –xvf 10_Recommended.tar
   #cd 10_Recommended
   #./install_cluster·       
2>Download and install Solaris Security Toolkit (JASS) 4.2 software from www.sun.com/software/security/jass/
   Download SUNWjass-4[1].2.0.pkg.tar
   #tar –xvf SUNWjass-4[1].2.0.pkg.tar
   #pkgadd –d [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>1> Download and install the latest Solaris 10 Recommended Patch Cluster from http://sunsolve.sun.com</p>
<p>   #tar –xvf 10_Recommended.tar</p>
<p>   #cd 10_Recommended</p>
<p>   #./install_cluster·       </p>
<p>2>Download and install Solaris Security Toolkit (JASS) 4.2 software from www.sun.com/software/security/jass/</p>
<p>   Download SUNWjass-4[1].2.0.pkg.tar</p>
<p>   #tar –xvf SUNWjass-4[1].2.0.pkg.tar</p>
<p>   #pkgadd –d SUNWjass-4[1].2.0.pkg</p>
<p>3> Run the security driver with jass-execute command.</p>
<p>   # ./jass-execute secure.drivers</p>
<p>4>  Download and install CIS Level-1 Benchmark and Scoring Tool for Solaris from http://www.cisecurity.org/ site</p>
<p>  # tar –xvf cis_score_tool_solaris_v1.5.0.sh.tar</p>
<p> To install:</p>
<p>  # pkgadd -d CISscan all</p>
<p> To run:<br />
  # /opt/CIS/cis-scan</p>
<p>This will generate the output file with the current rating<br />
   # more /opt/CIS/cis-ruler-log.20070807-12:07:49.13825<br />
 Current Rating = 6.29 / 10.00</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/17/hardening-solaris-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setup Linux VPN server</title>
		<link>http://blog.sysadminupdates.com/2008/07/16/setup-linux-vpn-server/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/16/setup-linux-vpn-server/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 17:50:38 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux server]]></category>

		<category><![CDATA[Technical FAQ linux, windows Administration]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/16/setup-linux-vpn-server/</guid>
		<description><![CDATA[

I am assuming you are using a Redhat or Redhat-like distribution. Some of these packages can be grabbed via yum. However, I&#8217;m going to have you install them via RPM as you cannot get all of them via yum. If you are not, you will need to get the proper packages. For Debian you can [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>I am assuming you are using a Redhat or Redhat-like distribution. Some of these packages can be grabbed via yum. However, I&#8217;m going to have you install them via RPM as you cannot get all of them via yum. If you are not, you will need to get the proper packages. For Debian you can use aptget or search for the .deb. For SuSe you can use Yast or find the distro specific RPMs.</p>
<p>1) Install the DKMS package</p>
<p>rpm &#8211;install dkms-1.12-2.noarch.rpm</p>
<p>http://prdownloads.sourceforge.net/&#8230;12-2.noarch.rpm</p>
<p>This is dynamic kernel module support. You need this to simplify setup and configuration at the kernel level. This will make almost everything transparent to the user during setup.</p>
<p>2) Install the ppp kernel module</p>
<p>rpm &#8211;install kernel_ppp_mppe-0.0.4-2dkms.noarch.rpm</p>
<p>http://prdownloads.sourceforge.net/&#8230;dkms.noarch.rpm</p>
<p>Point to Point Protocol to setup your &#8220;modem&#8221; or whatever your connection consists of. This is the portion for your kernel.</p>
<p>3) Make sure ppp is working</p>
<p>modprobe ppp-compress-18 &#038;&#038; echo James Garvin has saved me from a life of Windows</p>
<p>Ok, so that is a bit of fun, but what does that command mean? Well, if on success of the modprobe command, I execute the echo command. Modprobe adds the module to the Linux kernel, while echo simply writes what ever you say back to the terminal.</p>
<p>4) Upgrade ppp</p>
<p>rpm &#8211;upgrade ppp-2.4.3-0.cvs_20040527.4.fc2.i386.rpm</p>
<p>http://prdownloads.sourceforge.net/&#8230;.4.fc2.i386.rpm</p>
<p>This is the ppp for the user. The kernel module for ppp has been installed and this is for the user.</p>
<p>5) Get the PPTP client</p>
<p>rpm &#8211;install pptp-linux-1.5.0-1.i386.rpm</p>
<p>http://prdownloads.sourceforge.net/&#8230;.5.0-1.i386.rpm</p>
<p>This is the &#8220;VPN Client,&#8221; so to speak. This is the GUI client in which you can setup VPN connections and various options.</p>
<p>6) Get phppcntl</p>
<p>rpm &#8211;install Getphp-pcntl php-pcntl-4.3.8-1.i386.rpm</p>
<p>http://prdownloads.sourceforge.net/&#8230;.3.8-1.i386.rpm</p>
<p>This is to help the GUI work.</p>
<p>7) Get the phpgtkmodule</p>
<p>rpm &#8211;install php-gtk-pcntl-1.0.0-2.i386.rpm</p>
<p>http://prdownloads.sourceforge.net/&#8230;.0.0-2.i386.rpm</p>
<p>This file also helps make the GUI work.</p>
<p> <img src='http://blog.sysadminupdates.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Get pptpconfig installed</p>
<p>rpm &#8211;install pptpconfig-20040722-0.noarch.rpm</p>
<p>http://prdownloads.sourceforge.net/&#8230;22-0.noarch.rpm</p>
<p>This command installs the Point to Point Tunneling Protocol. This is so the VPN can actually create the tunnel from A to B. VPNs can use two protocols, L2TP and PPTP. L2TP is Layer 2 Tunneling Protocol and does just what it says. It works at Layer 2 in the OSI model, the Data Link Layer.</p>
<p>9) Now at the command line type</p>
<p>pptpconfig</p>
<p>This command will popup a spiffy GUI for you to use.</p>
<p>10) Configure your connection</p>
<p>In the Server Tab we need to configure some basics:</p>
<p>|> Name: The name of the connection. You can call it anything you want<br />
|> Server: The server you are connecting to, either the IP or name of the server. eg: 64.233.187.99 or google.com<br />
|> Domain: A domain, if any, that the VPN is connecting to<br />
|> Username: Your login username for the VPN or the intranet<br />
|> Password: The login password for the VPN or the intranet</p>
<p>In the Routing Tab we need to make sure it is setup properly. Typically we need to send All to Tunnel.However, this can and will vary from VPN to VPN. Check with you local administrator on what radio button you need to choose.</p>
<p>The DNS Tab is usually quite simple; it will be either automatic, or we will have to enter some basic DNS information and any optionswe may need to include.</p>
<p>The Encryption Tab is a sticky point. We have a number of choices:</p>
<p>|> Require Microsoft PointtoPoint Encryption<br />
|> Refuse 40bit Encryption<br />
|> Refuse 128bit Encryption<br />
|> Refuse Stateless Encryption<br />
|> Refuse to Authenticate with EAP</p>
<p>You need to talk to your administrator and understand what your VPN requires. A typical setup will check box Require Microsoft PointtoPoint Encryption (for MS VPNS), Refuse 40bit Encryption, and Refuse Stateless Encryption. However, talk to your administrator to be sure.</p>
<p>The Miscellaneous Tab is our final tab. We shouldn&#8217;t have anything to do here. The default setup should work just fine in many cases.</p>
<p>We now click the Addbutton and highlight our new connection and choose Start. We have now created a VPN connection to a remote host! Congratulations for using Linux and sticking with a slightly frustrating task.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/16/setup-linux-vpn-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Install IE (Internet Explorer) On linux</title>
		<link>http://blog.sysadminupdates.com/2008/07/16/install-ie-internet-explorer-on-linux/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/16/install-ie-internet-explorer-on-linux/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 17:48:14 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux server]]></category>

		<category><![CDATA[Technical FAQ linux, windows Administration]]></category>

		<category><![CDATA[Bash Scripts + perl scripts]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/16/install-ie-internet-explorer-on-linux/</guid>
		<description><![CDATA[

IEs4Linux is a small shell script that can be run via console on any Linux machine with Wine installed. As the title suggests, it allows you to quickly and easily install that most infamous of Microsoft products: Internet Explorer.
The creator of IEs4Linux is Sérgio Luís Lopes Júnior, a 21 year old Brazilian student and self-proclaimed [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>IEs4Linux is a small shell script that can be run via console on any Linux machine with Wine installed. As the title suggests, it allows you to quickly and easily install that most infamous of Microsoft products: Internet Explorer.</p>
<p>The creator of IEs4Linux is Sérgio Luís Lopes Júnior, a 21 year old Brazilian student and self-proclaimed lover of Linux and OpenSource. Naturally, being open source, IEs4Linux is free. However, as with many people working on open source projects, Sérgio&#8217;s funding comes from the community; if you found IEs4Linux helpful, you can PayPal him a few dollars to continue development of the project.</p>
<p>IEs4Linux relies on the Wine project to supply an implementation of the Microsoft Windows API. The IEs4Linux script actually downloads the required CAB files directly from the Microsoft site; then, using cabextract, copies the files to a new Wine profile. This way, your existing Wine profiles are not affected, and any other software you have running will be just fine. In addition to installing Internet Explorer versions 5, 5.5, and 6, IEs4Linux also can install Flash 9 for you from Adobe.</p>
<p>IEs4Linux is a GPL product; however, Internet Explorer is a copyrighted product of Microsoft. This means that you will need to be in possession of a valid Windows license version greater than 95, although it will not be asked for during the installation process.</p>
<p>For the installation, you&#8217;ll need to be running the latest version of Ubuntu as your Linux distribution. IEs4Linux will work with almost every distribution, but the installation routine varies. This article assumes that you already have Ubuntu Desktop installed and operational.</p>
<p>Depending on how you like to install your software, I have included two sets of instructions, first the graphical (GUI) method and lastly the console (CLI) method.</p>
<p>Installing the required packages</p>
<p>To install all the applications required to enable IEs4Linux to run properly, ensure that you have the Universe repositories enabled. Open the Software Sources configuration screen, which can be found under Toolbar -> System -> Administration -> Software Sources.</p>
<p>Next, you need to select all the repositories for the CD-ROM/DVD option. You won&#8217;t need this option. The online repositories are kept up-to-date. Press the Close button when you&#8217;re finished.</p>
<p>Now it&#8217;s time to begin installation of the required packages. Go to Toolbar -> System -> Administration -> Synaptic Package Manager. Once it opens, search for Wine and cabextract. Once you find them, press Apply.</p>
<p>Bring in the console</p>
<p>You can also obtain the files from the console prompt. To begin, open a console. You can do this by going to the toolbar and going to Application -> Accessories -> Terminal. In the terminal, run the command: apt-get update &#038;&#038; apt-get install cabextract wine. The install process will begin after pressing [Enter]. The apt-get process download installs all the files and packages for wine for you.</p>
<p>Getting down to business</p>
<p>Now that you have Wine installed with cabextract, it&#8217;s time to download the IEs4Linux files. You can either go to the IEs4Linux Web site, or return to a console to enter this command to download the latest IEs4Linux build:</p>
<p>Code:</p>
<p>wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz</p>
<p>Downloading the IEs4Linux Installer.</p>
<p>After you have downloaded the latest build tarball, you need to cd to the directory where you downloaded tarball to if you did not do so from the console. This can be done easily with the command cd ies4linux-*. Next, enter the command tar xzvf ies4linux-latest.tar.gz in the console to decompress the tarball and change directories into the build directory. Finally, to launch the IEs4Linux script that will begin the installation process, type ./ies4linux.</p>
<p>You will be lead through a text-based series of screens that will ask you questions about what versions of Internet Explorer you want to install, as shown in Figure D. The first question asked will be if you wish to install version 5 and 5.5 of Internet Explorer; you can make that decision for yourself. In addition to installing Internet Explorer, IEs4Linux will also install the Flash Player plug-in automatically.</p>
<p>After a few minutes, the script will download all of the required files and install them on your computer automatically. Additionally, links on your desktop will be created to Internet Explorer making for quick access. The Internet Explorer launch binaries will exist in the newly created directory bin in your home directory. For quick access on command line, run ~/bin/ie6 to launch Internet Explorer version 6. You&#8217;ll see IE run.</p>
<p>Congratulations; you have successfully installed Internet Explorer version 5, 5.5, and 6 on your PC. With the assistance of IEs4Linux, it is possible to have Internet Explorer accessible to you as a tool on any Linux system that can run Wine.</p>
<p>Variations in other distributions</p>
<p>The install process for other distributions will be different according to that distro&#8217;s package system. But the rest is the same after that. For example, in Gentoo, the series of commands would be:</p>
<p>Code:</p>
<p>emerge &#8211;sync &#038;&#038; emerge wine cabextract.</p>
<p>For Fedora, the commands to install wine and cabextract are:<br />
Code:</p>
<p>yum -y install wine* yum -y install cabextract</p>
<p>For Mandriva, the directions are:<br />
Code:</p>
<p>urpmi wine cabextract</p>
<p>For more distributions and instructions, please visit the IEs4Linux site.</p>
<p>Known Issues</p>
<p>There are a number of known issues with the Internet Explorer version installed by IEs4Linux. Some of these include:</p>
<p>    * VML does not work.<br />
    * PNG transparency does not work even when using hacks (a consequence of the &#8220;CSS filter&#8221; bug).<br />
    * Windows Update does not work.<br />
    * JavaScript error dialog does not open.<br />
    * Modified toolbars are not saved.<br />
    * ActiveX may not work with some special cases.</p>
<p>The install of Internet Explorer made by IEs4Linux doesn&#8217;t have the JavaScript debugging enabled by default, which can be quite frustrating when you know there is a bug on the page, but can&#8217;t get the error message. To get around this, you will need to enable JavaScript debugging.</p>
<p>In the menu bar, go to Tools -> Internet Options to open the Internet Options dialog. Next, press on the Advanced tab and scroll down to the Browsing section. Uncheck the list item Disable Script Debugging.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/16/install-ie-internet-explorer-on-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Perl + regular expression and pattern matching</title>
		<link>http://blog.sysadminupdates.com/2008/07/15/perl-regular-expression-and-pattern-matching/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/15/perl-regular-expression-and-pattern-matching/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 18:08:09 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux server]]></category>

		<category><![CDATA[Cheap Dedicated server hosting. Cheapest dedicated serv]]></category>

		<category><![CDATA[Technical FAQ linux, windows Administration]]></category>

		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Bash Scripts + perl scripts]]></category>

		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/15/perl-regular-expression-and-pattern-matching/</guid>
		<description><![CDATA[

Pattern Matching and Regular Expressions
If you were paying attention, you noticed a huge loophole in the programs above: there&#8217;s nothing to prevent you from typing in a string variable when you&#8217;re supposed to be typing in a number. You can type in &#8220;dog&#8221; and &#8220;cat&#8221;, and the program will try to add &#8220;dog&#8221; and &#8220;cat&#8221; [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Pattern Matching and Regular Expressions</p>
<p>If you were paying attention, you noticed a huge loophole in the programs above: there&#8217;s nothing to prevent you from typing in a string variable when you&#8217;re supposed to be typing in a number. You can type in &#8220;dog&#8221; and &#8220;cat&#8221;, and the program will try to add &#8220;dog&#8221; and &#8220;cat&#8221; (which, if you&#8217;re curious, gives a result of zero.) You need some way to check to make sure that the person actually typed in numbers; then, if they didn&#8217;t, you can ask them again (with a looping control structure), until they get it right.</p>
<p>Welcome to the concepts of pattern matching and regular expressions, two of Perl&#8217;s powerful text-processing tools. Let&#8217;s start with a simple pattern first: one letter. If you want to test a variable to see if it contains the (lower-case) letter &#8220;z&#8221;, use this syntax:</p>
<p>   if ($x =~ /z/) {<br />
        print &#8220;$x has a z in it!\n&#8221;;<br />
   }</p>
<p>Let&#8217;s take that apart: if is just like while, except it only checks once (that is, it won&#8217;t loop around again and again.) Like while, it will execute every command inside the curly brackets if the statement inside the parentheses is true.</p>
<p>The statement inside the parentheses works like this: =~ makes a comparison between $x and whatever&#8217;s inbetween the two slashes; in this case, if there&#8217;s a z anywhere inside $x, then the statement is true.</p>
<p>Let&#8217;s up the ante, and match only if $x begins with the letter z:</p>
<p>  if ($x =~ /^z/) {<br />
      print &#8220;$x begins with a z!\n&#8221;;<br />
  }</p>
<p>^z is a regular expression; the carat (^) stands for the beginning of the string. Thus, the matching statement has to find a z immediately following the beginning of the string in order to be true.</p>
<p>How about words that begin with z and end with e? Use the regexp</p>
<p>   /^z.*e$/</p>
<p>The $ stands for the end of the string; the period stands for &#8220;any character whatsoever&#8221;; combined with the asterisk, it means &#8220;zero or more characters.&#8221; Without the asterisk,</p>
<p>  /^z.e$/</p>
<p>would mean &#8220;z followed by one character followed by e.&#8221;</p>
<p>There&#8217;s a lot of different regular expressions. For instance,</p>
<p>  /^z.+e$/</p>
<p>means &#8220;z followed by at least one character, followed by e.&#8221;</p>
<p>  /^z\w*e$/</p>
<p>means &#8220;z followed by zero or more word characters followed by e&#8221;&#8211;that is, &#8220;z!e&#8221; wouldn&#8217;t match.</p>
<p>So to make sure that somebody&#8217;s typing in numbers in our adding program, and not words, make the subroutine getnumber look like this:</p>
<p>  sub getnumber {<br />
      $number = &#8220;blah&#8221;;<br />
      while($number =~ /\D/){<br />
         print &#8220;Enter a number &#8220;;<br />
         $number = <>;<br />
         chop($number);<br />
      }<br />
      $number;<br />
  }</p>
<p>&#8220;\D&#8221; is the regular expression for non-digits; if any character in $number is not 0-9, the expression won&#8217;t match, and you&#8217;ll get asked to enter a number again.</p>
<p>Note how we had to set $number to include a non-digit ($number = &#8220;blah&#8221;) to get inside the loop the first time around.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/15/perl-regular-expression-and-pattern-matching/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Perl File Handeling</title>
		<link>http://blog.sysadminupdates.com/2008/07/15/perl-file-handeling/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/15/perl-file-handeling/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 18:07:26 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux server]]></category>

		<category><![CDATA[Cheap Dedicated server hosting. Cheapest dedicated serv]]></category>

		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Bash Scripts + perl scripts]]></category>

		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/15/perl-file-handeling/</guid>
		<description><![CDATA[

Filehandles
You can write to a file as easily as you can write to the terminal. The first step (almost the only step) is to open the file with the open command. Here&#8217;s an example:
   open(DOG,&#8221;>/home/scotty/data/dogs&#8221;);
DOG is the &#8220;filehandle&#8221;&#8211;the name by which you&#8217;ll refer to the open file from now on. It&#8217;s customary to [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Filehandles<br />
You can write to a file as easily as you can write to the terminal. The first step (almost the only step) is to open the file with the open command. Here&#8217;s an example:</p>
<p>   open(DOG,&#8221;>/home/scotty/data/dogs&#8221;);</p>
<p>DOG is the &#8220;filehandle&#8221;&#8211;the name by which you&#8217;ll refer to the open file from now on. It&#8217;s customary to use all caps for filehandles. The other thing inside the parens is the full pathname of the file; it&#8217;s prefixed with a > so you can write to it. (Without the > you could only read from it&#8211;we&#8217;ll talk about that in a second.)</p>
<p>Now to write a line of text to the file, just do it like this:</p>
<p>print DOG &#8220;This line goes into the<br />
             file and not to the screen.\n&#8221;;</p>
<p>Pretty easy, huh? I love Perl.</p>
<p>Since failure to successfully open a file can cause your program to go batty, it&#8217;s a good idea to have the program exit gracefully if it fails to open the file. To do that, use this syntax for the open command:</p>
<p>open(DOG,&#8221;>/home/scotty/data/dogs&#8221;)<br />
          || die &#8220;Couldn&#8217;t open DOG.\n&#8221;;</p>
<p>Now it will either open the file, or quit the program with an explanation why.</p>
<p>To read from a file, open it without the >:</p>
<p>open(DOG,&#8221;/home/scotty/data/dogs&#8221;)<br />
           || die &#8220;Couldn&#8217;t open DOG.\n&#8221;;</p>
<p>(If the file doesn&#8217;t exist, the program will quit.) Once the file is open, there are two common ways to get the information out. You can do it one line at a time, with lines like this:</p>
<p>   $x = <DOG>;</p>
<p>That copies the first line from DOG (or the next line, if you&#8217;ve already taken some lines out) and assigns it to $x. The <DOG> syntax is just like the <> we used earlier to get input from the keyboard; sticking DOG in there just tells Perl to get the input from the open file instead.</p>
<p>You can also do it in a loop. This program prints out all the contents of DOG:</p>
<p>  #!/usr/bin/perl<br />
  open(DOG,&#8221;/home/scotty/data/dogs&#8221;) ||<br />
                  die &#8220;Couldn&#8217;t open DOG.\n&#8221;;<br />
  while(<DOG>) {<br />
       print;<br />
  }</p>
<p>Notice how we didn&#8217;t specify a variable to store each line from DOG in, and we didn&#8217;t specify anything for the print command to print? This is a really important concept I should have introduced earlier: Perl features a default variable called $_. Basically, if you don&#8217;t specify which variable you want to use, or if you use a command like print by itself, Perl assumes you want to use $_.</p>
<p>Some other common commands that can assume you&#8217;re talking about $_:</p>
<p>  s/dog/cat/g;</p>
<p>That&#8217;s a valid line all by itself; it means &#8220;substitute all occurences of &#8216;dog&#8217; in the variable $_ with &#8216;cat&#8217;.&#8221; Another popular type of construction is</p>
<p>  print if (/dog/);</p>
<p>That means &#8220;print $_ if $_ has &#8216;dog&#8217; in it.&#8221;</p>
<p>$_ shows up everywhere in Perl, just to make your life easier. For instance, foreach will store its elements in $_ if you&#8217;re too lazy to name a variable yourself:</p>
<p>    foreach (@array) {<br />
        print if (/Tonight/);<br />
    }</p>
<p>You can assign from $_ or manipulate it just like any other variable, with commands like</p>
<p>   $_++;<br />
   $x = $_;</p>
<p>You just have to do it before the next time you overwrite $_ with a command like</p>
<p>   <DOG></p>
<p>&#8211;it&#8217;s a very temporary storage space.</p>
<p>When you&#8217;re done with a file, don&#8217;t forget to close it with the close command:</p>
<p>   close(DOG);</p>
<p>Filename Globbing<br />
Perl can read all the filenames in a directory (/home/scotty/bin in the following example) with this syntax:</p>
<p>    while($x = </home/scotty/bin/*>) {<br />
        &#8230;<br />
    }</p>
<p>One obvious and powerful use of this &#8220;filename globbing&#8221; is a loop like this:</p>
<p>while($x = </home/scotty/bin/*>) {<br />
    open(FILE,&#8221;$x&#8221;) ||<br />
        die &#8220;Couldn&#8217;t open $x for reading.\n&#8221;;<br />
    &#8230;<br />
}</p>
<p>Thus, the following simple program will print all lines containing the word &#8220;dog&#8221; (along with the names of the files they came from) in the /home/scotty/bin directory:</p>
<p>#!/usr/bin/perl<br />
while($x = </home/scotty/bin/*>) {<br />
    open(FILE,&#8221;$x&#8221;) || die &#8220;Couldn&#8217;t open $x for reading.\n&#8221;;<br />
    while(<FILE>){<br />
        if(/dog/) {<br />
            print &#8220;$x: $_&#8221;;<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/15/perl-file-handeling/feed/</wfw:commentRss>
		</item>
		<item>
		<title>find files and replace word in it using script</title>
		<link>http://blog.sysadminupdates.com/2008/07/15/find-files-and-replace-word-in-it-using-script/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/15/find-files-and-replace-word-in-it-using-script/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 17:56:36 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux server]]></category>

		<category><![CDATA[Technical FAQ linux, windows Administration]]></category>

		<category><![CDATA[Bash Scripts + perl scripts]]></category>

		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/15/find-files-and-replace-word-in-it-using-script/</guid>
		<description><![CDATA[

1. find /path/to/start/from/ -type f &#124; xargs perl -pi -e &#8217;s/applicationX/applicationY/g&#8217;
2. find . -type f -name &#8216;*.txt&#8217; -print &#124; while read i
do
sed &#8217;s&#124;applicationx&#124;applicationy&#124;g&#8217; $i > $i.tmp &#038;&#038; mv $i.tmp $i
done
3. find . -type f -print0 &#124; xargs -0 sed -i &#8217;s/Application/whatever/g&#8217;
4. To replace all instances of a string in a directory (subdirectories included) do:
Code:
perl -e [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>1. find /path/to/start/from/ -type f | xargs perl -pi -e &#8217;s/applicationX/applicationY/g&#8217;</p>
<p>2. find . -type f -name &#8216;*.txt&#8217; -print | while read i<br />
do<br />
sed &#8217;s|applicationx|applicationy|g&#8217; $i > $i.tmp &#038;&#038; mv $i.tmp $i<br />
done</p>
<p>3. find . -type f -print0 | xargs -0 sed -i &#8217;s/Application/whatever/g&#8217;</p>
<p>4. To replace all instances of a string in a directory (subdirectories included) do:<br />
Code:<br />
perl -e &#8220;s/FIND/REPLACE/g;&#8221; -pi.save $(find path/to/DIRECTORY -type f)</p>
<p>The above will make a backup temp file of your original<br />
If you do not want a temp file with the .save extension then do:<br />
Code:<br />
perl -e &#8220;s/FIND/REPLACE/g;&#8221; -pi $(find path/to/DIRECTORY -type f)</p>
<p>To search just files of type, .htm without a backup file in the current directory only (no subdirectories) you could use:</p>
<p>Code:<br />
perl -pi -e &#8217;s/design/dezine/g&#8217; *.htm</p>
<p>5. Bash script : - </p>
<p>#!/bin/sh<br />
echo enter file name with extension<br />
read NAME<br />
echo enter word to replace<br />
read FIND<br />
echo enter word that replaces<br />
read REPLACE<br />
for file in $(grep -il &#8220;$FIND&#8221; $NAME)<br />
do<br />
sed -e &#8220;s/$FIND/$REPLACE/ig&#8221; $file > /tmp/tempfile.tmp<br />
mv /tmp/tempfile.tmp $file<br />
done</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/15/find-files-and-replace-word-in-it-using-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Command and system information on different UNIX flavors (Solaris 8, HP-UX 10.x 11.x, FreeBSD, Linux, AIX)</title>
		<link>http://blog.sysadminupdates.com/2008/07/15/command-and-system-information-on-different-unix-flavours/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/15/command-and-system-information-on-different-unix-flavours/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 17:08:34 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux server]]></category>

		<category><![CDATA[Cheap Dedicated server hosting. Cheapest dedicated serv]]></category>

		<category><![CDATA[Technical FAQ linux, windows Administration]]></category>

		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/15/command-and-system-information-on-different-unix-flavours/</guid>
		<description><![CDATA[


Miscellaneous
 

                

Solaris 8
HP-UX 10.x 11.x
FreeBSD
Linux
AIX






                  /usr/ucb/whoami

                 [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<div class="guide">
<div class="heading">Miscellaneous</div>
<p> <br />
<table border="0" cellpadding="0" cellspacing="1" width="697" class="bodytext">
                </tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/ucb/whoami</td>
<td>
<p>                  /usr/bin/whoami</td>
<td>/usr/bin/whoami</td>
<td>/usr/bin/whoami</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/dos2unix</td>
<td>
                  /usr/bin/dos2ux</td>
<td>cd /usr/ports/converters/unix2dos</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/eject</td>
<td>
                  /usr/bin/tcio -r</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /usr/bin/fdformat</td>
<td>
                  /usr/bin/mediainit -f</td>
<td>/usr/sbin/fdformat</td>
<td>/usr/bin/fdformat</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/makedev</td>
<td>
                  /usr/sbin/mknod</td>
<td>/sbin/mknod</td>
<td>/bin/mknod</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/mpstat</td>
<td>
                  /opt/perf/bin/glance,<br />
                  <br />
                  /opt/perf/bin/gpm</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/pagesize</td>
<td>
                  /opt/perf/bin/glance,<br />
                  <br />
                  /opt/perf/bin/gpm</td>
<td>/usr/bin/pagesize</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/setfacl</td>
<td>
<p>                  /usr/bin/chacl</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/showrev</td>
<td>
                  /usr/bin/uname -a</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /usr/bin/tip</td>
<td>
                  /usr/bin/cu</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/unix2dos</td>
<td>
                  /usr/bin/ux2dos</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/add_drv</td>
<td>
                  /usr/sbin/mknod,<br />
                  <br />
                  /usr/sbin/insf,<br />
                  <br />
                  /usr/sbin/mksf</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/cfgadm</td>
<td>
<p>                  /usr/sbin/ioscan</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/devfsadm</td>
<td>
                  /usr/sbin/mknod,<br />
                  <br />
                  /usr/sbin/insf,<br />
                  <br />
                  /usr/sbin/mksf</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/dhcpconfig</td>
<td>
<p>                  /sbin/auto_parms</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/dhtadm</td>
<td>
                  /usr/sbin/dhcptools</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /usr/sbin/disks</td>
<td>
                  /usr/sbin/mknod,<br />
                  <br />
                  /usr/sbin/insf,<br />
                  <br />
                  /usr/sbin/mksf</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/fdisk</td>
<td>
                  /usr/sbin/lvlnboot,<br />
                  <br />
                  /usr/sbin/lvcreate</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/growfs</td>
<td>
                  /usr/sbin/extendfs,<br />
                  <br />
                  /usr/sbin/fsadm,<br />
                  <br />
                  /usr/sbin/lvextend</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/installboot</td>
<td>
                  /usr/sbin/lvlnboot</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/metaparam</td>
<td>
<p>                  /usr/sbin/lvchange,<br />
                  <br />
                  /usr/sbin/vgchange</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /usr/sbin/metastat</td>
<td>
                  /usr/sbin/lvdisplay,<br />
                  <br />
                  /usr/sbin/pvdisplay,<br />
                  <br />
                  /usr/sbin/vgdisplay</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/metasync</td>
<td>
                  /usr/sbin/lvsync,<br />
                  <br />
                  /usr/sbin/vgsyncr</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/nslookup</td>
<td>
<p>                  /usr/bin/nslookup</td>
<td>/usr/sbin/nslookup</td>
<td>/usr/bin/nslookup</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/poweroff</td>
<td>
                  /usr/sbin/shutdown</td>
<td>
                  /sbin/shutdown -h now</td>
<td>
                  shutdown -h now</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /usr/sbin/prtconf</td>
<td>
                  /usr/bin/getconf</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/prtconf | grep -i memory</td>
<td>
                  /usr/sbin/swapinfo</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/rem_drv</td>
<td>
                  /usr/sbin/rmsf</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/strace</td>
<td>
                  /usr/bin/strace</td>
<td></td>
<td>/usr/bin/strace [!]</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/strclean</td>
<td>
<p>                  /usr/bin/strclean</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/strerr</td>
<td>
                  /usr/bin/strerr</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /usr/sbin/sysdef</td>
<td>
                  /usr/sbin/ioscan,<br />
                  <br />
                  /usr/sbin/sysdef</td>
<td></td>
<td></td>
<td>lsdev</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/tapes</td>
<td>
<p>                  /usr/sbin/mknod,<br />
                  <br />
                  /usr/sbin/insf,<br />
                  <br />
                  /usr/sbin/mksf</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/ucb/fasthalt</td>
<td>
                  /usr/sbin/reboot -q,<br />
                  </p>
<p>                  /usr/sbin/shutdown</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<div class="heading">System Administration Tools</div>
<p></p>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="1" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/admintool</td>
<td>/usr/sbin/sam</td>
<td>/stand/sysinstall</td>
<td>/bin/linuxconf</td>
<td>/usr/bin/smit (GUI),<br />
                  </p>
<p>                  /usr/bin/smitty</td>
</tr>
<tr>
<td height="30" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Disk Space and Information</div>
<p>
		  </td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /usr/sbin/df</td>
<td>
                  /usr/bin/df</td>
<td>/bin/df</td>
<td>/bin/df</td>
<td>/usr/bin/df</td>
</tr>
<tr>
<td>
                  /usr/sbin/df -k</td>
<td>
                  /usr/bin/bdf</td>
<td>/bin/df</td>
<td>/bin/df</td>
<td>/usr/bin/df -k</td>
</tr>
<tr>
<td>
                  /usr/sbin/mount,<br />
                  <br />
                  umount</td>
<td>
                  /sbin/mount,<br />
                  <br />
                  umount</td>
<td>
                  /sbin/mount,<br />
                  <br />
                  umount</td>
<td>
<p>                  /bin/mount,<br />
                  <br />
                  umount</td>
<td>
                  /sbin/mount,<br />
                  <br />
                  umount</td>
</tr>
<tr>
<td>
                  /usr/sbin/devinfo</td>
<td>
                  /usr/sbin/diskinfo<br />
                  <br />
                  /dev/rdsk/device_file</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Kernel Configuration</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/etc/system</td>
<td>/stand/system</td>
<td>/usr/src/sys</td>
<td>/usr/src/linux</td>
<td>chdev -l sys0 -a</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Processes</div>
<p></td>
</tr>
<tr>
<td>
                  <span class="subheadNoLink"><b>Solaris 8</b></span></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/ps -ef</td>
<td>/usr/bin/ps -ef</td>
<td>/bin/ps -axj</td>
<td>/bin/ps -ef</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/bin/truss</td>
<td>tusc</td>
<td>/usr/bin/truss</td>
<td>/usr/bin/strace</td>
<td>syscalls</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/iostat</td>
<td>/usr/bin/iostat</td>
<td>/usr/sbin/iostat</td>
<td></td>
<td>/usr/bin/iostat</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/ucb/users</td>
<td>/usr/bin/users</td>
<td>/usr/bin/users</td>
<td>/usr/bin/users</td>
<td>/usr/bin/users</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/prstat</td>
<td>/usr/bin/top</td>
<td>/usr/bin/top</td>
<td>/usr/bin/top</td>
<td>/usr/bin/top</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Physical Memory</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/dmesg | grep mem<br />
                  </p>
<p>                  /usr/sbin/prtconf | grep Memory
                  </td>
<td>/etc/dmesg | grep -i phys</td>
<td>/sbin/dmesg | grep &#8220;real mem&#8221;</td>
<td>grep MemTotal /proc/meminfo</td>
<td>bootinfo -r</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Hardware Status/Information</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>dmesg</td>
<td>dmesg</td>
<td>dmesg</td>
<td>dmesg</td>
<td>errpt -a</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/arch -k</td>
<td>/usr/bin/model</td>
<td>/bin/arch</td>
<td>/usr/bin/uname -m</td>
<td>/usr/bin/uname -m</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">&#8220;Unique&#8221; ID</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/dmesg | grep Ether</td>
<td>/usr/sbin/lanscan</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/hostid</td>
<td>/usr/sbin/lanscan,<br />
                  <br />
                  /usr/bin/uname -i</td>
<td></td>
<td>/usr/bin/hostid</td>
<td>/usr/sbin/hostid</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Swap</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/swap -a</td>
<td>/usr/sbin/swapon -a</td>
<td>/sbin/swapon -a</td>
<td>/sbin/swapon -a</td>
<td>swapon -a</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/swap -l</td>
<td>/usr/sbin/swapinfo</td>
<td>/usr/sbin/swapinfo</td>
<td>/usr/bin/free</td>
<td>lsps -a</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>vmstat</td>
<td>vmstat</td>
<td>vmstat</td>
<td>vmstat</td>
<td>vmstat</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">System Files</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/etc/rc#.d</td>
<td>/sbin/rc#.d</td>
<td>/etc/rc*</td>
<td>/etc/rc#.d/</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/etc/rc#.d</td>
<td>/sbin/init.d</td>
<td></td>
<td>/etc/init.d/</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/etc/vfstab</td>
<td>/etc/fstab</td>
<td>/etc/fstab</td>
<td>/etc/fstab</td>
<td>/etc/filesystems</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/etc/inet/hosts</td>
<td>/etc/hosts</td>
<td>/etc/hosts</td>
<td>/etc/hosts</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/etc/shadow</td>
<td>/etc/passwd</td>
<td>/etc/master.passwd</td>
<td>/etc/shadow</td>
<td>/etc/security/passwd</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /etc/group</td>
<td>
                  /etc/group,<br />
                  <br />
                  /etc/logingroup</td>
<td>/etc/group</td>
<td>/etc/group</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
<p>                  /etc/format.dat</td>
<td>
                  /etc/disktab</td>
<td>/etc/disktab</td>
<td></td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">The X Window System</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/openwin/bin/xterm</td>
<td>/usr/bin/X11/xterm</td>
<td>/usr/X11R6/bin/xterm</td>
<td>/usr/X11R6/bin/xterm</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/openwin/bin/xhost</td>
<td>/usr/bin/X11/xhost</td>
<td>/usr/X11R6/bin/xhost</td>
<td>/usr/X11R6/bin/xhost</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Hostname</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/hostname</td>
<td>/usr/bin/hostname</td>
<td>/bin/hostname</td>
<td>/bin/hostname</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/etc/inet/hosts</td>
<td>/etc/hosts</td>
<td>/etc/hosts</td>
<td>/etc/hosts</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/uname -a</td>
<td>/usr/bin/uname -ae</td>
<td>/usr/bin/uname -a</td>
<td>/bin/uname -a</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Networking</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/showmount</td>
<td>/usr/sbin/showmount</td>
<td>/usr/bin/showmount</td>
<td>/sbin/showmount</td>
<td>/usr/bin/showmount</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/etc/dfs/dfstab</td>
<td>/etc/exports</td>
<td>/etc/exports</td>
<td>/etc/exports</td>
<td>/etc/exports</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/share</td>
<td>/usr/sbin/exportfss</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/lib/netsvc/yp/ypbind</td>
<td>/usr/lib/netsvc/yp/ypbind</td>
<td>/usr/sbin/ypbind</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/route</td>
<td>/usr/sbin/route</td>
<td>/sbin/route</td>
<td>/sbin/route</td>
<td>/usr/sbin/route</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/in.routed</td>
<td>/usr/sbin/gated</td>
<td>/sbin/routed</td>
<td></td>
<td>/usr/sbin/gated</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/netstat</td>
<td>/usr/bin/netstat</td>
<td>/bin/netstat</td>
<td>/usr/bin/netstat</td>
<td>/usr/sbin/netstat</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/rsh</td>
<td>/usr/bin/remsh</td>
<td>/usr/bin/rsh</td>
<td></td>
<td>/usr/bin/rsh</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Tape Copies</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/cpio</td>
<td>/usr/bin/cpio</td>
<td>/usr/bin/cpio</td>
<td>/bin/cpio</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/tar</td>
<td>/usr/bin/tar</td>
<td>/usr/bin/tar</td>
<td>/bin/tar</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  tar cvf /dev/rmt/0m</td>
<td>
<p>                  tar cvf /dev/rmt/0m</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>tar cvf /dev/rmt/0m file</td>
<td>tar cvf /dev/rmt/0m file</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>tar xvf /dev/rmt/0m</td>
<td>tar xvf /dev/rmt/0m</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Tape Devices</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/vol/dev/dsk/cXtXdX (CD-ROM)</td>
<td>/dev/dsk/c0tXd0<br />
                  <br />
                  (&#8221;X&#8221; is address)</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/dev/rmt/0m (tape)</td>
<td>/dev/rmt/0m</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/eject</td>
<td>/usr/bin/tcio -r</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Software</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/pkgadd</td>
<td>/usr/sbin/swinstall</td>
<td>/usr/sbin/pkg_add</td>
<td>rpm -i[U]vh</td>
<td>installp -a</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/pkginfo</td>
<td>/usr/sbin/swlist</td>
<td>/usr/sbin/pkg_info</td>
<td>rpm -qa</td>
<td>lslpp -L</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/pkgrm</td>
<td>/usr/sbin/swremove</td>
<td>/usr/sbin/pkg_delete</td>
<td>rpm -e</td>
<td>installp [-r|-u]</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/showrev  -p</td>
<td>/usr/sbin/swlist | grep PH</td>
<td></td>
<td></td>
<td>instfix -ia</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/patchadd</td>
<td>/usr/sbin/swinstall</td>
<td></td>
<td></td>
<td>instfix</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/patchrm</td>
<td>/usr/sbin/swremove</td>
<td></td>
<td></td>
<td>installp -r</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/pkgchk</td>
<td>/usr/sbin/swverify</td>
<td></td>
<td></td>
<td>lppchk</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/swmtool</td>
<td>/usr/sbin/swinstall,<br />
                  <br />
                  /usr/sbin/swremove</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/pkgmk</td>
<td>
<p>                  /usr/sbin/swpackage</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Daemons</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/cron</td>
<td>
<p>                  /usr/bin/cron</td>
<td>/usr/sbin/cron</td>
<td>/usr/sbin/cron</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/atq</td>
<td>
                  /usr/bin/at -q</td>
<td>/usr/bin/atq</td>
<td>/usr/bin/atq</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/atrm</td>
<td>
<p>                  /usr/bin/at -r</td>
<td>/usr/bin/atrm</td>
<td>/usr/bin/atrm</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Backup/Restore</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/ufsdump</td>
<td>/usr/sbin/fbackup,<br />
                  <br />
                  dump,<br />
                  <br />
                  rdump</td>
<td>/sbin/dump</td>
<td></td>
<td>backup</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/sbin/ufsrestore</td>
<td>
                  /usr/sbin/frecover,<br />
                  </p>
<p>                  restore,<br />
                  <br />
                  rrestore</td>
<td>/sbin/restore</td>
<td></td>
<td>restore</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Core Files</div>
<p></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/savecore</td>
<td>
<p>                  /sbin/savecrash</td>
<td>/sbin/savecore</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/crash</td>
<td>
                  /usr/sbin/crashutil</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/coreadm</td>
<td>
                  /etc/rc.config.d/savecrash</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Disk Formatting</div>
<p></td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/format</td>
<td>
                  /usr/bin/mediainit</td>
<td>/sbin/disklabel [?]</td>
<td>/sbin/mke2fs [?]</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Disk Partitioning</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/format</td>
<td>
                  /usr/sbin/pvcreate,<br />
                  <br />
                  vgcreate,<br />
                  <br />
                  lvcreate</td>
<td>/sbin/fdisk</td>
<td>/sbin/fdisk</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Disk Maintenance</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/sbin/format</td>
<td>
                  /usr/sbin/pvremove,<br />
                  </p>
<p>                  vgremove, lvremove,<br />
                  <br />
                  vgreduce, lvreduce,<br />
                  <br />
                  vgextend, lvextend,<br />
                  <br />
                  pvdisplay, vgdisplay,<br />
                  <br />
                  lvdisplay</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<div class="heading">Printer/Plotter</div>
<p></td>
</tr>
<tr>
<td><b>Solaris 8</b></td>
<td><b>HP-UX 10.x 11.x</b></td>
<td><b>FreeBSD</b></td>
<td><b>Linux</b></td>
<td><b>AIX</b></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td>
                  /etc/printers.conf</td>
<td>
<p>                  /usr/lib/lp/model</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/lpstat</td>
<td>/usr/bin/lpstat</td>
<td></td>
<td></td>
<td>/usr/bin/lpstat</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/bin/lp</td>
<td>
                  /usr/bin/lp</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>/usr/bin/cancel</td>
<td>/usr/bin/cancel</td>
<td></td>
<td></td>
<td>qcan</td>
</tr>
<tr>
<td height="10" colspan="4"></td>
</tr>
<tr>
<td>
                  /usr/spool/lp/model</td>
<td>
                  /usr/lib/lp/model</td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td colspan="4">
   </table>
</p></div>
<p> <!-- guide --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/15/command-and-system-information-on-different-unix-flavours/feed/</wfw:commentRss>
		</item>
		<item>
		<title>software to find disk space utilized in windows OS</title>
		<link>http://blog.sysadminupdates.com/2008/07/08/sotware-to-find-disk-space-utilized-in-windows-os/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/08/sotware-to-find-disk-space-utilized-in-windows-os/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 10:28:28 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Windows Server]]></category>

		<category><![CDATA[Windows 2003 server]]></category>

		<category><![CDATA[Windows Xp Tips and tweaks]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/08/sotware-to-find-disk-space-utilized-in-windows-os/</guid>
		<description><![CDATA[

yes,, if you are looking for some software to find out which folders on your drive utilizing too much space then &#8230; Drivespacio is an excellent utility you can use to find those mystery files hiding somewhere on your harddrive.  Remember, clean your harddrive with an excellent utility such as ccleaner to get rid [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>yes,, if you are looking for some software to find out which folders on your drive utilizing too much space then &#8230; <a href="http://www.drivespacio.f-sw.com/">Drivespacio</a> is an excellent utility you can use to find those mystery files hiding somewhere on your harddrive.  Remember, clean your harddrive with an excellent utility such as <a href="http://www.ccleaner.com/">ccleaner</a> to get rid of internet and temporary files before running and then search your harddrive.  Drivespacio allows you to move through directories, delete files as necessary and find the mystery behind what is hogging your harddrive.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/08/sotware-to-find-disk-space-utilized-in-windows-os/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Split big files into many small files</title>
		<link>http://blog.sysadminupdates.com/2008/07/04/split-big-files-into-many-small-files/</link>
		<comments>http://blog.sysadminupdates.com/2008/07/04/split-big-files-into-many-small-files/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 13:01:05 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux server]]></category>

		<category><![CDATA[Technical FAQ linux, windows Administration]]></category>

		<guid isPermaLink="false">http://blog.sysadminupdates.com/2008/07/04/split-big-files-into-many-small-files/</guid>
		<description><![CDATA[

# split -l 100 test test_
That will split the test file into different files with test_** name every file have 100 lines of test file. You can see below files after executing that command.
# ls -la
total 56
drwxr-xr-x  2 root root  4096 Jul  4 07:36 .
drwxr-x&#8212;  6 root root  4096 Jul [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p># split -l 100 test test_<br />
That will split the test file into different files with test_** name every file have 100 lines of test file. You can see below files after executing that command.<br />
# ls -la<br />
total 56<br />
drwxr-xr-x  2 root root  4096 Jul  4 07:36 .<br />
drwxr-x&#8212;  6 root root  4096 Jul  4 07:35 ..<br />
-rw-r&#8211;r&#8211;  1 root root 18477 Jul  4 07:34 test<br />
-rw-r&#8211;r&#8211;  1 root root  4059 Jul  4 07:36 test_aa<br />
-rw-r&#8211;r&#8211;  1 root root  5333 Jul  4 07:36 test_ab<br />
-rw-r&#8211;r&#8211;  1 root root  5374 Jul  4 07:36 test_ac<br />
-rw-r&#8211;r&#8211;  1 root root  3711 Jul  4 07:36 test_ad</p>
<p># cat test |wc -l<br />
360<br />
# cat xaa |wc -l<br />
100<br />
# cat xab |wc -l<br />
100<br />
# cat xac |wc -l<br />
100<br />
# cat xad |wc -l<br />
60<br />
#</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sysadminupdates.com/2008/07/04/split-big-files-into-many-small-files/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
