<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-952536111273090643</id><updated>2024-09-17T05:35:25.723+05:30</updated><category term="linux commands"/><category term="unix commands"/><category term="linux"/><category term="MVC"/><category term="a-z"/><category term="adb commands"/><category term="adb shell"/><category term="adb shell commands"/><category term="android"/><category term="bash command line"/><category term="bash commands"/><category term="bash commands a-z"/><category term="bash commands definitions"/><category term="basic commands in unix/linux"/><category term="compressing and archiving files"/><category term="file handling commands"/><category term="general purpose linux commands"/><category term="linux file archiving"/><category term="linux file compress"/><category term="linux file handling commands"/><category term="linux file system"/><category term="linux file system commands"/><category term="linux utility commands"/><category term="paging"/><category term="tar"/><category term="template"/><category term="template script path"/><category term="unix"/><category term="unix basic commands"/><category term="untar"/><category term="unzip"/><category term="zend"/><category term="zend framework"/><category term="zip"/><title type='text'>Code Only</title><subtitle type='html'>Little solutions solve bigger issues...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-4892605695043556218</id><published>2011-09-29T15:12:00.000+05:30</published><updated>2011-09-29T15:12:42.266+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="a-z"/><category scheme="http://www.blogger.com/atom/ns#" term="bash command line"/><category scheme="http://www.blogger.com/atom/ns#" term="bash commands"/><category scheme="http://www.blogger.com/atom/ns#" term="bash commands a-z"/><category scheme="http://www.blogger.com/atom/ns#" term="bash commands definitions"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linux commands"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><category scheme="http://www.blogger.com/atom/ns#" term="unix commands"/><title type='text'>Bash command line for Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
Linux Bash commands with definitions,&lt;/div&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td width=&quot;110&quot;&gt;adduser&lt;/td&gt;&lt;td&gt;Add a user to the system&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;addgroup&lt;/td&gt;&lt;td&gt;Add a group to the system&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;alias&lt;/td&gt;&lt;td&gt;Create an alias&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;apropos&lt;/td&gt;&lt;td&gt;Search Help manual pages (man -k)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;apt-get&lt;/td&gt;&lt;td&gt;Search for and install software packages (Debian/Ubuntu)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;aptitude&lt;/td&gt;&lt;td&gt;Search for and install software packages (Debian/Ubuntu)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;aspell&lt;/td&gt;&lt;td&gt;Spell Checker&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;awk&lt;/td&gt;&lt;td&gt;Find and Replace text, database sort/validate/index&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;basename&lt;/td&gt;&lt;td&gt;Strip directory and suffix from filenames&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;bash&lt;/td&gt;&lt;td&gt;GNU Bourne-Again SHell&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;bc&lt;/td&gt;&lt;td&gt;Arbitrary precision calculator language&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;bg&lt;/td&gt;&lt;td&gt;Send to background&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;break&lt;/td&gt;&lt;td&gt;Exit from a loop&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;builtin&lt;/td&gt;&lt;td&gt;Run a shell builtin&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;bzip2&lt;/td&gt;&lt;td&gt;Compress or decompress named file(s)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cal&lt;/td&gt;&lt;td&gt;Display a calendar&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;case&lt;/td&gt;&lt;td&gt;Conditionally perform a command&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cat&lt;/td&gt;&lt;td&gt;Concatenate and print (display) the content of files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cd&lt;/td&gt;&lt;td&gt;Change Directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cfdisk&lt;/td&gt;&lt;td&gt;Partition table manipulator for Linux&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;chgrp&lt;/td&gt;&lt;td&gt;Change group ownership&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;chmod&lt;/td&gt;&lt;td&gt;Change access permissions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;chown&lt;/td&gt;&lt;td&gt;Change file owner and group&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;chroot&lt;/td&gt;&lt;td&gt;Run a command with a different root directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;chkconfig&lt;/td&gt;&lt;td&gt;System services (runlevel)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cksum&lt;/td&gt;&lt;td&gt;Print CRC checksum and byte counts&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;clear&lt;/td&gt;&lt;td&gt;Clear terminal screen&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cmp&lt;/td&gt;&lt;td&gt;Compare two files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;comm&lt;/td&gt;&lt;td&gt;Compare two sorted files line by line&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;command&lt;/td&gt;&lt;td&gt;Run a command - ignoring shell functions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;continue&lt;/td&gt;&lt;td&gt;Resume the next iteration of a loop&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cp&lt;/td&gt;&lt;td&gt;Copy one or more files to another location&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cron&lt;/td&gt;&lt;td&gt;Daemon to execute scheduled commands&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;crontab&lt;/td&gt;&lt;td&gt;Schedule a command to run at a later time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;csplit&lt;/td&gt;&lt;td&gt;Split a file into context-determined pieces&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cut&lt;/td&gt;&lt;td&gt;Divide a file into several parts&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;date&lt;/td&gt;&lt;td&gt;Display or change the date &amp;amp; time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dc&lt;/td&gt;&lt;td&gt;Desk Calculator&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dd&lt;/td&gt;&lt;td&gt;Convert and copy a file, write disk headers, boot records&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ddrescue&lt;/td&gt;&lt;td&gt;Data recovery tool&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;declare&lt;/td&gt;&lt;td&gt;Declare variables and give them attributes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;df&lt;/td&gt;&lt;td&gt;Display free disk space&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;diff&lt;/td&gt;&lt;td&gt;Display the differences between two files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;diff3&lt;/td&gt;&lt;td&gt;Show differences among three files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dig&lt;/td&gt;&lt;td&gt;DNS lookup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dir&lt;/td&gt;&lt;td&gt;Briefly list directory contents&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dircolors&lt;/td&gt;&lt;td&gt;Colour setup for `ls&#39;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dirname&lt;/td&gt;&lt;td&gt;Convert a full pathname to just a path&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dirs&lt;/td&gt;&lt;td&gt;Display list of remembered directories&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dmesg&lt;/td&gt;&lt;td&gt;Print kernel &amp;amp; driver messages&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;du&lt;/td&gt;&lt;td&gt;Estimate file space usage&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;echo&lt;/td&gt;&lt;td&gt;Display message on screen&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;egrep&lt;/td&gt;&lt;td&gt;Search file(s) for lines that match an extended expression&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;eject&lt;/td&gt;&lt;td&gt;Eject removable media&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;enable&lt;/td&gt;&lt;td&gt;Enable and disable builtin shell commands&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;env&lt;/td&gt;&lt;td&gt;Environment variables&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ethtool&lt;/td&gt;&lt;td&gt;Ethernet card settings&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;eval&lt;/td&gt;&lt;td&gt;Evaluate several commands/arguments&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;exec&lt;/td&gt;&lt;td&gt;Execute a command&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;exit&lt;/td&gt;&lt;td&gt;Exit the shell&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;expect&lt;/td&gt;&lt;td&gt;Automate arbitrary applications accessed over a terminal&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;expand&lt;/td&gt;&lt;td&gt;Convert tabs to spaces&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;export&lt;/td&gt;&lt;td&gt;Set an environment variable&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;expr&lt;/td&gt;&lt;td&gt;Evaluate expressions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;FALSE&lt;/td&gt;&lt;td&gt;Do nothing, unsuccessfully&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;fdformat &lt;/td&gt;&lt;td&gt;Low-level format a floppy disk&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;fdisk&lt;/td&gt;&lt;td&gt;Partition table manipulator for Linux&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;fg&lt;/td&gt;&lt;td&gt;Send job to foreground &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;fgrep&lt;/td&gt;&lt;td&gt;Search file(s) for lines that match a fixed string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;Determine file type&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;find&lt;/td&gt;&lt;td&gt;Search for files that meet a desired criteria&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;fmt&lt;/td&gt;&lt;td&gt;Reformat paragraph text&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;fold&lt;/td&gt;&lt;td&gt;Wrap text to fit a specified width.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;for&lt;/td&gt;&lt;td&gt;Expand words, and execute commands&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;format&lt;/td&gt;&lt;td&gt;Format disks or tapes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;free&lt;/td&gt;&lt;td&gt;Display memory usage&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;fsck&lt;/td&gt;&lt;td&gt;File system consistency check and repair&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ftp&lt;/td&gt;&lt;td&gt;File Transfer Protocol&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;function &lt;/td&gt;&lt;td&gt;Define Function Macros&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;fuser&lt;/td&gt;&lt;td&gt;Identify/kill the process that is accessing a file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;gawk&lt;/td&gt;&lt;td&gt;Find and Replace text within file(s)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;getopts&lt;/td&gt;&lt;td&gt;Parse positional parameters&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;grep&lt;/td&gt;&lt;td&gt;Search file(s) for lines that match a given pattern&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;groups&lt;/td&gt;&lt;td&gt;Print group names a user is in&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;gzip&lt;/td&gt;&lt;td&gt;Compress or decompress named file(s)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;hash&lt;/td&gt;&lt;td&gt;Remember the full pathname of a name argument&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;head&lt;/td&gt;&lt;td&gt;Output the first part of file(s)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;help&lt;/td&gt;&lt;td&gt;Display help for a built-in command&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;history&lt;/td&gt;&lt;td&gt;Command History&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;hostname&lt;/td&gt;&lt;td&gt;Print or set system name&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;iconv&lt;/td&gt;&lt;td&gt;Convert the character set of a file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;id&lt;/td&gt;&lt;td&gt;Print user and group id&#39;s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;if&lt;/td&gt;&lt;td&gt;Conditionally perform a command&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ifconfig &lt;/td&gt;&lt;td&gt;Configure a network interface&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ifdown&lt;/td&gt;&lt;td&gt;Stop a network interface &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ifup&lt;/td&gt;&lt;td&gt;Start a network interface up&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;import&lt;/td&gt;&lt;td&gt;Capture an X server screen and save the image to file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;install&lt;/td&gt;&lt;td&gt;Copy files and set attributes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;jobs&lt;/td&gt;&lt;td&gt;List active jobs&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;join&lt;/td&gt;&lt;td&gt;Join lines on a common field&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;kill&lt;/td&gt;&lt;td&gt;Stop a process from running&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;killall&lt;/td&gt;&lt;td&gt;Kill processes by name&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;less&lt;/td&gt;&lt;td&gt;Display output one screen at a time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;let&lt;/td&gt;&lt;td&gt;Perform arithmetic on shell variables&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ln&lt;/td&gt;&lt;td&gt;Make links between files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;local&lt;/td&gt;&lt;td&gt;Create variables&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;locate&lt;/td&gt;&lt;td&gt;Find files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;logname&lt;/td&gt;&lt;td&gt;Print current login name&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;logout&lt;/td&gt;&lt;td&gt;Exit a login shell&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;look&lt;/td&gt;&lt;td&gt;Display lines beginning with a given string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lpc&lt;/td&gt;&lt;td&gt;Line printer control program&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lpr&lt;/td&gt;&lt;td&gt;Off line print&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lprint&lt;/td&gt;&lt;td&gt;Print a file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lprintd&lt;/td&gt;&lt;td&gt;Abort a print job&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lprintq&lt;/td&gt;&lt;td&gt;List the print queue&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lprm&lt;/td&gt;&lt;td&gt;Remove jobs from the print queue&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ls&lt;/td&gt;&lt;td&gt;List information about file(s)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lsof&lt;/td&gt;&lt;td&gt;List open files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;make&lt;/td&gt;&lt;td&gt;Recompile a group of programs&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;man&lt;/td&gt;&lt;td&gt;Help manual&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mkdir&lt;/td&gt;&lt;td&gt;Create new folder(s)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mkfifo&lt;/td&gt;&lt;td&gt;Make FIFOs (named pipes)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mkisofs&lt;/td&gt;&lt;td&gt;Create an hybrid ISO9660/JOLIET/HFS filesystem&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mknod&lt;/td&gt;&lt;td&gt;Make block or character special files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;more&lt;/td&gt;&lt;td&gt;Display output one screen at a time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mount&lt;/td&gt;&lt;td&gt;Mount a file system&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mtools&lt;/td&gt;&lt;td&gt;Manipulate MS-DOS files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mtr&lt;/td&gt;&lt;td&gt;Network diagnostics (traceroute/ping)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mv&lt;/td&gt;&lt;td&gt;Move or rename files or directories&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mmv&lt;/td&gt;&lt;td&gt;Mass Move and rename (files)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;netstat&lt;/td&gt;&lt;td&gt;Networking information&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;nice&lt;/td&gt;&lt;td&gt;Set the priority of a command or job&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;nl&lt;/td&gt;&lt;td&gt;Number lines and write files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;nohup&lt;/td&gt;&lt;td&gt;Run a command immune to hangups&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;notify-send&lt;/td&gt;&lt;td&gt;Send desktop notifications&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;nslookup &lt;/td&gt;&lt;td&gt;Query Internet name servers interactively&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;open&lt;/td&gt;&lt;td&gt;Open a file in its default application&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;op&lt;/td&gt;&lt;td&gt;Operator access &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;passwd&lt;/td&gt;&lt;td&gt;Modify a user password&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;paste&lt;/td&gt;&lt;td&gt;Merge lines of files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;pathchk&lt;/td&gt;&lt;td&gt;Check file name portability&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ping&lt;/td&gt;&lt;td&gt;Test a network connection&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;pkill&lt;/td&gt;&lt;td&gt;Stop processes from running&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;popd&lt;/td&gt;&lt;td&gt;Restore the previous value of the current directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;pr&lt;/td&gt;&lt;td&gt;Prepare files for printing&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;printcap &lt;/td&gt;&lt;td&gt;Printer capability database&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;printenv &lt;/td&gt;&lt;td&gt;Print environment variables&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;printf&lt;/td&gt;&lt;td&gt;Format and print data&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ps&lt;/td&gt;&lt;td&gt;Process status&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;pushd&lt;/td&gt;&lt;td&gt;Save and then change the current directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;pwd&lt;/td&gt;&lt;td&gt;Print Working Directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;quota&lt;/td&gt;&lt;td&gt;Display disk usage and limits&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;quotacheck &lt;/td&gt;&lt;td&gt;Scan a file system for disk usage&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;quotactl &lt;/td&gt;&lt;td&gt;Set disk quotas&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ram&lt;/td&gt;&lt;td&gt;ram disk device&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;rcp&lt;/td&gt;&lt;td&gt;Copy files between two machines&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;read&lt;/td&gt;&lt;td&gt;Read a line from standard input&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;readarray&lt;/td&gt;&lt;td&gt;Read from stdin into an array variable&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;readonly &lt;/td&gt;&lt;td&gt;Mark variables/functions as readonly&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;reboot&lt;/td&gt;&lt;td&gt;Reboot the system&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;rename&lt;/td&gt;&lt;td&gt;Rename files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;renice&lt;/td&gt;&lt;td&gt;Alter priority of running processes &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;remsync&lt;/td&gt;&lt;td&gt;Synchronize remote files via email&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;return&lt;/td&gt;&lt;td&gt;Exit a shell function&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;rev&lt;/td&gt;&lt;td&gt;Reverse lines of a file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;rm&lt;/td&gt;&lt;td&gt;Remove files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;rmdir&lt;/td&gt;&lt;td&gt;Remove folder(s)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;rsync&lt;/td&gt;&lt;td&gt;Remote file copy (Synchronize file trees)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;screen&lt;/td&gt;&lt;td&gt;Multiplex terminal, run remote shells via ssh&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;scp&lt;/td&gt;&lt;td&gt;Secure copy (remote file copy)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sdiff&lt;/td&gt;&lt;td&gt;Merge two files interactively&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sed&lt;/td&gt;&lt;td&gt;Stream Editor&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;select&lt;/td&gt;&lt;td&gt;Accept keyboard input&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;seq&lt;/td&gt;&lt;td&gt;Print numeric sequences&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;set&lt;/td&gt;&lt;td&gt;Manipulate shell variables and functions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sftp&lt;/td&gt;&lt;td&gt;Secure File Transfer Program&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;shift&lt;/td&gt;&lt;td&gt;Shift positional parameters&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;shopt&lt;/td&gt;&lt;td&gt;Shell Options&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;shutdown &lt;/td&gt;&lt;td&gt;Shutdown or restart linux&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sleep&lt;/td&gt;&lt;td&gt;Delay for a specified time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;slocate&lt;/td&gt;&lt;td&gt;Find files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sort&lt;/td&gt;&lt;td&gt;Sort text files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;source&lt;/td&gt;&lt;td&gt;Run commands from a file `.&#39;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;split&lt;/td&gt;&lt;td&gt;Split a file into fixed-size pieces&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ssh&lt;/td&gt;&lt;td&gt;Secure Shell client (remote login program)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;strace&lt;/td&gt;&lt;td&gt;Trace system calls and signals&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;su&lt;/td&gt;&lt;td&gt;Substitute user identity&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sudo&lt;/td&gt;&lt;td&gt;Execute a command as another user&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sum&lt;/td&gt;&lt;td&gt;Print a checksum for a file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;suspend&lt;/td&gt;&lt;td&gt;Suspend execution of this shell&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;symlink&lt;/td&gt;&lt;td&gt;Make a new name for a file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sync&lt;/td&gt;&lt;td&gt;Synchronize data on disk with memory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;tail&lt;/td&gt;&lt;td&gt;Output the last part of files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;tar&lt;/td&gt;&lt;td&gt;Tape ARchiver&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;tee&lt;/td&gt;&lt;td&gt;Redirect output to multiple files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;td&gt;Evaluate a conditional expression&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;time&lt;/td&gt;&lt;td&gt;Measure Program running time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;times&lt;/td&gt;&lt;td&gt;User and system times&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;touch&lt;/td&gt;&lt;td&gt;Change file timestamps&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;top&lt;/td&gt;&lt;td&gt;List processes running on the system&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;traceroute &lt;/td&gt;&lt;td&gt;Trace Route to Host&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;trap&lt;/td&gt;&lt;td&gt;Run a command when a signal is set(bourne)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;tr&lt;/td&gt;&lt;td&gt;Translate, squeeze, and/or delete characters&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;TRUE&lt;/td&gt;&lt;td&gt;Do nothing, successfully&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;tsort&lt;/td&gt;&lt;td&gt;Topological sort&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;tty&lt;/td&gt;&lt;td&gt;Print filename of terminal on stdin&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;type&lt;/td&gt;&lt;td&gt;Describe a command&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ulimit&lt;/td&gt;&lt;td&gt;Limit user resources&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;umask&lt;/td&gt;&lt;td&gt;Users file creation mask&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;umount&lt;/td&gt;&lt;td&gt;Unmount a device&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;unalias&lt;/td&gt;&lt;td&gt;Remove an alias&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;uname&lt;/td&gt;&lt;td&gt;Print system information&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;unexpand &lt;/td&gt;&lt;td&gt;Convert spaces to tabs&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;uniq&lt;/td&gt;&lt;td&gt;Uniquify files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;units&lt;/td&gt;&lt;td&gt;Convert units from one scale to another&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;unset&lt;/td&gt;&lt;td&gt;Remove variable or function names&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;unshar&lt;/td&gt;&lt;td&gt;Unpack shell archive scripts&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;until&lt;/td&gt;&lt;td&gt;Execute commands (until error)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;useradd&lt;/td&gt;&lt;td&gt;Create new user account&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;usermod&lt;/td&gt;&lt;td&gt;Modify user account&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;users&lt;/td&gt;&lt;td&gt;List users currently logged in&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;uuencode &lt;/td&gt;&lt;td&gt;Encode a binary file &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;uudecode &lt;/td&gt;&lt;td&gt;Decode a file created by uuencode&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;v&lt;/td&gt;&lt;td&gt;Verbosely list directory contents (`ls -l -b&#39;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;vdir&lt;/td&gt;&lt;td&gt;Verbosely list directory contents (`ls -l -b&#39;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;vi&lt;/td&gt;&lt;td&gt;Text Editor&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;vmstat&lt;/td&gt;&lt;td&gt;Report virtual memory statistics&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;watch&lt;/td&gt;&lt;td&gt;Execute/display a program periodically&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;wc&lt;/td&gt;&lt;td&gt;Print byte, word, and line counts&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;whereis&lt;/td&gt;&lt;td&gt;Search the user&#39;s $path, man pages and source files for a program&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;which&lt;/td&gt;&lt;td&gt;Search the user&#39;s $path for a program file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;while&lt;/td&gt;&lt;td&gt;Execute commands&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;who&lt;/td&gt;&lt;td&gt;Print all usernames currently logged in&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;whoami&lt;/td&gt;&lt;td&gt;Print the current user id and name (`id -un&#39;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Wget&lt;/td&gt;&lt;td&gt;Retrieve web pages or files via HTTP, HTTPS or FTP&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;write&lt;/td&gt;&lt;td&gt;Send a message to another user &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;xargs&lt;/td&gt;&lt;td&gt;Execute utility, passing constructed argument list(s)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;xdg-open &lt;/td&gt;&lt;td&gt;Open a file or URL in the user&#39;s preferred application.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;yes&lt;/td&gt;&lt;td&gt;Print a string until interrupted&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;.&lt;/td&gt;&lt;td&gt;Run a command script in the current shell&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;!!&lt;/td&gt;&lt;td&gt;Run the last command again&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;###&lt;/td&gt;&lt;td&gt;Comment / Remark&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/4892605695043556218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2011/09/bash-command-line-for-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/4892605695043556218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/4892605695043556218'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2011/09/bash-command-line-for-linux.html' title='Bash command line for Linux'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-1623887414341669246</id><published>2011-09-28T17:06:00.000+05:30</published><updated>2011-09-28T17:06:26.794+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="compressing and archiving files"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linux commands"/><category scheme="http://www.blogger.com/atom/ns#" term="linux file archiving"/><category scheme="http://www.blogger.com/atom/ns#" term="linux file compress"/><category scheme="http://www.blogger.com/atom/ns#" term="tar"/><category scheme="http://www.blogger.com/atom/ns#" term="unix commands"/><category scheme="http://www.blogger.com/atom/ns#" term="untar"/><category scheme="http://www.blogger.com/atom/ns#" term="unzip"/><category scheme="http://www.blogger.com/atom/ns#" term="zip"/><title type='text'>Linux commands for Compressing and Archiving File</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;1.&amp;nbsp;gzip and gunzip&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;gzip &lt;/b&gt;command is used to compress the ﬁle, and &lt;b&gt;gunzip &lt;/b&gt;is&amp;nbsp;used to de-compress it.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;gzip &amp;lt;ﬁle name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
It provides the extension .gz and removes the original ﬁle&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ wc sample_copy.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 65 2776 17333 sample_copy.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ gzip sample_copy.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ wc sample_copy.txt.gz&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 26 155 7095 sample_copy.txt.gz&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The compression ratio depends on the type, size and&amp;nbsp;nature of the ﬁle&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;gunzip &amp;lt;ﬁle name with.gz&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ gunzip sample_copy.txt.gz&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ /*do ls and you can see the original file*/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
If you want to compress the directory contents recursively,&amp;nbsp;use &lt;b&gt;-r&lt;/b&gt; option with &lt;b&gt;gzip &lt;/b&gt;command and unzip it use the&amp;nbsp;same option with &lt;b&gt;gunzip &lt;/b&gt;command.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;2.&amp;nbsp;tar : The archival program&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;tar &lt;/b&gt;command is used to create archive that contains a&amp;nbsp;group or ﬁle or entire directory structure.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
It is generally used for back ups.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;tar [options] &lt;output ﬁle.tar=&quot;&quot;&gt; &amp;lt;ﬁle1 or dir&amp;gt; . . .&lt;/output&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Options:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;-c Create an archive&lt;/li&gt;
&lt;li&gt;-x Extract ﬁles from archive&lt;/li&gt;
&lt;li&gt;-t Display ﬁles in archive&lt;/li&gt;
&lt;li&gt;-f arch Name the archive arch&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Examples:&lt;/b&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ tar -cvf compression.tar compression&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;compression/ //v for verbose&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;compression/temp/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;compression/temp/sample2.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;compression/sample1.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;We can use &lt;b&gt;tar &lt;/b&gt;and &lt;b&gt;gzip &lt;/b&gt;command in succession to&amp;nbsp;compress the tar ﬁle.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ tar -cvf compression.tar compression&lt;br /&gt;$ gzip compression.tar&lt;br /&gt;$ //will create compression.tar.gz file&lt;/span&gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;For un-compression the ﬁle ﬁrst use &lt;b&gt;gunzip &lt;/b&gt;command,&amp;nbsp;which will create a tar ﬁle and then use &lt;b&gt;tar&lt;/b&gt; command to&amp;nbsp;untar the contents&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ gunzip compression.tar.gz&lt;br /&gt;$ tar -xvf compression.tar&lt;/span&gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;To just view the contents of the tar ﬁle use &lt;b&gt;-t&lt;/b&gt; option&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ tar -tvf compression.tar&lt;/span&gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Instead of doing &lt;b&gt;tar &lt;/b&gt;ﬁrst and then &lt;b&gt;gzip &lt;/b&gt;next, we can&amp;nbsp;combine both of them using the option &lt;b&gt;-z&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ tar -cvzf compression.tar.gz compression&lt;br /&gt;compression/&lt;br /&gt;compression/temp/&lt;br /&gt;compression/temp/sample2.txt&lt;br /&gt;compression/sample1.txt&lt;/span&gt;&lt;/blockquote&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;We can de-compress .tar.gz agin in a single command&amp;nbsp;using the option &lt;b&gt;-z&lt;/b&gt; with &lt;b&gt;-x&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ tar -xvzf compression.tar.gz&lt;/span&gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp;3.&amp;nbsp;zip and unzip: compressing and archiving&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;zip&lt;/b&gt; command can be used for archiving as well as&amp;nbsp;compressing the contents of the directory or the ﬁle.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;zip [options] output.zip &amp;lt;ﬁles to be zipped or&amp;nbsp;directory&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ zip sample1.zip sample1.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//will create sample1.zip file&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Use &lt;b&gt;-r &lt;/b&gt;option to recursively zip the contents of the directory&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ zip -r compression.zip compression&lt;br /&gt;// will create compression.zip file&lt;/span&gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;To un-compress the ﬁle use &lt;b&gt;unzip &lt;/b&gt;command&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ unzip compression.zip&lt;br /&gt;// will uncompress the compression.zip file&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/1623887414341669246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2011/09/linux-commands-for-compressing-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/1623887414341669246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/1623887414341669246'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2011/09/linux-commands-for-compressing-and.html' title='Linux commands for Compressing and Archiving File'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-8526904086594679690</id><published>2011-09-28T16:22:00.001+05:30</published><updated>2011-09-28T16:27:36.318+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="file handling commands"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linux commands"/><category scheme="http://www.blogger.com/atom/ns#" term="linux file handling commands"/><category scheme="http://www.blogger.com/atom/ns#" term="paging"/><category scheme="http://www.blogger.com/atom/ns#" term="unix commands"/><title type='text'>Linux File Handling Commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;1. cat : Concatenate Files&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;cat&lt;/b&gt; command is used to display the contents of a small ﬁle&amp;nbsp;on terminal&lt;br /&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cat &amp;lt;ﬁle name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cat sample3.txt&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Unix (officially trademarked as UNIX, sometimes...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;cat&lt;/b&gt; when supplied with more than one ﬁle will concatenate&amp;nbsp;the ﬁles without any header information&lt;br /&gt;
&lt;b&gt;Usage:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cat sample3.txt sample4.txt&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2.&amp;nbsp;tac : concatenate ﬁles in reverse&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;tac&lt;/b&gt; command is used to display the contents of a small ﬁle&amp;nbsp;in reverse order on terminal&lt;br /&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;tac &amp;lt;ﬁle name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ tac sample3.txt&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/*displays sample3.txt in reverse order*/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;tac&lt;/b&gt; when supplied with more than one ﬁle will concatenate&amp;nbsp;the reverse contents of ﬁles without any header information&lt;br /&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ tac sample3.txt sample4.txt&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3.&amp;nbsp;more, less : paging output&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
more and less commands are used to view large ﬁles one&amp;nbsp;page at a time&lt;br /&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;more &amp;lt;ﬁle name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;less &amp;lt;ﬁle name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ more sample1.txt&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/*sample1.txt will be displayed one page&amp;nbsp;at a time */&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ less sample1.txt&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/*sample1.txt will be displayed one page&amp;nbsp;at a time */&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;less &lt;/b&gt;is the standard pager for linux and in general &lt;b&gt;less &lt;/b&gt;is&amp;nbsp;more powerful than &lt;b&gt;more&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4.&amp;nbsp;wc : statistic of ﬁle&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;wc &lt;/b&gt;command is used to count lines, words and characters,&amp;nbsp;depending on the option used.&lt;br /&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;wc [options] [ﬁle name]&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ wc sample1.txt&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;65 2776 17333 sample1.txt&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;Which means sample1.txt ﬁle has 65 lines, 2776 words,&amp;nbsp;and 17333 characters&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;you can just print number of lines, number of words or&amp;nbsp;number of charcters by using following options:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;-l : Number of lines&lt;/li&gt;
&lt;li&gt;-w : Number of words&lt;/li&gt;
&lt;li&gt;-c : Number of characters&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;b&gt;5.&amp;nbsp;cmp: comparing two ﬁles&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;cmp&lt;/b&gt; command is used to compare two ﬁles whether they&amp;nbsp;are identical or not&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cmp &amp;lt;ﬁle1&amp;gt; &amp;lt;ﬁle2&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cmp sample1.txt sample2.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sample1.txt sample2.txt differ: byte 1, line 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cmp sample1.txt sample1_copy.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ /*No output prompt returns back*/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;The two ﬁles are compared byte by byte and the location of&amp;nbsp;the ﬁrst mismatch is printed on the screen.&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;If two ﬁles are identical, then it doesnot print anything on&amp;nbsp;the screen.&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;6.&amp;nbsp;comm : what is common?&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;comm&lt;/b&gt; command displays what is common between both&amp;nbsp;the ﬁles&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;comm &amp;lt;ﬁle1&amp;gt; &amp;lt;ﬁle2&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ comm sample5.txt sample6.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;The input ﬁles to comm command should be sorted&amp;nbsp;alphabetically.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/8526904086594679690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2011/09/linux-file-handling-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/8526904086594679690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/8526904086594679690'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2011/09/linux-file-handling-commands.html' title='Linux File Handling Commands'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-416702836202632013</id><published>2011-09-28T15:31:00.000+05:30</published><updated>2011-09-28T15:31:52.339+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linux commands"/><category scheme="http://www.blogger.com/atom/ns#" term="linux file system"/><category scheme="http://www.blogger.com/atom/ns#" term="linux file system commands"/><category scheme="http://www.blogger.com/atom/ns#" term="unix commands"/><title type='text'>Linux file system</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;1. Standard directory structure&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;/ - the topmost&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;/dev - all the devices are accessible as files&lt;/li&gt;
&lt;li&gt;/var - &quot;variable&quot; data such as mails, log files, databases&lt;/li&gt;
&lt;li&gt;/usr - almost all the packages installed&lt;/li&gt;
&lt;li&gt;/etc - con?guration files&lt;/li&gt;
&lt;li&gt;/home - home directories for all the users&lt;/li&gt;
&lt;li&gt;/root - home directory of the privileged user root&lt;/li&gt;
&lt;li&gt;/mnt - used to mount other directories/partitions&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;2.&amp;nbsp;File Attributes&lt;/b&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;To see the file attributes type &lt;b&gt;ls -l&lt;/b&gt; on your terminal&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ls -l&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;total 156&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;-rw-r--r-- &amp;nbsp;1 root root &amp;nbsp; 1053 Sep 22 &amp;nbsp;2010 anaconda-ks.cfg&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;-rw-r--r-- &amp;nbsp;1 root root 127004 Sep 22 &amp;nbsp;2010 CHECKSUMS&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;drwxr-xr-x &amp;nbsp;2 root root &amp;nbsp; 4096 Aug &amp;nbsp;3 00:02 Desktop&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;-rw-r--r-- &amp;nbsp;1 root root &amp;nbsp; &amp;nbsp;100 Jun &amp;nbsp;6 22:14 svn-checkout-command&lt;/span&gt;&lt;/blockquote&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;
&lt;li&gt;&amp;nbsp;It has 10 characters, ﬁrst character is d if its directory and -&amp;nbsp;if its ﬁle.&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;Next 9 characters are divided into three groups with a set&amp;nbsp;of 3 characters each&lt;/li&gt;
&lt;li&gt;First 3 characters - Owner of the ﬁle or directory&lt;/li&gt;
&lt;li&gt;Next 3 characters - Group&lt;/li&gt;
&lt;li&gt;Last 3 characters - Others&lt;/li&gt;
&lt;li&gt;&lt;b&gt;r&lt;/b&gt; - Read i.e. File or directory is readable&lt;/li&gt;
&lt;li&gt;&lt;b&gt;w &lt;/b&gt;- Write i.e. File or directory is writable&lt;/li&gt;
&lt;li&gt;&lt;b&gt;x &lt;/b&gt;- Execute i.e. File or directory is executable&lt;/li&gt;
&lt;li&gt;&lt;b&gt;-rw-r–r–&lt;/b&gt; means it has read, write but not execute permissions for the owner of the file, only read permissions for the group and only read permissions for others.&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;The third column of the command &lt;b&gt;ls -l&lt;/b&gt; tells about the&amp;nbsp;owner of the ﬁle, next column tells to which group it&amp;nbsp;belongs&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;b&gt;3.&amp;nbsp;Changing the File attributes&lt;/b&gt;&lt;div&gt;
&lt;b&gt;chmod &lt;/b&gt;Changing the permissions of the ﬁle&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Usage:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ chmod o+x Testing.java&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ chmod 655 Testing.java&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;4.&amp;nbsp;Changing ownership&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;b&gt;chown &lt;/b&gt;command is used for changing the ownership and&amp;nbsp;also group of the ﬁle&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ chown guest Testing.java&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ chown guest:guest Testing.java&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;5.&amp;nbsp;File system commands&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Deleting Files - &lt;b&gt;rm&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Copying and moving ﬁles - &lt;b&gt;cp, mv&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Creating directories - &lt;b&gt;mkdir&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Deleting Empty Directory - &lt;b&gt;rmdir&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ rm Testing.java&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//deletes the file Testing.java&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cp Testing.java Copy.java&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//creates the copy of Testing.java&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ mv Testing.java Test.java&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//renames the file Testing.java to Test.java&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ mkdir newDir&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//Creates directory newDir&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ rmdir newDir&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//deletes directory newDir newDir should be empty.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/416702836202632013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2011/09/linux-file-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/416702836202632013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/416702836202632013'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2011/09/linux-file-system.html' title='Linux file system'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-5632516697706965811</id><published>2011-09-28T15:15:00.000+05:30</published><updated>2011-09-28T15:15:41.645+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="basic commands in unix/linux"/><category scheme="http://www.blogger.com/atom/ns#" term="general purpose linux commands"/><category scheme="http://www.blogger.com/atom/ns#" term="linux commands"/><category scheme="http://www.blogger.com/atom/ns#" term="linux utility commands"/><category scheme="http://www.blogger.com/atom/ns#" term="unix basic commands"/><category scheme="http://www.blogger.com/atom/ns#" term="unix commands"/><title type='text'>General Purpose utilities commands in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;1. Calender&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;cal&lt;/b&gt;: Command to see calender for any specific month or a complete year&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cal [ [month] year]&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Example&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cal april 2009&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;April 2009&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Su Mo Tu We Th Fr Sa&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; &amp;nbsp;1 &amp;nbsp;2 &amp;nbsp;3 &amp;nbsp;4&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;5 &amp;nbsp; 6 &amp;nbsp;7 &amp;nbsp;8 &amp;nbsp;9 10 11&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;12 13 14 15 16 17 18&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;19 20 21 22 23 24 25&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;26 27 28 29 30&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Date&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;date&lt;/b&gt;: displays the current date&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ date&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Tue Apr 21 21:33:49 IST 2009&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;user$ date +&quot;%D %H:%M:%S&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;04/21/09 21:35:02&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Options&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;d - The da of the month (1-31)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;y - The last two digits of the year&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;H,M,S - Hour Minute and second respectively&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;D - the date in mm/dd/yy&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. echo&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;echo&lt;/b&gt;: Print message on the terminal&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;echo &quot;&lt;message&gt;&quot;&lt;/message&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Example&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ echo &quot;Welcome to the workshop&quot;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Welcome to the workshop&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4. printf&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;printf&lt;/b&gt;: Print the formatted message on the terminal&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;printf &quot;&lt;formatted message=&quot;&quot;&gt;&quot;&lt;/formatted&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Example&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ printf &quot;the amount is %d\n&quot; 100&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;the amount is 100&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5. Calculator&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;bc&lt;/b&gt;: A text based calculator&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ bc&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2*10+20-9+4/2 [Input]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;33 [Output]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ctrl+d] [Quit]&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;xcalc &lt;/b&gt;is graphical based calculator&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;6. script&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;script &lt;/b&gt;command records your session and stores it in a file&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ script&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Script started, file is typescript&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ echo &quot;this is a sample script&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;this is a sample script&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ [ctrl+d]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Script done, file is typescript&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
By default if you dont specify any file name the contents will be stored in file name &lt;b&gt;typescipt&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cat typescript&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Script started on Tuesday 21 April 2009 10:07:00&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ echo &quot;this is a sample script&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;this is a sample script&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Script done on Tuesday 21 April 2009 10:07:34 PM&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7. passwd&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;passwd &lt;/b&gt;command allows you to change your password&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ passwd&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Changing password for user123.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;(current) UNIX password:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Enter new UNIX password:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Retype new UNIX password:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;passwd: password updated successfully&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8. WHO: Who are the users?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;who &lt;/b&gt;command tells you the users currently logged on to the system&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ who&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;root &amp;nbsp; &amp;nbsp; :0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sep &amp;nbsp;4 22:47&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;root &amp;nbsp; &amp;nbsp; pts/1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sep &amp;nbsp;4 22:48 (:0.0)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9. man - The reference Manual&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;man &lt;/b&gt;displays the documentation for a command&lt;br /&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;man &lt;command name=&quot;&quot;&gt;&lt;/command&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Example&lt;/b&gt;:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ man ls&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ls - list directory contents&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SYNOPSIS&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ls [OPTION]... [FILE]...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;DESCRIPTION&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;List information about the FILEs (the&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;none of -cftuvSUX nor --sort.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/5632516697706965811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2011/09/general-purpose-utilities-commands-in.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/5632516697706965811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/5632516697706965811'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2011/09/general-purpose-utilities-commands-in.html' title='General Purpose utilities commands in Linux'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-4952859352232869748</id><published>2011-04-08T16:32:00.000+05:30</published><updated>2011-04-08T16:32:46.477+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><category scheme="http://www.blogger.com/atom/ns#" term="template"/><category scheme="http://www.blogger.com/atom/ns#" term="template script path"/><category scheme="http://www.blogger.com/atom/ns#" term="zend"/><category scheme="http://www.blogger.com/atom/ns#" term="zend framework"/><title type='text'>Zend Framework: Geting the path to the view template directory</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;To get the template path in Zend Framework,&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;print_r($this-&gt;getScriptPaths());&lt;/code&gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/4952859352232869748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2011/04/zend-framework-geting-path-to-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/4952859352232869748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/4952859352232869748'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2011/04/zend-framework-geting-path-to-view.html' title='Zend Framework: Geting the path to the view template directory'/><author><name>Prabha</name><uri>http://www.blogger.com/profile/08424169612857558619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-3980587420223189225</id><published>2011-04-07T12:38:00.001+05:30</published><updated>2011-04-07T13:30:27.338+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="adb commands"/><category scheme="http://www.blogger.com/atom/ns#" term="adb shell"/><category scheme="http://www.blogger.com/atom/ns#" term="adb shell commands"/><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>Basic Android Terminal and ADB Shell Command List</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;1. Restart Android Phone&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb shell reboot&lt;/code&gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;b&gt;2. Restart Android into Recovery Mode&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb shell reboot recovery&lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;3. Convert back to ext2 partition&lt;/b&gt; &lt;/div&gt;&lt;blockquote&gt;&lt;code&gt;&lt;br /&gt;
adb shell === ENTER&lt;br/&gt;&lt;br /&gt;
tune2fs-O ^ has_journal / dev/block/mmcblk0p2 === carriage return&lt;br/&gt;&lt;br /&gt;
e2fsck / dev/block/mmcblk0p2 === carriage return (optional, can be a problem area in section 2, when used)&lt;br/&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;4. Pulling applications from Android phone to computer&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb pull /system/sd/app app&lt;br/&gt;&lt;br /&gt;
adb pull /system/sd/app-private app-private&lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;5. Pushing applications back to android phone from the computer&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb push app /system/sd/app&lt;br/&gt;&lt;br /&gt;
adb push app-private /system/sd/app-private&lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;6. Delete existing apps on Android SD&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb shell rm -r /system/sd/app&lt;br/&gt;&lt;br /&gt;
adb shell rm -r /system/sd/app-private&lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;7. Repair gravity System or switch to screen&lt;/b&gt;&lt;br /&gt;
&lt;p&gt;Sometimes frequent brushing of phone can cause gravity system or switch to screen failure. Just follow the steps below-&lt;br /&gt;
Restart the phone into Recovery mode, press &quot;Alt + X&quot; into the console&lt;br /&gt;
Open cmd and enter the following command&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;mount / data === carriage return&lt;br/&gt;&lt;br /&gt;
rm / data / misc / akmd * / data / misc / rild * &lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;8. Ext2/ext3/ext4 formatted partition&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb remount &lt;br/&gt;&lt;br /&gt;
adb shell &lt;br/&gt;&lt;br /&gt;
rm-r / system / sd / * &lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;9. Remove/ system / app under the application&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb remount&lt;br/&gt;&lt;br /&gt;
adb rm / system / app / Stocks.apk &lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;10. If the start Time is too Long&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb logcat&lt;/code&gt;&lt;/blockquote&gt;&lt;b&gt;11. Through Terminal Partition SD card&lt;/b&gt;&lt;br /&gt;
&lt;p&gt;It will erase everything on your SD card&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;$  su&lt;br/&gt;&lt;br /&gt;
# cd /data&lt;br/&gt;&lt;br /&gt;
# wget http://64.105.21.209/bin/lib/droid/sdsplit&lt;br/&gt;&lt;br /&gt;
# chmod 555 sdsplit&lt;br/&gt;&lt;br /&gt;
# /data/sdsplit -fs *size* (add -nc to the end for JFv1.5ADP)&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;12. From the Recovery Screen, send an update file to your SD card.&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;code&gt;adb shell mount /sdcard&lt;br/&gt;&lt;br /&gt;
adb shell rm /sdcard/update.zip&lt;br/&gt;&lt;br /&gt;
adb push *filename* /sdcard/update.zip&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;13. Restoring a nandroid backup via Fastboot&lt;/b&gt;&lt;br /&gt;
&lt;p&gt;Start command-prompt/terminal cd to the nandroid folder and enter following commands&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;fastboot erase boot&lt;br/&gt;&lt;br /&gt;
fastboot erase recovery&lt;br/&gt;&lt;br /&gt;
fastboot flash system system.img&lt;br/&gt;&lt;br /&gt;
fastboot flash boot boot.img&lt;br/&gt;&lt;br /&gt;
fastboot flash userdata data.img&lt;br/&gt;&lt;br /&gt;
fastboot flash recovery recovery.img&lt;br/&gt;&lt;br /&gt;
fastboot reboot&lt;/code&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/3980587420223189225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2011/04/basic-android-terminal-and-adb-shell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/3980587420223189225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/3980587420223189225'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2011/04/basic-android-terminal-and-adb-shell.html' title='Basic Android Terminal and ADB Shell Command List'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-1658004179561999877</id><published>2009-05-04T12:09:00.005+05:30</published><updated>2009-05-04T12:46:53.249+05:30</updated><title type='text'>Coldfusion File Deletion</title><content type='html'>Use the following code to delete a particular file using coldfusion language&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255); font-weight: bold;&quot;&gt;&amp;lt;cffile action=&quot;delete&quot; file=&quot;C:\docs\filename.txt&quot;&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/1658004179561999877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2009/05/coldfusion-file-deletion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/1658004179561999877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/1658004179561999877'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2009/05/coldfusion-file-deletion.html' title='Coldfusion File Deletion'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-3617376537944991752</id><published>2009-05-04T11:49:00.005+05:30</published><updated>2009-05-04T12:47:20.409+05:30</updated><title type='text'>Coldfusion Directory Listing</title><content type='html'>&lt;span style=&quot;;font-family:trebuchet ms;font-size:100%;&quot;  &gt;Use the following code snippet to list all files from a particular directory,&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255); font-weight: bold;&quot;&gt;&amp;lt;cfdirectory action=&quot;LIST&quot; directory=&quot;#ExpandPath(&#39;docs&#39;)#&quot; name=&quot;dirlist&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255); font-weight: bold;&quot;&gt;&amp;lt;cfloop query=&quot;dirlist&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255); font-weight: bold;&quot;&gt;    &lt;a href=&quot;http://www.blogger.com/docs/#dirlist.name#&quot; target=&quot;_blank&quot;&gt;#dirlist.name#&lt;/a&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255); font-weight: bold;&quot;&gt;    (#NumberFormat(outSize)# kB, &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255); font-weight: bold;&quot;&gt;    #lsdateformat(dirlist.dateLastModified, &#39;dddd d mmmm yyyy&#39;)#)&lt;br /&gt;&amp;lt;/cfloop&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Here &quot;&lt;span style=&quot;color: rgb(51, 102, 255); font-weight: bold;&quot;&gt;ExpandPath()&lt;/span&gt;&#39; returns a absolute URL of the directory.&lt;br /&gt;&lt;br /&gt;Use &quot;&lt;span style=&quot;color: rgb(51, 102, 255); font-weight: bold;&quot;&gt;dirlist.size&lt;/span&gt;&quot; to get the filesize.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/3617376537944991752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2009/05/coldfusion-directory-listing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/3617376537944991752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/3617376537944991752'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2009/05/coldfusion-directory-listing.html' title='Coldfusion Directory Listing'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-1711972907047761142</id><published>2008-09-17T19:39:00.006+05:30</published><updated>2008-09-17T20:20:33.846+05:30</updated><title type='text'>Check for Column existence in a C# DataTable</title><content type='html'>&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;DataTable dtTest = new DataTable();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;          dtTest.Columns.Add(&quot;Test1&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;          dtTest.Columns.Add(&quot;Test2&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;          dtTest.Columns.Add(&quot;Test3&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;          Response.Write(dtTest.Columns.Contains(&quot;Test&quot;)); // returns false;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;          Response.Write(dtTest.Columns.Contains(&quot;Test2&quot;)); // returns true;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/1711972907047761142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2008/09/check-for-column-existance-in-datatable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/1711972907047761142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/1711972907047761142'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2008/09/check-for-column-existance-in-datatable.html' title='Check for Column existence in a C# DataTable'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-6264255948770519966</id><published>2008-08-27T14:55:00.002+05:30</published><updated>2008-08-27T15:14:45.837+05:30</updated><title type='text'>Redirection in c#</title><content type='html'>&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;Response.Redirect(&quot;http://google.com&quot;);&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/6264255948770519966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2008/08/redirection-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/6264255948770519966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/6264255948770519966'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2008/08/redirection-in-c.html' title='Redirection in c#'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-8622566397825399910</id><published>2008-08-25T21:13:00.004+05:30</published><updated>2008-08-25T21:18:50.292+05:30</updated><title type='text'>Rename a Column in C# DataTable</title><content type='html'>&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Consider you have DataTable(dtUser) with 3 columns(ID, NAME, DESC)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;if you want to change column name &#39;DESC&#39; to &#39;DESCRIPTION&#39;,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;dtUser.Columns[2].ColumnName=&quot;DESCRIPTION&quot;;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/8622566397825399910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2008/08/rename-column-in-c-datatable.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/8622566397825399910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/8622566397825399910'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2008/08/rename-column-in-c-datatable.html' title='Rename a Column in C# DataTable'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-952536111273090643.post-8543093987209232909</id><published>2008-08-19T12:42:00.006+05:30</published><updated>2008-08-19T13:11:04.193+05:30</updated><title type='text'>Time Zone Drop down using C#.NET</title><content type='html'>&lt;span style=&quot;color: rgb(51, 102, 255);font-size:100%;&quot; &gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;TimeZoneInformation[] arrTzi = TimeZoneInformation.EnumZones();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;ddlTimeZone.DataSource = arrTzi;  //ddlTimeZone is id of the asp:dropdownlist&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;ddlTimeZone.DataBind();&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-only.blogspot.com/feeds/8543093987209232909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-only.blogspot.com/2008/08/time-zone-drop-down-using-cnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/8543093987209232909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/952536111273090643/posts/default/8543093987209232909'/><link rel='alternate' type='text/html' href='http://code-only.blogspot.com/2008/08/time-zone-drop-down-using-cnet.html' title='Time Zone Drop down using C#.NET'/><author><name>Prabhakaran</name><uri>http://www.blogger.com/profile/08409913993160660627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMHjlKk77_IeHOMxlRX7ybafTZtMsZXlKLMz2sVEYSp2qEtEMIyBQG3E141fpFp4uVOOKqt6657HPo136UguqR7nuYRfoKbaD0wLYr0qLMOX8RYdY7F5yJCRCPdmT_oAs/s220/Image011.jpg'/></author><thr:total>0</thr:total></entry></feed>