<?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>aw's blog 姿态永恒 &#187; 关于iphone的文章</title>
	<atom:link href="http://www.awflasher.com/blog/tag/iphone/feed" rel="self" type="application/rss+xml" />
	<link>http://www.awflasher.com/blog</link>
	<description>分享互联网, 分享人生</description>
	<lastBuildDate>Sun, 29 Jan 2012 11:57:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>自己安装的WordPress2.5.1以上的版本将原生支持iPhone (已从官方拿到视频)</title>
		<link>http://www.awflasher.com/blog/archives/1374</link>
		<comments>http://www.awflasher.com/blog/archives/1374#comments</comments>
		<pubDate>Sat, 12 Jul 2008 09:29:00 +0000</pubDate>
		<dc:creator>aw</dc:creator>
				<category><![CDATA[博客世界]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iPod-Touch]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.awflasher.com/blog/archives/1374</guid>
		<description><![CDATA[据悉，iPhone上将有一个独立的客户端来访问所有自己搭建的WordPress博客（2.5.1以上版本）。我认为，技术上应该是实现一次User-Agent的判断然后针对iPhone提供制定化的体验。这对于个人博客在iPhone上的推广必然是有意义的。至少，用iPhone可以方便地维护一个英文博客了。（中文博客由于输入法问题恐怕用iPhone比较辛苦） 已经通过Automattic的一位副总裁那边拿到视频： 7条评论, 立即发言 &#124; 本文关键词: iphone, iPod-Touch, WordPress ©aw's blog 姿态永恒 1984-2008 &#124; 链接地址 - http://www.awflasher.com/blog/archives/1374 @awguo （新浪微博） &#124; @awguo （腾讯微博） &#124; Twitter: @awguo]]></description>
			<content:encoded><![CDATA[<p>据悉，iPhone上将有一个独立的客户端来访问所有自己搭建的WordPress博客（2.5.1以上版本）。我认为，技术上应该是实现一次User-Agent的判断然后针对iPhone提供制定化的体验。这对于个人博客在iPhone上的推广必然是有意义的。至少，用iPhone可以方便地维护一个英文博客了。（中文博客由于输入法问题恐怕用iPhone比较辛苦）</p>
<p>已经通过<a href="http://automattic.com/">Automattic</a>的一位副总裁那边拿到视频：</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2q7UEXphzio&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/2q7UEXphzio&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<div style="border-top:1px dotted #ddd;width:100%;margin:5px 0"></div>
<p>
<strong>
<a href="http://www.awflasher.com/blog/archives/1374#awcomment"><strong>7</strong>条评论</a>,
<a href="http://www.awflasher.com/blog/archives/1374#awcomment">立即发言</a>
</strong>
|
本文关键词: <a href="http://www.awflasher.com/blog/tag/iphone" rel="tag">iphone</a>, <a href="http://www.awflasher.com/blog/tag/ipod-touch" rel="tag">iPod-Touch</a>, <a href="http://www.awflasher.com/blog/tag/wordpress" rel="tag">WordPress</a><br/></p>
<p>©<a href="http://www.awflasher.com/blog" title="aw's blog 姿态永恒">aw's blog 姿态永恒</a> 1984-2008  | <a href="http://www.awflasher.com/blog/archives/1374">链接地址</a> - http://www.awflasher.com/blog/archives/1374
</p>
<p><a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="http://weibo.com/awguo">@awguo （新浪微博）</a> | <a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="http://t.qq.com/awguo">@awguo （腾讯微博）</a> | <a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="https://twitter.com/awguo">Twitter: @awguo</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.awflasher.com/blog/archives/1374/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>适合iPhone下使用的一些Unix命令，感谢Paveo整理</title>
		<link>http://www.awflasher.com/blog/archives/1348</link>
		<comments>http://www.awflasher.com/blog/archives/1348#comments</comments>
		<pubDate>Wed, 25 Jun 2008 15:38:15 +0000</pubDate>
		<dc:creator>aw</dc:creator>
				<category><![CDATA[博客世界]]></category>
		<category><![CDATA[日记本子]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iPod-Touch]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.awflasher.com/blog/archives/1348</guid>
		<description><![CDATA[感谢少钧同学的整理。我的iPod Touch有得玩了。在体验了Cydia带来apt-get的快乐和Python的便捷之后，我想有更多新玩意可以学习了！ 以下命令收集自这个页面。 arch show architecture of machine uname -r show used kernel version dmidecode -q show hardware system components &#8211; (SMBIOS / DMI) hdaparm -i /dev/hda displays the characteristics of a hard-disk hdparm -tT /dev/sda perform test reading on a hard-disk cat /proc/cpuinfo show information CPU info cat /proc/interrupts show interrupts cat /proc/meminfo verify [...]]]></description>
			<content:encoded><![CDATA[<p>感谢<a href="http://www.owind.com/">少钧</a>同学的整理。我的<a title="iPod Touch" href="http://www.awflasher.com/blog/tag/ipod-touch">iPod Touch</a>有得玩了。在体验了Cydia带来apt-get的快乐和Python的便捷之后，我想有更多新玩意可以学习了！</p>
<p>以下命令收集自这个<a href="http://doc.owind.org/Linux-command-lines/Linux-command-line-for-iphone.html">页面</a>。</p>
<table cellspacing="1" cellpadding="4" width="100%" border="1">
<tbody>
<tr>
<td><span>arch</span></td>
<td>show architecture of machine</td>
</tr>
<tr>
<td><span>uname -r</span></td>
<td>show used kernel version</td>
</tr>
<tr>
<td><span>dmidecode -q</span></td>
<td>show hardware system components &#8211; (SMBIOS / DMI)</td>
</tr>
<tr>
<td><span>hdaparm -i /dev/hda</span></td>
<td>displays the characteristics of a hard-disk</td>
</tr>
<tr>
<td><span>hdparm -tT /dev/sda</span></td>
<td>perform test reading on a hard-disk</td>
</tr>
<tr>
<td><span>cat /proc/cpuinfo</span></td>
<td>show information CPU info</td>
</tr>
<tr>
<td><span>cat /proc/interrupts</span></td>
<td>show interrupts</td>
</tr>
<tr>
<td><span>cat /proc/meminfo</span></td>
<td>verify memory use</td>
</tr>
<tr>
<td><span>cat /proc/swaps</span></td>
<td>show file(s) swap</td>
</tr>
<tr>
<td><span>cat /proc/version</span></td>
<td>show version of the kernel</td>
</tr>
<tr>
<td><span>cat /proc/net/dev</span></td>
<td>show network adpters and statistics </td>
</tr>
<tr>
<td><span>cat /proc/mounts</span></td>
<td>show mounted file system(s)</td>
</tr>
<tr>
<td><span>lspci -tv</span></td>
<td>display PCI devices</td>
</tr>
<tr>
<td><span>lsusb -tv</span></td>
<td>show USB devices</td>
</tr>
<tr>
<td><span>date</span></td>
<td>show system date</td>
</tr>
<tr>
<td><span>cal 2007</span></td>
<td>show the timetable of 2007</td>
</tr>
<tr>
<td><span>date 041217002007.00 </span></td>
<td>set date and time &#8211; MonthDayhoursMinutesYear.Secondi</td>
</tr>
<tr height="31">
<td height="31"><span>clock -w            <br /></span></td>
<td>save changes on BIOS</td>
</tr>
<tr>
<td height="8"><span>shutdown -h now</span></td>
<td>shutdown system</td>
</tr>
<tr>
<td height="8">init 0 </td>
</tr>
<tr>
<td><span>shutdown -r hours:minutes &amp;</span></td>
<td>planned shutdown of the system</td>
</tr>
<tr>
<td><span>shutdown -c</span></td>
<td>cancel a planned shutdown of the system</td>
</tr>
<tr>
<td><span>shutdown -r now</span></td>
<td>reboot</td>
</tr>
<tr>
<td><span>reboot</span></td>
</tr>
<tr>
<td><span>logout</span></td>
<td>leaving session</td>
</tr>
<tr>
<td><span>cd /home</span></td>
<td>enter to directory &#8216;/ home&#8217;</td>
</tr>
<tr>
<td><span>cd ..</span></td>
<td>go back one level</td>
</tr>
<tr>
<td><span>cd ../..</span></td>
<td>go back two levels</td>
</tr>
<tr>
<td><span>cd</span></td>
<td>go to home directory</td>
</tr>
<tr>
<td><span>cd ~utente</span></td>
<td>go to home directory</td>
</tr>
<tr>
<td><span>cd -</span></td>
<td>go to previous directory</td>
</tr>
<tr>
<td><span>pwd</span></td>
<td>show the path of work directory</td>
</tr>
<tr>
<td><span>ls</span></td>
<td>view files of directory</td>
</tr>
<tr>
<td><span>ls -F</span></td>
<td>view files of directory</td>
</tr>
<tr>
<td><span>ls -l</span></td>
<td>show details of files and directory</td>
</tr>
<tr>
<td><span>ls -a</span></td>
<td>show hidden files</td>
</tr>
<tr>
<td><span>ls *[0-9]*</span></td>
<td>show files and directory containing numbers</td>
</tr>
<tr>
<td><span>lstree</span></td>
<td>show files and directories in a tree starting from root</td>
</tr>
<tr>
<td><span>mkdir dir1</span></td>
<td>create a directory called &#8216;dir1&#8242;</td>
</tr>
<tr>
<td><span>mkdir dir1 dir2</span></td>
<td>create two directories simultaneously</td>
</tr>
<tr>
<td><span>mkdir -p /tmp/dir1/dir2</span></td>
<td>create a directory tree</td>
</tr>
<tr>
<td height="3"><span>rm -f file1</span></td>
<td>delete file called &#8216;file1&#8242;</td>
</tr>
<tr>
<td height="8"><span>rmdir dir1 </span></td>
<td>delete directory called &#8216;dir1&#8242;</td>
</tr>
<tr>
<td><span>rm -rf dir1</span></td>
<td>remove a directory called &#8216;dir1&#8242; and contents recursively</td>
</tr>
<tr>
<td><span>rm -rf dir1 dir2</span></td>
<td>remove two directories and their contents recursively</td>
</tr>
<tr>
<td><span>mv dir1 new_dir</span></td>
<td>rename / move a file or directory </td>
</tr>
<tr>
<td><span>cp file1 file2</span></td>
<td>copying a file</td>
</tr>
<tr>
<td><span>cp dir/* .</span></td>
<td>copy all files of a directory within the current work directory</td>
</tr>
<tr>
<td><span>cp -a /tmp/dir1 .</span></td>
<td>copy a directory within the current work directory</td>
</tr>
<tr>
<td><span>cp -a dir1 dir2</span></td>
<td>copy a directory</td>
</tr>
<tr>
<td><span>ln -s file1 lnk1 </span></td>
<td>create a symbolic link to file or directory</td>
</tr>
<tr>
<td><span>ln file1 lnk1</span></td>
<td>create a physical link to file or directory</td>
</tr>
<tr>
<td><span>touch -t 0712250000 fileditest</span></td>
<td>modify timestamp of a file or directory &#8211; (YYMMDDhhmm)</td>
</tr>
<tr>
<td><span>find / -name file1</span></td>
<td>search file and directory into root filesystem from &#8216;/&#8217;</td>
</tr>
<tr>
<td><span>find / -user user1</span></td>
<td>search files and directories belonging to &#8216;user1&#8242;</td>
</tr>
<tr>
<td><span>find /home/user1 -name *.bin</span></td>
<td>search files with &#8216;. bin&#8217; extension within directory &#8216;/ home/user1&#8242; </td>
</tr>
<tr>
<td><span>find /usr/bin -type f -atime +100</span></td>
<td>search bynary files are not used in the last 100 days</td>
</tr>
<tr>
<td><span>find /usr/bin -type f -mtime -10</span></td>
<td>search files created or changed within 10 days</td>
</tr>
<tr>
<td><span>find / -name *.rpm -exec chmod 755 {} ;</span></td>
<td>search files with &#8216;.rpm&#8217; extension and modify permits</td>
</tr>
<tr height="29">
<td height="29"><span>find / -name *.rpm -xdev</span></td>
<td>search files with&#160; &#8216;.rpm&#8217; extension ignoring removable partitions as cdrom, pen-drive, etc.…</td>
</tr>
<tr>
<td><span>locate *.ps</span></td>
<td>find files with the &#8216;.ps&#8217; extension &#8211; first run &#8216;updatedb&#8217; command</td>
</tr>
<tr>
<td><span>whereis halt</span></td>
<td>show location of a binary file, source or man</td>
</tr>
<tr>
<td><span>which halt</span></td>
<td>show full path to a binary / executable</td>
</tr>
<tr height="29">
<td height="29"><span>mount /dev/hda2 /mnt/hda2</span></td>
<td>mount disk called hda2 &#8211; verify existence of the directory &#8216;/ mnt/hda2&#8242;</td>
</tr>
<tr height="29">
<td height="29"><span>umount /dev/hda2</span></td>
<td>unmount disk called hda2 &#8211; exit from mount point &#8216;/ mnt/hda2&#8242; first</td>
</tr>
<tr>
<td><span>fuser -km /mnt/hda2</span></td>
<td>force umount when the device is busy</td>
</tr>
<tr height="29">
<td height="29"><span>umount -n /mnt/hda2</span></td>
<td>run umount without writing the file /etc/mtab &#8211; useful when the file is read-only or the hard disk is full</td>
</tr>
<tr>
<td><span>mount /dev/fd0 /mnt/floppy</span></td>
<td>mount a floppy disk</td>
</tr>
<tr>
<td><span>mount /dev/cdrom /mnt/cdrom</span></td>
<td>mount a cdrom / dvdrom</td>
</tr>
<tr>
<td><span>mount /dev/hdc /mnt/cdrecorder</span></td>
<td>mount a cdrw / dvdrom</td>
</tr>
<tr>
<td><span>mount /dev/hdb /mnt/cdrecorder</span></td>
<td>mount a cdrw / dvdrom</td>
</tr>
<tr>
<td><span>mount -o loop file.iso /mnt/cdrom</span></td>
<td>mount a file or iso image</td>
</tr>
<tr>
<td><span>mount -t vfat /dev/hda5 /mnt/hda5</span></td>
<td>mount a Windows FAT32 file system</td>
</tr>
<tr>
<td><span>mount /dev/sda1 /mnt/usbdisk</span></td>
<td>mount a usb pen-drive or flash-drive</td>
</tr>
<tr>
<td><span>mount -t smbfs -o username=user,password=pass //winclient/share /mnt/share</span></td>
<td>mount a windows network share</td>
</tr>
<tr>
<td><span>df -h</span></td>
<td>show list of partitions mounted</td>
</tr>
<tr>
<td><span>ls -lSr |more</span></td>
<td>show size of the files and directories ordered by size</td>
</tr>
<tr>
<td><span>du -sh dir1</span></td>
<td>estimate space used by directory &#8216;dir1&#8242;</td>
</tr>
<tr>
<td><span>du -sh * | sort -rn </span></td>
<td>show size of the files and directories sorted by size</td>
</tr>
<tr height="29">
<td height="29"><span>rpm -q -a &#8211;qf &#8216;%10{SIZE}\t%{NAME}\n&#8217; | sort -k1,1n</span></td>
<td>show space used by rpm packages installed sorted by size (fedora, redhat and like)</td>
</tr>
<tr height="29">
<td height="29"><span>dpkg-query -W -f=&#8217;${Installed-Size;10}\t${Package}\n&#8217; | sort -k1,1n</span></td>
<td>show space used by deb packages installed sorted by size (ubuntu, debian and like)</td>
</tr>
<tr>
<td><span>groupadd group_name</span></td>
<td>create a new group</td>
</tr>
<tr>
<td><span>groupdel group_name</span></td>
<td>delete a group</td>
</tr>
<tr>
<td><span>groupmod -n new_group_name old_group_name</span></td>
<td>rename a group</td>
</tr>
<tr>
<td><span>useradd -c &quot;Nome Cognome&quot; -g admin -d /home/user1 -s /bin/bash user1</span></td>
<td>create a new user belongs &quot;admin&quot; group</td>
</tr>
<tr>
<td><span>useradd user1</span></td>
<td>create a new user</td>
</tr>
<tr>
<td><span>userdel -r user1</span></td>
<td>delete a user ( &#8216;-r&#8217; eliminates home directory)</td>
</tr>
<tr>
<td><span>usermod -c &quot;User FTP&quot; -g system -d /ftp/user1 -s /bin/nologin user1</span></td>
<td>change user attributes</td>
</tr>
<tr>
<td><span>passwd</span></td>
<td>change password</td>
</tr>
<tr>
<td><span>passwd user1</span></td>
<td>change a user password (only by root)</td>
</tr>
<tr>
<td><span>chage -E 2005-12-31 user1</span></td>
<td>set deadline for user password</td>
</tr>
<tr height="29">
<td height="29"><span>pwck</span></td>
<td>check correct syntax and file format of &#8216;/etc/passwd&#8217;&#160; and users existence</td>
</tr>
<tr height="29">
<td height="14"><span>grpck</span></td>
<td>check correct syntax and file format of &#8216;/etc/group&#8217;&#160; and groups existence</td>
</tr>
<tr height="29">
<td height="14">newgrp group_name</td>
<td>log in to a new group to change default group of newly created files</td>
</tr>
<tr>
<td><span>ls -lh</span></td>
<td>show permits</td>
</tr>
<tr>
<td><span>ls /tmp | pr -T5 -W$COLUMNS</span></td>
<td>divide terminal into 5 columns</td>
</tr>
<tr height="29">
<td height="29"><span>chmod ugo+rwx directory1</span></td>
<td>set permissions reading (r), write (w) and (x) access to users owner (u) group (g) and others (o)</td>
</tr>
<tr height="29">
<td height="29"><span>chmod go-rwx directory1</span></td>
<td>remove permits reading (r), write (w) and (x) access to users group (g) and others (or</td>
</tr>
<tr>
<td><span>chown user1 file1</span></td>
<td>change owner of a file</td>
</tr>
<tr height="29">
<td height="29"><span>chown user1 -R directory1</span></td>
<td>change user owner of a directory and all the files and directories contained inside</td>
</tr>
<tr>
<td><span>chgrp gruppo1 file1</span></td>
<td>change group of files</td>
</tr>
<tr>
<td><span>chown user1:gruppo1 file1</span></td>
<td>change user and group ownership of a file</td>
</tr>
<tr>
<td><span>find / -perm -u+s</span></td>
<td>view all files on the system with SUID configured</td>
</tr>
<tr height="29">
<td height="29"><span>chmod u+s /bin/file_eseguibile</span></td>
<td>set SUID bit on a binary file &#8211; the user that running that file gets same privileges as owner</td>
</tr>
<tr>
<td><span>chmod u-s /bin/file_binario</span></td>
<td>disable SUID bit on a binary file</td>
</tr>
<tr>
<td><span>chmod g+s /home/public</span></td>
<td>set SGID bit on a directory &#8211; similar to SUID but for directory</td>
</tr>
<tr>
<td><span>chmod g-s /home/public</span></td>
<td>disable SGID bit on a directory</td>
</tr>
<tr height="29">
<td height="29"><span>chmod o+t /home/comune</span></td>
<td>set STIKY bit on a directory &#8211; allows files deletion only to legitimate owners</td>
</tr>
<tr>
<td><span>chmod o-t /home/comune</span></td>
<td>disable STIKY bit on a directory</td>
</tr>
<tr>
<td><span>chattr +a file1</span></td>
<td>allows write opening of a file only append mode</td>
</tr>
<tr height="29">
<td height="29"><span>chattr +c file1</span></td>
<td>allows that a file is compressed / decompressed automatically by the kernel</td>
</tr>
<tr height="29">
<td height="29"><span>chattr +d file1</span></td>
<td>makes sure that the program ignores Dump the files during backup</td>
</tr>
<tr height="29">
<td height="29"><span>chattr +i file1</span></td>
<td>makes it an immutable file, which can not be removed, altered, renamed or linked</td>
</tr>
<tr>
<td><span>chattr +s file1</span></td>
<td>allows a file to be deleted safely</td>
</tr>
<tr height="29">
<td height="29"><span>chattr +S&#160; file1</span></td>
<td>makes sure that if a file is modified changes are written in synchronous mode as with sync</td>
</tr>
<tr>
<td><span>chattr +u file1</span></td>
<td>allows you to recover the contents of a file even if it is canceled</td>
</tr>
<tr>
<td><span>lsattr</span></td>
<td>show specials attributes</td>
</tr>
<tr>
<td><span>bunzip2 file1.bz2</span></td>
<td>decompress a file called &#8216;file1.bz2&#8242;</td>
</tr>
<tr>
<td><span>bzip2 file1</span></td>
<td>compress a file called &#8216;file1&#8242;</td>
</tr>
<tr>
<td><span>gunzip file1.gz</span></td>
<td>decompress a file called &#8216;file1.gz&#8217;</td>
</tr>
<tr>
<td><span>gzip file1</span></td>
<td>compress a file called &#8216;file1&#8242;</td>
</tr>
<tr>
<td><span>gzip -9 file1</span></td>
<td>compress with maximum compression</td>
</tr>
<tr>
<td><span>rar a file1.rar test_file</span></td>
<td>create an archive rar called &#8216;file1.rar&#8217;</td>
</tr>
<tr>
<td><span>rar a file1.rar file1 file2 dir1</span></td>
<td>compress &#8216;file1&#8242;, &#8216;file2&#8242; and &#8216;dir1&#8242; simultaneously</td>
</tr>
<tr>
<td><span>rar x file1.rar</span></td>
<td>decompress rar archive</td>
</tr>
<tr>
<td><span>unrar x file1.rar</span></td>
<td>decompress rar archive</td>
</tr>
<tr>
<td><span>tar -cvf archive.tar file1</span></td>
<td>create a uncompressed tarball</td>
</tr>
<tr>
<td><span>tar -cvf archive.tar file1 file2 dir1</span></td>
<td>create an archive containing &#8216;file1&#8242;, &#8216;file2&#8242; and &#8216;dir1&#8242;</td>
</tr>
<tr>
<td><span>tar -tf archive.tar</span></td>
<td>show contents of an archive</td>
</tr>
<tr>
<td><span>tar -xvf archive.tar</span></td>
<td>extract a tarball</td>
</tr>
<tr>
<td><span>tar -xvf archive.tar -C /tmp</span></td>
<td>extract a tarball into / tmp</td>
</tr>
<tr>
<td><span>tar -cvfj archive.tar.bz2 dir1</span></td>
<td>create a tarball compressed into bzip2</td>
</tr>
<tr>
<td><span>tar -xvfj archive.tar.bz2</span></td>
<td>decompress a compressed tar archive in bzip2</td>
</tr>
<tr>
<td><span>tar -cvfz archive.tar.gz dir1</span></td>
<td>create a tarball compressed into gzip</td>
</tr>
<tr>
<td><span>tar -xvfz archive.tar.gz</span></td>
<td>decompress a compressed tar archive in gzip</td>
</tr>
<tr>
<td><span>zip file1.zip file1</span></td>
<td>create an archive compressed in zip</td>
</tr>
<tr>
<td><span>zip -r file1.zip file1 file2 dir1</span></td>
<td>compress in zip several files and directories simultaneously</td>
</tr>
<tr>
<td><span>unzip file1.zip</span></td>
<td>decompress a zip archive</td>
</tr>
<tr>
<td><span>rpm -ivh package.rpm</span></td>
<td>install a rpm package</td>
</tr>
<tr>
<td><span>rpm -ivh &#8211;nodeeps package.rpm</span></td>
<td>install a rpm package ignoring dependencies requests</td>
</tr>
<tr>
<td><span>rpm -U package.rpm</span></td>
<td>upgrade a rpm package without changing configuration files</td>
</tr>
<tr>
<td><span>rpm -F package.rpm</span></td>
<td>upgrade a rpm package only if it is already installed</td>
</tr>
<tr>
<td><span>rpm -e package_name.rpm</span></td>
<td>remove a rpm package</td>
</tr>
<tr>
<td><span>rpm -qa</span></td>
<td>show all rpm packages installed on the system</td>
</tr>
<tr>
<td><span>rpm -qa | grep httpd</span></td>
<td>show all rpm packages with the name &quot;httpd&quot;</td>
</tr>
<tr>
<td><span>rpm -qi package_name</span></td>
<td>obtain information on a specific package installed</td>
</tr>
<tr>
<td><span>rpm -qg &quot;System Environment/Daemons&quot;</span></td>
<td>show rpm packages of a group software</td>
</tr>
<tr>
<td><span>rpm -ql package_name</span></td>
<td>show list of files provided by a rpm package installed</td>
</tr>
<tr height="29">
<td height="29"><span>rpm -qc package_name</span></td>
<td>show list of configuration files provided by a rpm package installed</td>
</tr>
<tr>
<td><span>rpm -q package_name &#8211;whatrequires</span></td>
<td>show list of dependencies required for a rpm packet</td>
</tr>
<tr>
<td><span>rpm -q package_name &#8211;whatprovides</span></td>
<td>show capability provided by a rpm package</td>
</tr>
<tr>
<td><span>rpm -q package_name &#8211;scripts</span></td>
<td>show scripts started during installation / removal</td>
</tr>
<tr>
<td><span>rpm -q package_name &#8211;changelog</span></td>
<td>show history of revisions of a rpm package</td>
</tr>
<tr>
<td><span>rpm -qf /etc/httpd/conf/httpd.conf</span></td>
<td>verify which rpm package belongs to a given file</td>
</tr>
<tr>
<td><span>rpm -qp package.rpm&#160; -l</span></td>
<td>show list of files provided by a rpm package not yet installed</td>
</tr>
<tr>
<td><span>rpm &#8211;import /media/cdrom/RPM-GPG-KEY</span></td>
<td>import public-key digital signature</td>
</tr>
<tr>
<td><span>rpm &#8211;checksig package.rpm</span></td>
<td>verify the integrity of a rpm package</td>
</tr>
<tr>
<td><span>rpm -qa gpg-pubkey</span></td>
<td>verify integrity of all rpm packages installed</td>
</tr>
<tr height="29">
<td height="29"><span>rpm -V package_name</span></td>
<td>check file size, permissions, type, owner, group, MD5 checksum and last modification</td>
</tr>
<tr height="29">
<td height="29"><span>rpm -Va</span></td>
<td>check all rpm packages installed on the system &#8211; use with caution</td>
</tr>
<tr>
<td><span>rpm -Vp package.rpm</span></td>
<td>verify a rpm package not yet installed</td>
</tr>
<tr>
<td><span>rpm2cpio package.rpm | cpio &#8211;extract &#8211;make-directories&#160; *bin*</span></td>
<td>extract executable file from a rpm package</td>
</tr>
<tr>
<td><span>rpm -ivh /usr/src/redhat/RPMS/`arch`/package.rpm</span></td>
<td>install a package built from a rpm source</td>
</tr>
<tr>
<td><span>rpmbuild &#8211;rebuild package_name.src.rpm</span></td>
<td>build a rpm package from a rpm source</td>
</tr>
<tr>
<td><span>yum install package_name</span></td>
<td>download and install a rpm package</td>
</tr>
<tr>
<td><span>yum update</span></td>
<td>update all rpm packages installed on the system</td>
</tr>
<tr>
<td><span>yum update package_name</span></td>
<td>upgrade a rpm package</td>
</tr>
<tr>
<td><span>yum remove package_name</span></td>
<td>remove a rpm package</td>
</tr>
<tr>
<td><span>yum list</span></td>
<td>list all packages installed on the system</td>
</tr>
<tr>
<td><span>yum search package_name</span></td>
<td>find a package on rpm repository</td>
</tr>
<tr>
<td><span>yum clean packages</span></td>
<td>clean up rpm cache erasing downloaded packages</td>
</tr>
<tr height="29">
<td height="29"><span>yum clean headers</span></td>
<td>remove all files headers that the system uses to resolve dependency</td>
</tr>
<tr>
<td><span>yum clean all</span></td>
<td>remove from the cache packages and headers files</td>
</tr>
<tr>
<td><span>dpkg -i package.deb</span></td>
<td>install / upgrade a deb package</td>
</tr>
<tr>
<td><span>dpkg -r package_name</span></td>
<td>remove a deb package from the system</td>
</tr>
<tr>
<td><span>dpkg -l</span></td>
<td>show all deb packages installed on the system</td>
</tr>
<tr>
<td><span>dpkg -l | grep httpd</span></td>
<td>show all rpm packages with the name &quot;httpd&quot;</td>
</tr>
<tr>
<td><span>dpkg -s package_name</span></td>
<td>obtain information on a specific package installed on system</td>
</tr>
<tr>
<td><span>dpkg -L package_name</span></td>
<td>show list of files provided by a package installed on system</td>
</tr>
<tr>
<td><span>dpkg &#8211;contents package.deb</span></td>
<td>show list of files provided by a package not yet installed</td>
</tr>
<tr>
<td><span>dpkg -S /bin/ping</span></td>
<td>verify which package belongs to a given file</td>
</tr>
<tr>
<td><span>apt-get install package_name</span></td>
<td>install / upgrade a deb package</td>
</tr>
<tr>
<td><span>apt-cdrom install package_name</span></td>
<td>install / upgrade a deb package from cdrom</td>
</tr>
<tr>
<td><span>apt-get update</span></td>
<td>update all deb packages installed on system</td>
</tr>
<tr>
<td><span>apt-get remove package_name</span></td>
<td>remove a deb package from system</td>
</tr>
<tr>
<td><span>apt-get check</span></td>
<td>verify correct resolution of dependencies</td>
</tr>
<tr>
<td><span>apt-get clean</span></td>
<td>clean up cache from packages downloaded</td>
</tr>
<tr>
<td><span>cat file1</span></td>
<td>view the contents of a file starting from the first row</td>
</tr>
<tr>
<td><span>tac file1</span></td>
<td>view the contents of a file starting from the last line</td>
</tr>
<tr>
<td><span>more file1</span></td>
<td>view content of a file along</td>
</tr>
<tr height="29">
<td height="29"><span>less file1</span></td>
<td>similar to &#8216;more&#8217; command but which allows backward movement in the file as well as forward movement</td>
</tr>
<tr>
<td><span>head -2 file1</span></td>
<td>view first two lines of a file</td>
</tr>
<tr>
<td><span>tail -2 file1</span></td>
<td>view last two lines of a file</td>
</tr>
<tr>
<td><span>tail -f /var/log/messages</span></td>
<td>view in real time what is added to a file</td>
</tr>
<tr height="29">
<td height="29"><span>cat file_test | [operation: sed, grep, awk, grep, etc] &gt; result.txt</span></td>
<td>syntax to elaborate the text of a file, and write result to a new file</td>
</tr>
<tr height="29">
<td height="29"><span>cat file_originale | [operazione: sed, grep, awk, grep, etc] &gt;&gt; result.txt</span></td>
<td>syntax to elaborate the text of a file and append result in existing file</td>
</tr>
<tr>
<td><span>grep Aug /var/log/messages</span></td>
<td>look up words &quot;Aug&quot; on file &#8216;/var/log/messages&#8217;</td>
</tr>
<tr>
<td><span>grep ^Aug /var/log/messages</span></td>
<td>look up words that begin with &quot;Aug&quot; on file &#8216;/var/log/messages&#8217;</td>
</tr>
<tr>
<td><span>grep [0-9] /var/log/messages</span></td>
<td>select from file &#8216;/var/log/messages&#8217; all lines that contain numbers</td>
</tr>
<tr>
<td><span>grep Aug -R /var/log/*</span></td>
<td>search string &quot;Aug&quot; at directory &#8216;/var/log&#8217; and below</td>
</tr>
<tr>
<td><span>grep Aug /var/log/messages</span></td>
<td>write result of a search within a file</td>
</tr>
<tr>
<td><span>sed &#8216;s/stringa1/stringa2/g&#8217; example.txt</span></td>
<td>replace &quot;string1&quot; with &quot;string2&quot; in example.txt</td>
</tr>
<tr>
<td><span>sed &#8216;/^$/d&#8217; example.txt</span></td>
<td>remove all blank lines from example.txt</td>
</tr>
<tr>
<td><span>sed &#8216;/ *#/d; /^ *$/d&#8217; example.txt</span></td>
<td>remove comments and blank lines from example.txt</td>
</tr>
<tr>
<td><span>echo &#8216;esempio&#8217; | tr &#8216;[:lower:]&#8216; &#8216;[:upper:]&#8216;</span></td>
<td>convert from lower case in upper case</td>
</tr>
<tr>
<td><span>sed -e &#8217;1d&#8217; result.txt</span></td>
<td>eliminates the first line from file example.txt</td>
</tr>
<tr>
<td><span>sed -n &#8216;/stringa1/p&#8217;</span></td>
<td>view only lines that contain the word &quot;string1&quot;</td>
</tr>
<tr>
<td><span>sed -e &#8216;s/ *$//&#8217; example.txt</span></td>
<td>remove empty characters at the end of each row</td>
</tr>
<tr>
<td><span>sed -e &#8216;s/stringa1//g&#8217; example.txt</span></td>
<td>remove only the word &quot;string1&quot; from text and leave intact all</td>
</tr>
<tr>
<td><span>sed -n &#8217;1,5p;5q&#8217; example.txt</span></td>
<td>view from 1th to 5th row</td>
</tr>
<tr>
<td><span>sed -n &#8217;5p;5q&#8217; example.txt</span></td>
<td>view row number 5</td>
</tr>
<tr>
<td><span>sed -e &#8216;s/00*/0/g&#8217; example.txt</span></td>
<td>replace more zeros with a single zero</td>
</tr>
<tr>
<td><span>cat -n file1</span></td>
<td>number row of a file</td>
</tr>
<tr>
<td><span>cat example.txt | awk &#8216;NR%2==1&#8242;</span></td>
<td>remove all even lines from example.txt</td>
</tr>
<tr>
<td><span>echo a b c | awk &#8216;{print $1}&#8217;</span></td>
<td>view the first column of a line</td>
</tr>
<tr>
<td><span>echo a b c | awk &#8216;{print $1,$3}&#8217;</span></td>
<td>view the first and third column of a line</td>
</tr>
<tr>
<td><span>paste file1 file2</span></td>
<td>merging contents of two files for columns</td>
</tr>
<tr height="29">
<td height="29"><span>paste&#160; -d&#160; &#8216;+&#8217; file1 file2</span></td>
<td>merging contents of two files for columns with &#8216;+&#8217; delimiter on the center</td>
</tr>
<tr>
<td><span>sort file1 file2</span></td>
<td>sort contents of two files</td>
</tr>
<tr>
<td><span>sort file1 file2 | uniq</span></td>
<td>sort contents of two files omitting lines repeated</td>
</tr>
<tr>
<td><span>sort file1 file2 | uniq -u</span></td>
<td>sort contents of two files by viewing only unique line</td>
</tr>
<tr>
<td><span>sort file1 file2 | uniq -d</span></td>
<td>sort contents of two files by viewing only duplicate line</td>
</tr>
<tr height="29">
<td height="29"><span>comm -1 file1 file2</span></td>
<td>compare contents of two files by deleting only unique lines from &#8216;file1&#8242;</td>
</tr>
<tr height="29">
<td height="29"><span>comm -2 file1 file2</span></td>
<td>compare contents of two files by deleting only unique lines from &#8216;file2&#8242;</td>
</tr>
<tr height="29">
<td height="29"><span>comm -3 file1 file2</span></td>
<td>compare contents of two files by deleting only the lines that appear on both files</td>
</tr>
<tr>
<td><span>dos2unix filedos.txt fileunix.txt</span></td>
<td>convert a text file format from MSDOS to UNIX</td>
</tr>
<tr>
<td><span>unix2dos fileunix.txt filedos.txt</span></td>
<td>convert a text file format from UNIX to MSDOS</td>
</tr>
<tr>
<td><span>recode ..HTML &lt; page.txt &gt; page.html</span></td>
<td>convert a text file to html</td>
</tr>
<tr>
<td><span>recode -l | more</span></td>
<td>show all available formats conversion</td>
</tr>
<tr>
<td><span>badblocks&#160; -v&#160; /dev/hda1</span></td>
<td>check bad blocks in disk hda1</td>
</tr>
<tr>
<td><span>fsck&#160; /dev/hda1</span></td>
<td>repair / check integrity of linux filesystem on disk hda1</td>
</tr>
<tr>
<td><span>fsck.ext2&#160; /dev/hda1</span></td>
<td>repair / check integrity of ext2 filesystem on disk hda1</td>
</tr>
<tr>
<td><span>e2fsck&#160; /dev/hda1</span></td>
<td>repair / check integrity of ext2 filesystem on disk hda1</td>
</tr>
<tr>
<td><span>e2fsck -j /dev/hda1</span></td>
<td>repair / check integrity of ext3 filesystem on disk hda1</td>
</tr>
<tr>
<td><span>fsck.ext3&#160; /dev/hda1</span></td>
<td>repair / check integrity of ext3 filesystem on disk hda1</td>
</tr>
<tr>
<td><span>fsck.vfat&#160; /dev/hda1</span></td>
<td>repair / check integrity of fat filesystem on disk hda1</td>
</tr>
<tr>
<td><span>fsck.msdos&#160; /dev/hda1</span></td>
<td>repair / check integrity of dos filesystem on disk hda1</td>
</tr>
<tr>
<td><span>dosfsck&#160; /dev/hda1</span></td>
<td>repair / check integrity of dos filesystems on disk hda1</td>
</tr>
<tr>
<td><span>mkfs /dev/hda1</span></td>
<td>create a filesystem type linux on hda1 partition</td>
</tr>
<tr>
<td><span>mke2fs /dev/hda1</span></td>
<td>create a filesystem type linux ext2 on hda1 partition</td>
</tr>
<tr>
<td><span>mke2fs -j /dev/hda1</span></td>
<td>create a filesystem type linux ext3 (journal) on hda1 partition</td>
</tr>
<tr>
<td><span>mkfs -t vfat 32 -F /dev/hda1</span></td>
<td>create a FAT32 filesystem</td>
</tr>
<tr>
<td><span>fdformat&#160; -n /dev/fd0</span></td>
<td>format a floppy disk</td>
</tr>
<tr>
<td><span>mkswap /dev/hda3</span></td>
<td>create a swap filesystem</td>
</tr>
<tr>
<td><span>mkswap /dev/hda3</span></td>
<td>create a swap filesystem</td>
</tr>
<tr>
<td><span>swapon /dev/hda3</span></td>
<td>activating a new swap partition</td>
</tr>
<tr>
<td><span>swapon /dev/hda2 /dev/hdb3 </span></td>
<td>activate two swap partitions</td>
</tr>
<tr>
<td><span>dump -0aj -f /tmp/home0.bak /home </span></td>
<td>make a full backup of directory &#8216;/home&#8217;</td>
</tr>
<tr>
<td><span>dump -1aj -f /tmp/home0.bak /home </span></td>
<td>make a incremental backup of directory &#8216;/home&#8217;</td>
</tr>
<tr>
<td><span>restore -if /tmp/home0.bak</span></td>
<td>restoring a backup interactively</td>
</tr>
<tr>
<td><span>rsync -rogpav &#8211;delete /home /tmp</span></td>
<td>synchronization between directories</td>
</tr>
<tr>
<td><span>rsync -rogpav -e ssh &#8211;delete /home ip_address:/tmp </span></td>
<td>rsync via SSH tunnel</td>
</tr>
<tr height="29">
<td height="29"><span>rsync -az -e ssh &#8211;delete ip_addr:/home/public /home/local</span></td>
<td>synchronize a local directory with a remote directory via ssh and compression</td>
</tr>
<tr height="29">
<td height="29"><span>rsync -az -e ssh &#8211;delete /home/local ip_addr:/home/public</span></td>
<td>synchronize a remote directory with a local directory via ssh and compression</td>
</tr>
<tr>
<td><span>dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr &#8216;dd of=hda.gz&#8217;</span></td>
<td>make a backup of a local hard disk on remote host via ssh</td>
</tr>
<tr>
<td><span>tar -Puf backup.tar /home/user</span></td>
<td>make a incremental backup of directory &#8216;/home/user&#8217;</td>
</tr>
<tr height="31">
<td height="31"><span>( cd /tmp/local/ &amp;&amp; tar c . ) | ssh -C user@ip_addr &#8216;cd /home/share/ &amp;&amp; tar x -p&#8217;</span></td>
<td>copy content of a directory on remote directory via ssh</td>
</tr>
<tr height="31">
<td height="31"><span>( tar c /home ) | ssh -C user@ip_addr &#8216;cd /home/backup-home &amp;&amp; tar x -p&#8217; </span></td>
<td>copy a local directory on remote directory via ssh</td>
</tr>
<tr height="29">
<td height="29"><span>tar cf &#8211; . | (cd /tmp/backup ; tar xf &#8211; )</span></td>
<td>local copy preserving permits and links from a directory to another</td>
</tr>
<tr height="31">
<td height="31"><span>find /home/user1 -name &#8216;*.txt&#8217; | xargs cp -av &#8211;target-directory=/home/backup/ &#8211;parents</span></td>
<td>find and copy all files with &#8216;.txt&#8217; extention from a directory to another</td>
</tr>
<tr height="31">
<td height="31"><span>find /var/log -name &#8216;*.log&#8217; | tar cv &#8211;files-from=- | bzip2 &gt; log.tar.bz2</span></td>
<td>find all files with &#8216;.log&#8217; extention and make an bzip archive</td>
</tr>
<tr>
<td><span>dd if=/dev/hda of=/dev/fd0 bs=512 count=1</span></td>
<td>make a copy of MBR (Master Boot Record) to floppy</td>
</tr>
<tr>
<td><span>dd if=/dev/fd0 of=/dev/hda bs=512 count=1</span></td>
<td>restore MBR from backup copy saved to floppy</td>
</tr>
<tr>
<td>
<p>&#160;</p>
<p>cdrecord -v gracetime=2 dev=/dev/cdrom -eject blank=fast -force</p>
</td>
<td>clean a rewritable cdrom</td>
</tr>
<tr>
<td><span>mkisofs /dev/cdrom &gt; cd.iso</span></td>
<td>create an iso image of cdrom on disk</td>
</tr>
<tr>
<td><span>mkisofs /dev/cdrom | gzip &gt; cd_iso.gz</span></td>
<td>create a compressed iso image of cdrom on disk</td>
</tr>
<tr>
<td><span>mkisofs -J -allow-leading-dots -R -V &quot;Label CD&quot; -iso-level 4 -o ./cd.iso data_cd</span></td>
<td>create an iso image of a directory</td>
</tr>
<tr>
<td><span>cdrecord -v dev=/dev/cdrom cd.iso</span></td>
<td>burn an ISO image</td>
</tr>
<tr>
<td><span>gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom -</span></td>
<td>burn a compressed ISO image</td>
</tr>
<tr>
<td><span>mount -o loop cd.iso /mnt/iso</span></td>
<td>mount an ISO image</td>
</tr>
<tr>
<td><span>cd-paranoia -B</span></td>
<td>rip audio tracks from a CD to wav files</td>
</tr>
<tr>
<td><span>cd-paranoia &#8212; &quot;-3&quot;</span></td>
<td>rip first three audio tracks from a CD to wav files</td>
</tr>
<tr>
<td><span>cdrecord &#8211;scanbus</span></td>
<td>scan bus to identify the channel scsi</td>
</tr>
<tr>
<td><span>ifconfig eth0</span></td>
<td>show configuration of an ethernet network card</td>
</tr>
<tr>
<td><span>ifup eth0</span></td>
<td>activate an interface &#8216;eth0&#8242;</td>
</tr>
<tr>
<td><span>ifdown eth0</span></td>
<td>disable an interface &#8216;eth0&#8242;</td>
</tr>
<tr>
<td><span>ifconfig eth0 192.168.1.1 netmask 255.255.255.0</span></td>
<td>configure IP Address</td>
</tr>
<tr height="29">
<td height="29"><span>ifconfig eth0 promisc</span></td>
<td>configure &#8216;eth0&#8242; in promiscuous mode to gather packets (sniffing)</td>
</tr>
<tr>
<td><span>dhclient eth0</span></td>
<td>active interface &#8216;eth0&#8242; in dhcp mode</td>
</tr>
<tr>
<td><span>route -n</span></td>
<td>show routing table</td>
</tr>
<tr>
<td><span>route add -net 0/0 gw IP_Gateway</span></td>
<td>configura default gateway</td>
</tr>
<tr>
<td><span>route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1</span></td>
<td>configure static route to reach network &#8217;192.168.0.0/16&#8242;</td>
</tr>
<tr>
<td><span>route del 0/0 gw IP_gateway</span></td>
<td>remove static route</td>
</tr>
<tr>
<td><span>echo &quot;1&quot; &gt; /proc/sys/net/ipv4/ip_forward</span></td>
<td>activate ip routing</td>
</tr>
<tr>
<td><span>hostname</span></td>
<td>show hostname</td>
</tr>
<tr>
<td><span>host www.linuxguide.it</span></td>
<td>lookup hostname to resolve name to ip address and viceversa</td>
</tr>
<tr>
<td><span>ip link show</span></td>
<td>show link status of all interfaces</td>
</tr>
<tr>
<td><span>mii-tool eth0</span></td>
<td>show link status of &#8216;eth0&#8242;</td>
</tr>
<tr>
<td><span>ethtool eth0</span></td>
<td>show statistics of network card &#8216;eth0&#8242;</td>
</tr>
<tr>
<td><span>netstat -tup</span></td>
<td>show all active network connections and their PID</td>
</tr>
<tr>
<td><span>netstat -tupl</span></td>
<td>show all network services listening on the system and their PID</td>
</tr>
<tr>
<td><span>tcpdump tcp port 80</span></td>
<td>show all HTTP traffic</td>
</tr>
<tr>
<td><span>iwlist scan</span></td>
<td>show wireless networks</td>
</tr>
<tr>
<td><span>iwconfig eth1</span></td>
<td>show configuration of a wireless network card</td>
</tr>
<tr>
<td><span>nbtscan ip_addr</span></td>
<td>netbios name resolution</td>
</tr>
<tr>
<td><span>nmblookup -A ip_addr</span></td>
<td>netbios name resolution</td>
</tr>
<tr>
<td><span>smbclient -L ip_addr/hostname</span></td>
<td>show remote shares of a windows host</td>
</tr>
<tr>
<td><span>smbget -Rr smb://ip_addr/share</span></td>
<td>like wget can download files from a host windows via smb</td>
</tr>
<tr>
<td><span>mount -t smbfs -o username=user,password=pass //winclient/share /mnt/share</span></td>
<td>mount a windows network share</td>
</tr>
<tr>
<td><span>iptables -t filter -L</span></td>
<td>show all chains of filtering table</td>
</tr>
<tr>
<td><span>iptables -t nat -L</span></td>
<td>show all chains of nat table</td>
</tr>
<tr>
<td><span>iptables -t filter -F</span></td>
<td>clear all rules from filtering table</td>
</tr>
<tr>
<td><span>iptables -t nat -F</span></td>
<td>clear all rules from table nat</td>
</tr>
<tr>
<td><span>iptables -t filter -X</span></td>
<td>delete any chains created by user</td>
</tr>
<tr>
<td><span>iptables -t filter -A INPUT -p tcp &#8211;dport telnet -j ACCEPT</span></td>
<td>allow telnet connections to input</td>
</tr>
<tr>
<td><span>iptables -t filter -A OUTPUT -p tcp &#8211;dport http -j DROP</span></td>
<td>block HTTP connections to output</td>
</tr>
<tr>
<td><span>iptables -t filter -A FORWARD -p tcp &#8211;dport pop3 -j ACCEPT</span></td>
<td>allow POP3 connections to forward chain</td>
</tr>
<tr>
<td><span>iptables -t filter -A INPUT -j LOG &#8211;log-prefix &quot;DROP INPUT&quot;</span></td>
<td>logging sulla chain di input&#160; Logging on chain input</td>
</tr>
<tr height="29">
<td height="29"><span>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</span></td>
<td>configure a PAT (Port Address Traslation) on eth0 masking outbound packets</td>
</tr>
<tr>
<td><span>iptables -t nat -A PREROUTING -d 192.168.0.1 -p tcp -m tcp &#8211;dport 22 -j DNAT &#8211;to-destination 10.0.0.2:22</span></td>
<td>redirect packets addressed to a host to another host</td>
</tr>
<tr>
<td><span>top</span></td>
<td>display linux tasks using most cpu</td>
</tr>
<tr>
<td><span>ps -eafw</span></td>
<td>displays linux tasks</td>
</tr>
<tr>
<td><span>ps -e -o pid,args &#8211;forest</span></td>
<td>displays linux tasks in a hierarchical mode</td>
</tr>
<tr height="32">
<td height="32"><span>pstree </span></td>
<td>mostra un albero dei processi sistema Shows a tree system processes</td>
</tr>
<tr>
<td><span>kill -9 ID_Processo</span></td>
<td>force closure of the process and finish it</td>
</tr>
<tr>
<td><span>kill -1 ID_Processo</span></td>
<td>force a process to reload configuration</td>
</tr>
<tr>
<td><span>lsof -p $$</span></td>
<td>display a list of files opened by processes</td>
</tr>
<tr>
<td><span>lsof /home/user1</span></td>
<td>displays a list of open files in a given path system</td>
</tr>
<tr>
<td><span>strace -c ls &gt;/dev/null</span></td>
<td>display system calls made and received by a process</td>
</tr>
<tr>
<td><span>strace -f -e open ls &gt;/dev/null</span></td>
<td>display library calls</td>
</tr>
<tr>
<td><span>watch -n1 &#8216;cat /proc/interrupts&#8217;</span></td>
<td>display interrupts in real-time</td>
</tr>
<tr>
<td><span>last reboot</span></td>
<td>show history reboot</td>
</tr>
<tr>
<td><span>lsmod</span></td>
<td>display kernel loaded</td>
</tr>
<tr>
<td><span>free -m</span></td>
<td>displays status of RAM in megabytes</td>
</tr>
<tr>
<td><span>smartctl -A /dev/hda</span></td>
<td>monitoring reliability of a hard-disk through SMART</td>
</tr>
<tr>
<td><span>smartctl -i /dev/hda</span></td>
<td>check if SMART is active on a hard-disk</td>
</tr>
<tr>
<td><span>tail /var/log/dmesg</span></td>
<td>show events inherent to the process of booting kernel</td>
</tr>
<tr>
<td><span>tail /var/log/messages</span></td>
<td>show system events</td>
</tr>
<tr>
<td><span>mkbootdisk &#8211;device /dev/fd0 `uname -r`</span></td>
<td>create a boot floppy</td>
</tr>
<tr>
<td><span>gpg -c file1</span></td>
<td>encrypt a file with GNU Privacy Guard</td>
</tr>
<tr>
<td><span>gpg file1.gpg</span></td>
<td>decrypt a file with GNU Privacy Guard</td>
</tr>
<tr>
<td><span>wget -r www.example.com</span></td>
<td>download an entire web site</td>
</tr>
<tr height="29">
<td height="29"><span>wget -c www.example.com/file.iso</span></td>
<td>download a file with the ability to stop the download and resume later</td>
</tr>
<tr>
<td height="8"><span>echo &#8216;wget -c www.example.com/files.iso&#8217; | at 09:00</span></td>
<td>start a download at any given time</td>
</tr>
<tr>
<td height="3">ldd ssh </td>
<td>show shared libraries required by ssh program</td>
</tr>
<tr>
<td><span>alias hh=&#8217;history&#8217;</span></td>
<td>set an alias for a command &#8211; hh = history</td>
</tr>
</tbody>
</table>
<div style="border-top:1px dotted #ddd;width:100%;margin:5px 0"></div>
<p>
<strong>
<a href="http://www.awflasher.com/blog/archives/1348#awcomment"><strong>7</strong>条评论</a>,
<a href="http://www.awflasher.com/blog/archives/1348#awcomment">立即发言</a>
</strong>
|
本文关键词: <a href="http://www.awflasher.com/blog/tag/iphone" rel="tag">iphone</a>, <a href="http://www.awflasher.com/blog/tag/ipod-touch" rel="tag">iPod-Touch</a>, <a href="http://www.awflasher.com/blog/tag/linux" rel="tag">Linux</a><br/></p>
<p>©<a href="http://www.awflasher.com/blog" title="aw's blog 姿态永恒">aw's blog 姿态永恒</a> 1984-2008  | <a href="http://www.awflasher.com/blog/archives/1348">链接地址</a> - http://www.awflasher.com/blog/archives/1348
</p>
<p><a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="http://weibo.com/awguo">@awguo （新浪微博）</a> | <a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="http://t.qq.com/awguo">@awguo （腾讯微博）</a> | <a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="https://twitter.com/awguo">Twitter: @awguo</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.awflasher.com/blog/archives/1348/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>iLiberty（Windows）- 替代ziphone3.0的iPod Touch解决方案</title>
		<link>http://www.awflasher.com/blog/archives/1252</link>
		<comments>http://www.awflasher.com/blog/archives/1252#comments</comments>
		<pubDate>Tue, 15 Apr 2008 15:26:42 +0000</pubDate>
		<dc:creator>aw</dc:creator>
				<category><![CDATA[博客世界]]></category>
		<category><![CDATA[iLiberty]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iPod-Touch]]></category>
		<category><![CDATA[破解]]></category>

		<guid isPermaLink="false">http://www.awflasher.com/blog/archives/1252</guid>
		<description><![CDATA[演示环境：Windows Vista Utimate、iLiberty+1.3.0.113 当iPod Touch在ziphone进行jailbreak时可能会遇到麻烦（例如不小心点了某个按钮等等），这时候会重复显示： BSD root: md0, major 2, minor 0 “场面”甚是可怕。我自己的iPod Touch出现这个问题之后我也吓了一跳。 不过去Google搜“BSD root: md0, major 2, minor 0”，发现youtube的这段视频说的很清楚： 然而，恢复之后，继续反复用ziphone我仍然无法完成破解，最终总是卡在“Please wait 1&#8217;10&#8243;”这个地方。于是继续寻找其他的解决方案。 主要操作： 按住开机键（上方）和Home键（下面中间的大按钮）不动（注意，黑屏后不要放开直到出现你第一次开机的那个画面为止，我因为黑屏后放开而失败了数次……） 打开iTunes进行Restore，回复到1.1.4（可以在本地架设一个服务器然后修改HOST来下载1.1.4那个100多M的大文件，如果你认为这样比iTunes下载更稳妥） 注意，ziphone.exe来破解iPod Touch似乎遇到很多问题，原因是这个软件可能更适合破解iPhone。因此有人推荐用“iLiberty”，可惜这个“iLiberty”是for Mac的，这里我找到一个Windows版。 不需要担心是否关闭了iTunes的那些进程，直接运行iLiberty+即可。这就是iLiberty+的好处：） 如果是Mac选择Jailbreak，然后点“Free my Ipod Touch”即可 如果是Win，可能会有Update，记住一定要关闭iLiberty+远程再作Update（不太负责任的设计-。-） 看我自己拍的一段视频（由于我也是第一次，所以操作可能不太利索，但是足够真实，中间还出现了“Windows Live Writer”撰写这篇Post的NG画面~此外，由于我安装了Cydia取代Installer，因此等待时间比较久恩） 视频较大，点击这里。 此外，发现root的默认密码是alpine 8条评论, 立即发言 &#124; 本文关键词: iLiberty, iphone, iPod-Touch, 破解 ©aw's blog 姿态永恒 1984-2008 &#124; 链接地址 [...]]]></description>
			<content:encoded><![CDATA[<p>演示环境：Windows Vista Utimate、iLiberty+1.3.0.113</p>
<p>当iPod Touch在ziphone进行jailbreak时可能会遇到麻烦（例如不小心点了某个按钮等等），这时候会重复显示：</p>
<p>BSD root: md0, major 2, minor 0</p>
<p>“场面”甚是可怕。我自己的iPod Touch出现这个问题之后我也吓了一跳。</p>
<p>不过去Google搜“BSD root: md0, major 2, minor 0”，发现youtube的这段视频说的很清楚：</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2q5L5cH0vkg&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2q5L5cH0vkg&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>然而，恢复之后，继续反复用ziphone我仍然无法完成破解，最终总是卡在“Please wait 1&#8217;10&#8243;”这个地方。于是继续寻找其他的解决方案。</p>
<p>主要操作：</p>
<ol>
<li>按住开机键（上方）和Home键（下面中间的大按钮）不动（注意，黑屏后不要放开直到出现你第一次开机的那个画面为止，我因为黑屏后放开而失败了数次……）</li>
<li>打开iTunes进行Restore，回复到1.1.4（可以在本地架设一个服务器然后修改HOST来下载1.1.4那个100多M的大文件，如果你认为这样比iTunes下载更稳妥）</li>
<li>注意，ziphone.exe来破解iPod Touch似乎遇到很多问题，原因是这个软件可能更适合破解iPhone。因此有人推荐用“iLiberty”，可惜这个“iLiberty”是for Mac的，这里我找到一个<a href="http://rs375.rapidshare.com/files/102555324/iLibertySetup_1.2.0.65.exe.zip">Windows版</a>。</li>
<li><strong>不需要担心是否关闭了iTunes的那些进程，直接运行iLiberty+即可</strong>。这就是iLiberty+的好处：）</li>
<li>如果是Mac选择Jailbreak，然后点“Free my Ipod Touch”即可</li>
<li>如果是Win，可能会有Update，记住一定要关闭iLiberty+远程再作Update（不太负责任的设计-。-）</li>
<li>看我自己拍的一段视频（由于我也是第一次，所以操作可能不太利索，但是足够真实，中间还出现了“Windows Live Writer”撰写这篇Post的NG画面~此外，由于我安装了Cydia取代Installer，因此等待时间比较久恩）</li>
</ol>
<p>视频较大，点击<a href="http://www.screencast.com/users/awflasher/folders/Jing/media/e6b222e4-b4a1-4ed3-82c0-d2edac7484cc">这里</a>。</p>
<p>此外，发现root的默认密码是alpine</p>
<div style="border-top:1px dotted #ddd;width:100%;margin:5px 0"></div>
<p>
<strong>
<a href="http://www.awflasher.com/blog/archives/1252#awcomment"><strong>8</strong>条评论</a>,
<a href="http://www.awflasher.com/blog/archives/1252#awcomment">立即发言</a>
</strong>
|
本文关键词: <a href="http://www.awflasher.com/blog/tag/iliberty" rel="tag">iLiberty</a>, <a href="http://www.awflasher.com/blog/tag/iphone" rel="tag">iphone</a>, <a href="http://www.awflasher.com/blog/tag/ipod-touch" rel="tag">iPod-Touch</a>, <a href="http://www.awflasher.com/blog/tag/%e7%a0%b4%e8%a7%a3" rel="tag">破解</a><br/></p>
<p>©<a href="http://www.awflasher.com/blog" title="aw's blog 姿态永恒">aw's blog 姿态永恒</a> 1984-2008  | <a href="http://www.awflasher.com/blog/archives/1252">链接地址</a> - http://www.awflasher.com/blog/archives/1252
</p>
<p><a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="http://weibo.com/awguo">@awguo （新浪微博）</a> | <a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="http://t.qq.com/awguo">@awguo （腾讯微博）</a> | <a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="https://twitter.com/awguo">Twitter: @awguo</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.awflasher.com/blog/archives/1252/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>iPhone不会有Flash支持的，死心吧</title>
		<link>http://www.awflasher.com/blog/archives/1207</link>
		<comments>http://www.awflasher.com/blog/archives/1207#comments</comments>
		<pubDate>Fri, 07 Mar 2008 04:11:42 +0000</pubDate>
		<dc:creator>aw</dc:creator>
				<category><![CDATA[web开发]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[Flashplayer]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.awflasher.com/blog/archives/1207</guid>
		<description><![CDATA[关于iPhone要（官方）支持Adobe FlashPlayer的流言应该适可而止了。Steve Jobs在一次股东会议上明确表示取消对Adobe Flash Player支持的计划。他认为Flash Player太慢，尤其是在移动设备上无法达到人们的预期。 好了，其实问题很简单：Adobe FlashPlayer9在性能的需求上已经不再像之前的版本那样“温柔”，尤其是对于（可能引入）GPU渲染加速的支持，让一个小小的iPhone显得捉襟见肘。 其实没有FlashPlayer的iPhone也没什么大碍，Youtube的视频照样能播放，只是之前Steve Jobs所表示的“将Web体验原封不动地搬到移动设备”这句话恐怕要打折扣了。本来有一点值得争议：Adobe Flash到底算不算“Web体验”。但Apple的“狂妄”又一次让自己陷入尴尬，这篇文章引用了Apple的这么一句声明： Apple’s claim of showing “web pages the way they were designed to be seen” 即，Apple认为，要让网页像他们的设计师所设计的那样被（原封不动地）显示出来。原文将这句话称为“outright lie” &#8211; “彻底的谎言”：显然，一名网页设计师嵌入的Youtube视频是无法被正常播放的。 上文更有趣地提到Apple的“辩护”者的反应：Google的Android也不支持Flash，原文认为这种“辩护”只能说明Google的Android也不够好而已。 自Macromedia和“Adobe.com”谢幕之后，我早已不是谁的fans，也不想陷入这些无聊的争论，只是有一些细节让我困惑： 教主Steve Jobs究竟是担心到ActionScript3和FlashPlayer9将在未来有更多的发展而让iPhone“低调回避”其薄弱的支持能力，还是准备了更好的替代解决方案能在iPhone的Safari下实现？以Jobs的性格显然不太会成为前者，不过，我认为后者有点悬：微软有自己的Silverlight，苹果有什么我还不太清楚。哪位SteveJobs教的成员来指点指点？ 后注：虽然Jobs如此“傲慢”，Adobe仍然做好了准备（消息来自7yue，国内老一辈的Flash开发工程师）： 不得不说，我们可以看到Adobe作为一家平台提供商的大气。 16条评论, 立即发言 &#124; 本文关键词: apple, Flashplayer, iphone ©aw's blog 姿态永恒 1984-2008 &#124; 链接地址 - http://www.awflasher.com/blog/archives/1207 @awguo （新浪微博） &#124; @awguo （腾讯微博） [...]]]></description>
			<content:encoded><![CDATA[<p>关于iPhone要（官方）支持Adobe FlashPlayer的流言应该适可而止了。Steve Jobs在一次股东会议上明确表示<a href="http://www.cbc.ca/technology/story/2008/03/05/tech-adobe-iphone.html">取消</a>对Adobe Flash Player支持的计划。他认为Flash Player太慢，尤其是在移动设备上无法达到人们的预期。</p>
<p>好了，其实问题很简单：<a href="http://aw.awflasher.com/flashplayer" title="FlashPlayer9">Adobe FlashPlayer9</a>在性能的需求上已经<a href="http://www.awflasher.com/blog/archives/814" title="ActionScript3的渲染潜力">不再</a>像之前的版本那样“温柔”，尤其是对于（可能引入）GPU渲染加速的支持，让一个小小的iPhone显得捉襟见肘。</p>
<p>其实没有FlashPlayer的iPhone也没什么大碍，Youtube的视频照样能播放，只是之前Steve Jobs所表示的“将Web体验原封不动地搬到移动设备”这句话恐怕要打折扣了。本来有一点值得争议：Adobe Flash到底算不算“Web体验”。但Apple的“狂妄”又一次让自己陷入尴尬，这篇文章引用了Apple的这么一句声明：</p>
<blockquote><p>Apple’s claim of showing “web pages the way they were designed to be seen”</p></blockquote>
<p>即，Apple认为，要让网页像他们的设计师所设计的那样被（原封不动地）显示出来。原文将这句话称为“outright lie” &#8211; “彻底的谎言”：显然，一名网页设计师嵌入的Youtube视频是无法被正常播放的。</p>
<p>上文更有趣地提到Apple的“辩护”者的反应：Google的Android也不支持Flash，原文认为这种“辩护”只能说明Google的Android也不够好而已。</p>
<p>自<a href="http://www.awflasher.com/blog/tag/macromedia" title="Macromedia">Macromedia</a>和“Adobe.com”<a href="http://www.awflasher.com/blog/archives/509" title="Adobe.com谢幕">谢幕</a>之后，我早已不是谁的fans，也不想陷入这些无聊的争论，只是有一些细节让我困惑：</p>
<p>教主Steve Jobs究竟是担心到ActionScript3和FlashPlayer9将在未来有更多的发展而让iPhone“低调回避”其薄弱的支持能力，还是准备了更好的替代解决方案能在iPhone的Safari下实现？以Jobs的性格显然不太会成为前者，不过，我认为后者有点悬：微软有自己的Silverlight，苹果有什么我还不太清楚。哪位SteveJobs教的成员来指点指点？</p>
<p>后注：虽然Jobs如此“傲慢”，Adobe仍然做好了准备（消息来自<a href="http://www.7yue.com/post/122.html" target="_blank">7yue</a>，国内老一辈的Flash开发工程师）：</p>
<p><img src="http://www.7yue.com/upload/iphone.png" height="446" width="515" /></p>
<p>不得不说，我们可以看到Adobe作为一家平台提供商的大气。</p>
<div style="border-top:1px dotted #ddd;width:100%;margin:5px 0"></div>
<p>
<strong>
<a href="http://www.awflasher.com/blog/archives/1207#awcomment"><strong>16</strong>条评论</a>,
<a href="http://www.awflasher.com/blog/archives/1207#awcomment">立即发言</a>
</strong>
|
本文关键词: <a href="http://www.awflasher.com/blog/tag/apple" rel="tag">apple</a>, <a href="http://www.awflasher.com/blog/tag/flashplayer" rel="tag">Flashplayer</a>, <a href="http://www.awflasher.com/blog/tag/iphone" rel="tag">iphone</a><br/></p>
<p>©<a href="http://www.awflasher.com/blog" title="aw's blog 姿态永恒">aw's blog 姿态永恒</a> 1984-2008  | <a href="http://www.awflasher.com/blog/archives/1207">链接地址</a> - http://www.awflasher.com/blog/archives/1207
</p>
<p><a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="http://weibo.com/awguo">@awguo （新浪微博）</a> | <a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="http://t.qq.com/awguo">@awguo （腾讯微博）</a> | <a style="color:#cc0000;background:#ffffaa;font-weight:bold" href="https://twitter.com/awguo">Twitter: @awguo</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.awflasher.com/blog/archives/1207/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

