<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.freebsdwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.freebsdwiki.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=216.120.36.3</id>
		<title>FreeBSDwiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.freebsdwiki.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=216.120.36.3"/>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php/Special:Contributions/216.120.36.3"/>
		<updated>2026-09-25T04:11:14Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://www.freebsdwiki.net/index.php/Cat</id>
		<title>Cat</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php/Cat"/>
				<updated>2011-06-10T13:46:26Z</updated>
		
		<summary type="html">&lt;p&gt;216.120.36.3: /* Related link */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Found in /bin/cat, when [[ca&lt;br /&gt;
5a8&lt;br /&gt;
t]] is given a file as an argument, it will print out the file contents to your console, or it can be [[redirected]] to another file or process.&lt;br /&gt;
&lt;br /&gt;
 samizdata# '''cat /etc/fstab'''&lt;br /&gt;
 # Device                Mountpoint      FStype  Options         Dump    Pass#&lt;br /&gt;
 /dev/da0b               none            swap    sw              0       0&lt;br /&gt;
 /dev/da1b             &lt;br /&gt;
a18&lt;br /&gt;
  none            swap    sw              0       0&lt;br /&gt;
 /dev/da0a               /               ufs     rw              1       1&lt;br /&gt;
 /dev/da0d               /tmp            ufs     rw              2       2&lt;br /&gt;
 /dev/da1e               /usr            ufs     rw              2       2&lt;br /&gt;
 /dev/da1d               /var            ufs     rw              2       2&lt;br /&gt;
 /dev/cd0                /cdrom          cd9660  ro,noauto       0       0&lt;br /&gt;
&lt;br /&gt;
Related commands are '''zcat''' (aka '''gzcat''') and '''bzcat''', for use with gzipped and bzipped archives, respectively.  Very useful for easily reading rotated, compressed logfiles - for example, let's say I'm tracking down some jackass that keeps trying to find a way into my server, and I want to look at one of the older sections of my auth log:&lt;br /&gt;
&lt;br /&gt;
 ph34r# '''bzcat auth.log.0.bz2 | grep Illegal'''&lt;br /&gt;
 Oct 19 20:47:47 ph34r sshd[35556]: Illegal user adam from 218.38.28.136&lt;br /&gt;
 Oct 19 20:47:49 ph34r sshd[35558]: Illegal user alan from 218.38.28.136&lt;br /&gt;
 Oct 19 20:47:52 ph34r sshd[35560]: Illegal user frank from 218.38.28.136&lt;br /&gt;
 Oct 19 20:47:54 ph34r sshd[35562]:&lt;br /&gt;
5a8&lt;br /&gt;
 Illegal user george from 218.38.28.136&lt;br /&gt;
 Oct 19 20:47:56 ph34r sshd[35564]: Illegal user henry from 218.38.28.136&lt;br /&gt;
 Oct 19 20:47:59 ph34r sshd[35566]: Illegal user john from 218.38.28.136&lt;br /&gt;
 Oct 19 20:48:14 ph34r sshd[35578]: Illegal user test from 218.38.28.136&lt;br /&gt;
&lt;br /&gt;
Without having to muck around with multiple steps or temporary files or any of that business, I told my server to load up the bzip archive of the last section of my auth log, decompress it, and send the results to [[grep]] so that I'd only see the entries related to &amp;quot;Illegal&amp;quot; users.  And voila - I can see that the idiot at the APNIC address 218.38.28.136 is trying a [[Block repeated illegal or failed SSH logins|dictionary-style username attack]] on my server.&lt;br /&gt;
&lt;br /&gt;
==Related link==&lt;br /&gt;
* [[Block repeated illegal or failed SSH logins]]&lt;br /&gt;
&lt;br /&gt;
[[category: System Commands]]&lt;/div&gt;</summary>
		<author><name>216.120.36.3</name></author>	</entry>

	</feed>