<?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: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-9112006644307324829</id><updated>2011-04-21T13:59:48.653-07:00</updated><category term='linux'/><category term='winrar'/><category term='Network'/><category term='PHP'/><category term='Hive Five'/><category term='ZIP'/><category term='Web server'/><category term='Advanced Packaging Tool'/><category term='Data compression'/><category term='extract'/><category term='MySQL'/><category term='Computer file'/><category term='Apache HTTP Server'/><category term='Home directory'/><category term='RAR'/><category term='File Transfer Protocol'/><category term='Secure Shell'/><category term='unrar'/><category term='Apache'/><category term='Windows'/><category term='ubuntu'/><category term='PhpMyAdmin'/><category term='Run command'/><category term='Compression'/><title type='text'>ubuntufire</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ubuntufire.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9112006644307324829/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ubuntufire.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Cris</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9112006644307324829.post-8452982654720540686</id><published>2008-10-23T21:36:00.000-07:00</published><updated>2008-10-23T21:41:43.115-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data compression'/><category scheme='http://www.blogger.com/atom/ns#' term='Computer file'/><category scheme='http://www.blogger.com/atom/ns#' term='Compression'/><category scheme='http://www.blogger.com/atom/ns#' term='RAR'/><category scheme='http://www.blogger.com/atom/ns#' term='extract'/><category scheme='http://www.blogger.com/atom/ns#' term='winrar'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='ZIP'/><category scheme='http://www.blogger.com/atom/ns#' term='unrar'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='Hive Five'/><title type='text'>how to extract rar on linux</title><content type='html'>&lt;span class="zemanta-img" style="margin: 1em; float: right; display: block;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Image:WinRAR_screenshot.png"&gt;&lt;img src="http://upload.wikimedia.org/wikipedia/en/thumb/7/73/WinRAR_screenshot.png/202px-WinRAR_screenshot.png" alt="WinRAR" style="border: medium none ; display: block;" /&gt;&lt;/a&gt;&lt;span class="zemanta-img-attribution"&gt;Image via &lt;a href="http://en.wikipedia.org/wiki/Image:WinRAR_screenshot.png"&gt;Wikipedia&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;To open &lt;a href="http://en.wikipedia.org/wiki/RAR" title="RAR" rel="wikipedia" class="zem_slink"&gt;RAR&lt;/a&gt; (those created with winrar) you will need &lt;a href="http://en.wikipedia.org/wiki/Unrar" title="Unrar" rel="wikipedia" class="zem_slink"&gt;unrar&lt;/a&gt;. There are lots of sites now providing &lt;a href="http://en.wikipedia.org/wiki/Computer_file" title="Computer file" rel="wikipedia" class="zem_slink"&gt;files&lt;/a&gt; packaged under the rar format.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;So you will need first to install unrar on your systems and therefore be able to list content and unpack the files into your &lt;a href="http://en.wikipedia.org/wiki/Hard_disk_drive" title="Hard disk drive" rel="wikipedia" class="zem_slink"&gt;hard disk&lt;/a&gt; to be able to work with them.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt; Installing :&lt;/strong&gt;&lt;/span&gt; &lt;p class="codigo"&gt;&lt;span style="font-size:85%;"&gt;#&lt;a href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool" title="Advanced Packaging Tool" rel="wikipedia" class="zem_slink"&gt;apt-get&lt;/a&gt; install unrar&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;Using the program (&lt;/span&gt;&lt;strong&gt;to read the contents of the file)&lt;/strong&gt;&lt;/span&gt; &lt;p class="system"&gt;&lt;span style="font-size:85%;"&gt;#unrar l file.rar&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;To extract the content of the file &lt;/strong&gt;&lt;/span&gt; &lt;p class="system"&gt;&lt;span style="font-size:85%;"&gt;#unrar e file.rar&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Also read &lt;a href="http://www.go2linux.org/unrar-linux-command-man-page"&gt;Unrar man page &lt;/a&gt;&lt;br /&gt;&lt;/span&gt;  &lt;div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"&gt;&lt;a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/36c55980-f14f-417b-a93f-e26cf42ab412/" title="Zemified by Zemanta"&gt;&lt;img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=36c55980-f14f-417b-a93f-e26cf42ab412" alt="Reblog this post [with Zemanta]" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9112006644307324829-8452982654720540686?l=ubuntufire.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ubuntufire.blogspot.com/feeds/8452982654720540686/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9112006644307324829&amp;postID=8452982654720540686' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9112006644307324829/posts/default/8452982654720540686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9112006644307324829/posts/default/8452982654720540686'/><link rel='alternate' type='text/html' href='http://ubuntufire.blogspot.com/2008/10/how-to-extract-rar-on-linux.html' title='how to extract rar on linux'/><author><name>Cris</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9112006644307324829.post-1853204140754238191</id><published>2008-10-22T22:46:00.000-07:00</published><updated>2008-10-22T23:09:12.564-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Advanced Packaging Tool'/><category scheme='http://www.blogger.com/atom/ns#' term='Web server'/><category scheme='http://www.blogger.com/atom/ns#' term='PhpMyAdmin'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache HTTP Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Install a LAMP server for local web development</title><content type='html'>&lt;span class="zemanta-img" style="margin: 1em; float: right; display: block;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Image:PHP-logo.svg"&gt;&lt;img src="http://upload.wikimedia.org/wikipedia/en/thumb/2/27/PHP-logo.svg/202px-PHP-logo.svg.png" alt="PHP" style="border: medium none ; display: block;" /&gt;&lt;/a&gt;&lt;span class="zemanta-img-attribution"&gt;Image via &lt;a href="http://en.wikipedia.org/wiki/Image:PHP-logo.svg"&gt;Wikipedia&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;With this litle tutorial you will know install &lt;a href="http://httpd.apache.org/" title="Apache HTTP Server" rel="homepage" class="zem_slink"&gt;Apache2&lt;/a&gt;, &lt;a href="http://php.net/" title="PHP" rel="homepage" class="zem_slink"&gt;PHP5&lt;/a&gt;, MySql5, and &lt;a href="http://www.phpmyadmin.net" title="PhpMyAdmin" rel="homepage" class="zem_slink"&gt;PHPMyAdmin&lt;/a&gt; on your Ubuntu.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Open your console and firstly, type the following command:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;a href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool" title="Advanced Packaging Tool" rel="wikipedia" class="zem_slink"&gt;apt-get&lt;/a&gt; update &lt;/span&gt;&lt;span style="font-size:78%;"&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:78%;"&gt;This will retrieve new lists of packages]&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Next:&lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:85%;"&gt;  &lt;span style="font-weight: bold; font-family: verdana;"&gt;&lt;a href="http://www.sudo.ws/" title="Sudo" rel="homepage" class="zem_slink"&gt;sudo&lt;/a&gt; apt-get install apache2 php5 mysql-&lt;a href="http://en.wikipedia.org/wiki/Web_server" title="Web server" rel="wikipedia" class="zem_slink"&gt;server&lt;/a&gt;-5.0 phpmyadmin &lt;/span&gt;&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;This will install all the necessary applications. You will be prompted to decide on a mysql root password (set one if you want), and to &lt;a href="http://en.wikipedia.org/wiki/Configure_script_%28computing%29" title="Configure script (computing)" rel="wikipedia" class="zem_slink"&gt;configure&lt;/a&gt; PHPMyAdmin (select apache2 as the server type). After this is complete, we need to perform some minor configuration to get PHPMyAdmin working. Type: &lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:85%;"&gt;  &lt;span style="font-weight: bold;font-size:85%;" &gt;sudo &lt;a href="http://www.gnome.org/projects/gedit/" title="Gedit" rel="homepage" class="zem_slink"&gt;gedit&lt;/a&gt; /etc/apache2/apache2.conf &lt;/span&gt;&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Scroll right to the bottom of the file that opens, and add: &lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:85%;"&gt;  # Enable PHPMyAdmin   Include /etc/phpmyadmin/apache.conf &lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Now save, exit, and type: &lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:85%;"&gt;  &lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/apache2 restart &lt;/span&gt;&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Everything should now be configured - go to http://localhost/&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;a href="http://127.0.0.1/" class="external free" title="http://127.0.0.1" rel="nofollow"&gt;&lt;/a&gt; for webpages, and &lt;a href="http://127.0.0.1/phpmyadmin" class="external free" title="http://127.0.0.1/phpmyadmin" rel="nofollow"&gt;localhost/phpmyadmin&lt;/a&gt; for database administration. The webroot is located in /var/www/ by default. This is not particularly useful, as we do not have &lt;a href="http://en.wikipedia.org/wiki/File_system_permissions" title="File system permissions" rel="wikipedia" class="zem_slink"&gt;write access&lt;/a&gt; to this directory. Fortunately, this is easy to solve, on console type this:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;chmod 777 /var/var&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Yes, all right, you can start jobs in your webserver! have fun!&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"&gt;&lt;a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/3036d5de-5e64-4178-9238-dc4091808879/" title="Zemified by Zemanta"&gt;&lt;img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=3036d5de-5e64-4178-9238-dc4091808879" alt="Reblog this post [with Zemanta]" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9112006644307324829-1853204140754238191?l=ubuntufire.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ubuntufire.blogspot.com/feeds/1853204140754238191/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9112006644307324829&amp;postID=1853204140754238191' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9112006644307324829/posts/default/1853204140754238191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9112006644307324829/posts/default/1853204140754238191'/><link rel='alternate' type='text/html' href='http://ubuntufire.blogspot.com/2008/10/install-lamp-server-for-local-web.html' title='Install a LAMP server for local web development'/><author><name>Cris</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9112006644307324829.post-3403640943542174091</id><published>2008-10-21T22:20:00.000-07:00</published><updated>2008-10-22T23:10:22.906-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='Run command'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Secure Shell'/><category scheme='http://www.blogger.com/atom/ns#' term='Home directory'/><category scheme='http://www.blogger.com/atom/ns#' term='File Transfer Protocol'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Linux / Ubuntu Commands</title><content type='html'>&lt;span class="zemanta-img" style="margin: 1em; float: right; display: block; font-weight: bold;font-size:85%;" &gt;&lt;a href="http://commons.wikipedia.org/wiki/Image:Unix_manual.png"&gt;&lt;img src="http://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Unix_manual.png/202px-Unix_manual.png" alt="unix man page on man; running in gnome-terminal." style="border: medium none ; display: block;" /&gt;&lt;/a&gt;&lt;span class="zemanta-img-attribution" style="margin: 1em 0pt 0pt; display: block;"&gt;Image via &lt;a href="http://commons.wikipedia.org/wiki/Image:Unix_manual.png"&gt;Wikipedia&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Command    Description&lt;br /&gt;•    apropos what is show commands pertinent to string. See also threadsafe&lt;br /&gt;•    man -t man | ps2pdf - &gt; man.pdf    make a pdf of a &lt;a href="http://en.wikipedia.org/wiki/Manual_page_%28Unix%29" title="Manual page (Unix)" rel="wikipedia" class="zem_slink"&gt;manual page&lt;/a&gt;&lt;br /&gt;which command    Show full path name of command&lt;br /&gt;time command    See how long a command takes&lt;br /&gt;•    time cat    Start stopwatch. Ctrl-d to stop. See also sw&lt;br /&gt;•    nice info    Run a low priority command (The "info" reader in this case)&lt;br /&gt;•    renice 19 -p $$    Make shell (script) low priority. Use for non interactive tasks&lt;br /&gt;dir navigation&lt;br /&gt;•    cd -    Go to previous &lt;a href="http://en.wikipedia.org/wiki/Directory_%28file_systems%29" title="Directory (file systems)" rel="wikipedia" class="zem_slink"&gt;directory&lt;/a&gt;&lt;br /&gt;•    cd    Go to $HOME directory&lt;br /&gt;(cd dir &amp;amp;&amp;amp; command)    Go to dir, execute command and return to current dir&lt;br /&gt;•    pushd .    Put current dir on stack so you can popd back to it&lt;br /&gt;file searching&lt;br /&gt;•    alias l='ls -l --color=auto'    quick dir listing&lt;br /&gt;•    ls -lrt    List files by date. See also newest and find_mm_yyyy&lt;br /&gt;•    ls /usr/bin | pr -T9 -W$COLUMNS    Print in 9 columns to width of terminal&lt;br /&gt;find -name '*.[ch]' | xargs grep -E 'expr'    Search 'expr' in this dir and below. See also findrepo&lt;br /&gt;find -type f -print0 | xargs -r0 grep -F 'example'    Search all regular files for 'example' in this dir and below&lt;br /&gt;find -maxdepth 1 -type f | xargs grep -F 'example'    Search all regular files for 'example' in this dir&lt;br /&gt;find -maxdepth 1 -type d | while read dir; do echo $dir; echo cmd2; done    Process each item with multiple commands (in while loop)&lt;br /&gt;•    find -type f ! -perm -444    Find files not readable by all (useful for &lt;a href="http://en.wikipedia.org/wiki/Website" title="Website" rel="wikipedia" class="zem_slink"&gt;web site&lt;/a&gt;)&lt;br /&gt;•    find -type d ! -perm -111    Find dirs not accessible by all (useful for web site)&lt;br /&gt;•    locate -r 'file[^/]*\&lt;a href="http://en.wikipedia.org/wiki/Text_file" title="Text file" rel="wikipedia" class="zem_slink"&gt;.txt&lt;/a&gt;'    Search cached index for names. This re is like glob *file*.txt&lt;br /&gt;•    look reference    Quickly search (sorted) dictionary for prefix&lt;br /&gt;•    grep --color reference /usr/share/dict/words    Highlight occurances of regular expression in dictionary&lt;br /&gt;archives and compression&lt;br /&gt;gpg -c file    Encrypt file&lt;br /&gt;gpg file.gpg    Decrypt file&lt;br /&gt;tar -c dir/ | bzip2 &gt; dir.tar.bz2    Make compressed archive of dir/&lt;br /&gt;bzip2 -dc dir.tar.bz2 | tar -x    Extract archive (use gzip instead of bzip2 for tar.gz files)&lt;br /&gt;tar -c dir/ | gzip | gpg -c | ssh user@remote 'dd of=dir.tar.gz.gpg'    Make encrypted archive of dir/ on remote machine&lt;br /&gt;find dir/ -name '*.txt' | tar -c --files-from=- | bzip2 &gt; dir_txt.tar.bz2    Make archive of subset of dir/ and below&lt;br /&gt;find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents    Make copy of subset of dir/ and below&lt;br /&gt;( tar -c /dir/to/copy ) | ( cd /where/to/ &amp;amp;&amp;amp; tar -x -p )    Copy (with permissions) copy/ dir to /where/to/ dir&lt;br /&gt;( cd /dir/to/copy &amp;amp;&amp;amp; tar -c . ) | ( cd /where/to/ &amp;amp;&amp;amp; tar -x -p )    Copy (with permissions) contents of copy/ dir to /where/to/&lt;br /&gt;( tar -c /dir/to/copy ) | ssh -C user@remote 'cd /where/to/ &amp;amp;&amp;amp; tar -x -p'     Copy (with permissions) copy/ dir to remote:/where/to/ dir&lt;br /&gt;dd bs=1M if=/dev/sda | gzip | ssh user@remote 'dd of=sda.gz'    Backup harddisk to remote machine&lt;br /&gt;rsync (Network efficient file copier: Use the --dry-run option for testing)&lt;br /&gt;rsync -P rsync://&lt;a class="linkification-ext" href="http://rsync.server.com/path/to/file" title="Linkification: http://rsync.server.com/path/to/file"&gt;rsync.server.com/path/to/file&lt;/a&gt; file    Only get diffs. Do multiple times for troublesome downloads&lt;br /&gt;rsync --bwlimit=1000 fromfile tofile    Locally copy with rate limit. It's like nice for &lt;a href="http://en.wikipedia.org/wiki/Input/output" title="Input/output" rel="wikipedia" class="zem_slink"&gt;I/O&lt;/a&gt;&lt;br /&gt;rsync -az -e ssh --delete ~/public_html/ remote.com:'~/public_html'    Mirror web site (using compression and encryption)&lt;br /&gt;rsync -auz -e ssh remote:/dir/ . &amp;amp;&amp;amp; rsync -auz -e ssh . remote:/dir/    Synchronize current directory with remote one&lt;br /&gt;ssh (&lt;a href="http://en.wikipedia.org/wiki/Secure_Shell" title="Secure Shell" rel="wikipedia" class="zem_slink"&gt;Secure SHell&lt;/a&gt;)&lt;br /&gt;ssh $USER@$HOST command    &lt;a href="http://en.wikipedia.org/wiki/Run_command" title="Run command" rel="wikipedia" class="zem_slink"&gt;Run command&lt;/a&gt; on $HOST as $USER (default command=shell)&lt;br /&gt;•    ssh -f -Y $USER@$HOSTNAME xeyes    Run &lt;a href="http://en.wikipedia.org/wiki/Graphical_user_interface" title="Graphical user interface" rel="wikipedia" class="zem_slink"&gt;GUI&lt;/a&gt; command on $HOSTNAME as $USER&lt;br /&gt;scp -p -r $USER@$HOST: file dir/    Copy with permissions to $USER's &lt;a href="http://en.wikipedia.org/wiki/Home_directory" title="Home directory" rel="wikipedia" class="zem_slink"&gt;home directory&lt;/a&gt; on $HOST&lt;br /&gt;ssh -g -L 8080:localhost:80 root@$HOST    Forward connections to $HOSTNAME:8080 out to $HOST:80&lt;br /&gt;ssh -R 1434:imap:143 root@$HOST    Forward connections from $HOST:1434 in to imap:143&lt;br /&gt;wget (multi purpose download tool)&lt;br /&gt;•    (cd cli &amp;amp;&amp;amp; wget -nd -pHEKk &lt;a class="linkification-ext" href="http://www.example.org/cmdline.html" title="Linkification: http://www.example.org/cmdline.html"&gt;http://www.example.org/cmdline.html&lt;/a&gt;)    Store local browsable version of a page to the current dir&lt;br /&gt;wget -c &lt;a class="linkification-ext" href="http://www.example.com/large.file" title="Linkification: http://www.example.com/large.file"&gt;http://www.example.com/large.file&lt;/a&gt;    Continue downloading a partially downloaded file&lt;br /&gt;wget -r -nd -np -l1 -A '*.jpg' &lt;a class="linkification-ext" href="http://www.example.com/dir/" title="Linkification: http://www.example.com/dir/"&gt;http://www.example.com/dir/&lt;/a&gt;    Download a set of files to the current directory&lt;br /&gt;wget &lt;a class="linkification-ext" href="ftp://remote/file" title="Linkification: ftp://remote/file"&gt;ftp://remote/file&lt;/a&gt;[1-9].iso/    &lt;a href="http://en.wikipedia.org/wiki/File_Transfer_Protocol" title="File Transfer Protocol" rel="wikipedia" class="zem_slink"&gt;FTP&lt;/a&gt; supports globbing directly&lt;br /&gt;•    wget -q -O- &lt;a class="linkification-ext" href="http://www.example.org/timeline.html" title="Linkification: http://www.example.org/timeline.html"&gt;http://www.example.org/timeline.html&lt;/a&gt; | grep 'a href' | head    Process output directly&lt;br /&gt;echo 'wget url' | at 01:00    Download url at 1AM to current dir&lt;br /&gt;wget --limit-rate=20k url    Do a low priority download (limit to 20KB/s in this case)&lt;br /&gt;wget -nv --spider --force-html -i bookmarks.html    Check links in a file&lt;br /&gt;wget --mirror &lt;a class="linkification-ext" href="http://www.example.com/" title="Linkification: http://www.example.com/"&gt;http://www.example.com/&lt;/a&gt;    Efficiently update a local copy of a site (handy from cron)&lt;br /&gt;networking (Note ifconfig, route, mii-tool, nslookup commands are obsolete)&lt;br /&gt;ethtool eth0    Show status of ethernet interface eth0&lt;br /&gt;ethtool --change eth0 autoneg off speed 100 duplex full    Manually set ethernet interface speed&lt;br /&gt;iwconfig eth1    Show status of wireless interface eth1&lt;br /&gt;iwconfig eth1 rate 1Mb/s fixed    Manually set wireless interface speed&lt;br /&gt;•    iwlist scan    List wireless networks in range&lt;br /&gt;•    ip link show    List network interfaces&lt;br /&gt;ip link set dev eth0 name wan    Rename interface eth0 to wan&lt;br /&gt;ip link set dev eth0 up    Bring interface eth0 up (or down)&lt;br /&gt;•    ip addr show    List addresses for interfaces&lt;br /&gt;ip addr add &lt;a class="linkification-ext" href="http://1.2.3.4/24" title="Linkification: http://1.2.3.4/24"&gt;1.2.3.4/24&lt;/a&gt; brd + dev eth0    Add (or del) ip and mask (255.255.255.0)&lt;br /&gt;•    ip route show    List routing table&lt;br /&gt;ip route add default via 1.2.3.254    Set default gateway to 1.2.3.254&lt;br /&gt;•    tc qdisc add dev lo root handle 1:0 netem delay 20msec    Add 20ms latency to loopback device (for testing)&lt;br /&gt;•    tc qdisc del dev lo root    Remove latency added above&lt;br /&gt;•    host pixelbeat.org    Lookup DNS ip address for name or vice versa&lt;br /&gt;•    hostname -i    Lookup local ip address (equivalent to host `hostname`)&lt;br /&gt;•    whois pixelbeat.org    Lookup whois info for hostname or ip address&lt;br /&gt;•    netstat -tupl    List internet services on a system&lt;br /&gt;•    netstat -tup    List active connections to/from system&lt;br /&gt;windows networking (Note samba is the package that provides all this windows specific networking support)&lt;br /&gt;•    smbtree    Find windows machines. See also findsmb&lt;br /&gt;nmblookup -A 1.2.3.4    Find the windows (netbios) name associated with ip address&lt;br /&gt;smbclient -L windows_box    List shares on windows machine or samba server&lt;br /&gt;mount -t smbfs -o fmask=666,guest //windows_box/share /mnt/share    Mount a windows share&lt;br /&gt;echo 'message' | smbclient -M windows_box    Send popup to windows machine (off by default in XP sp2)&lt;br /&gt;text manipulation (Note sed uses stdin and stdout. Newer versions support inplace editing with the -i option)&lt;br /&gt;sed 's/string1/string2/g'    Replace string1 with string2&lt;br /&gt;sed 's/\(.*\)1/\12/g'    Modify anystring1 to anystring2&lt;br /&gt;sed '/ *#/d; /^ *$/d'    Remove comments and blank lines&lt;br /&gt;sed ':a; /\\$/N; s/\\\n//; ta'    Concatenate lines with trailing \&lt;br /&gt;sed 's/[ \t]*$//'    Remove trailing spaces from lines&lt;br /&gt;sed 's/\([\\`\\"$\\\\]\)/\\\1/g'    Escape shell metacharacters active within double quotes&lt;br /&gt;•    seq 10 | sed "s/^/      /; s/ *\(.\{7,\}\)/\1/"    Right align numbers&lt;br /&gt;sed -n '1000p;1000q'    Print 1000th line&lt;br /&gt;sed -n '10,20p;20q'    Print lines 10 to 20&lt;br /&gt;sed -i 42d ~/.ssh/known_hosts    Delete a particular line&lt;br /&gt;sort -t. -k1,1n -k2,2n -k3,3n -k4,4n    Sort IPV4 ip addresses&lt;br /&gt;•    echo 'Test' | tr '[:lower:]' '[:upper:]'    Case conversion&lt;br /&gt;•    tr -dc '[:print:]' &lt; /dev/urandom    Filter non printable characters •    history | wc -l    Count lines set operations (Note you can export LANG=C for speed. Also these assume no duplicate lines within a file)      sort file1 file2 | uniq    Union of unsorted files      sort file1 file2 | uniq -d    Intersection of unsorted files      sort file1 file1 file2 | uniq -u    Difference of unsorted files      sort file1 file2 | uniq -u    Symmetric Difference of unsorted files      join -a1 -a2 file1 file2    Union of sorted files      join file1 file2    Intersection of sorted files      join -v2 file1 file2    Difference of sorted files      join -v1 -v2 file1 file2    Symmetric Difference of sorted files math •    echo '(1 + sqrt(5))/2' | bc -l    Quick math (Calculate φ). See also bc •    echo 'pad=20; min=64; (100*10^6)/((pad+min)*8)' | bc    More complex (int) e.g. This shows max FastE packet rate •    echo 'pad=20; min=64; print (100E6)/((pad+min)*8)' | python    Python handles scientific notation •    echo 'pad=20; plot [64:1518] (100*10**6)/((pad+x)*8)' | gnuplot -persist    Plot FastE packet rate vs packet size •    echo 'obase=16; ibase=10; 64206' | bc    Base conversion (decimal to hexadecimal) •    echo $((0x2dec))    Base conversion (hex to dec) ((shell arithmetic expansion)) •    units -t '100m/9.69s' 'miles/hour'    Unit conversion (metric to imperial) •    units -t '500GB' 'GiB'    Unit conversion (SI to IEC prefixes) •    units -t '1 googol'    Definition lookup •    seq 100 | (tr '\n' +; echo 0) | bc    Add a column of numbers. See also add and funcpy calendar •    cal -3    Display a calendar •    cal 9 1752    Display a calendar for a particular month year •    date -d fri    What date is it this friday. See also day •    [ $(date -d "tomorrow" +%d) = "01" ] || exit    exit a script unless it's the last day of the month •    date --date='25 Dec' +%A    What day does xmas fall on, this year •    date --date='@2147483647'    Convert seconds since the epoch (1970-01-01 UTC) to date •    TZ=':America/Los_Angeles' date    What time is it on West coast of US (use tzselect to find TZ)      echo "mail -s 'get the train' &lt;a class="linkification-ext" href="mailto:P@example.com" title="Linkification: mailto:P@example.com"&gt;P@example.com&lt;/a&gt; &lt; /dev/null" | at 17:45    Email reminder •    echo "DISPLAY=$DISPLAY xmessage cooker" | at "NOW + 30 minutes"    Popup reminder locales •    printf "%'d\n" 1234    Print number with thousands grouping appropriate to locale •    BLOCK_SIZE=\'1 ls -l    get ls to do thousands grouping appropriate to locale •    echo "I live in `locale territory`"    Extract info from locale database •    LANG=en_IE.utf8 locale int_prefix    Lookup locale info for specific country. See also ccodes •    locale | cut -d= -f1 | xargs locale -kc | less    List fields available in locale database recode (Obsoletes iconv, dos2unix, unix2dos) •    recode -l | less    Show available conversions (aliases on each line)      recode windows-1252.. file_to_change.txt    Windows "ansi" to local charset (auto does CRLF conversion)      recode utf-8/CRLF.. file_to_change.txt    Windows utf8 to local charset      recode iso-8859-15..utf8 file_to_change.txt    Latin9 (western europe) to utf8      recode ../b64 &lt;&gt; file.b64    Base64 encode&lt;br /&gt;recode /qp.. &lt;&gt; file.qp    Quoted printable decode&lt;br /&gt;recode ..HTML &lt;&gt; file.html    Text to HTML&lt;br /&gt;•    recode -lf windows-1252 | grep euro    Lookup table of characters&lt;br /&gt;•    echo -n 0x80 | recode latin-9/x1..dump    Show what a code represents in latin-9 charmap&lt;br /&gt;•    echo -n 0x20AC | recode ucs-2/x2..latin-9/x    Show latin-9 encoding&lt;br /&gt;•    echo -n 0x20AC | recode ucs-2/x2..utf-8/x    Show utf-8 encoding&lt;br /&gt;CDs&lt;br /&gt;gzip &lt; /dev/cdrom &gt; cdrom.iso.gz    Save copy of data cdrom&lt;br /&gt;mkisofs -V LABEL -r dir | gzip &gt; cdrom.iso.gz    Create cdrom image from contents of dir&lt;br /&gt;mount -o loop cdrom.iso /mnt/dir    Mount the cdrom image at /mnt/dir (read only)&lt;br /&gt;cdrecord -v dev=/dev/cdrom blank=fast    Clear a CDRW&lt;br /&gt;gzip -dc cdrom.iso.gz | cdrecord -v dev=/dev/cdrom -    Burn cdrom image (use dev=ATAPI -scanbus to confirm dev)&lt;br /&gt;cdparanoia -B    Rip audio tracks from CD to wav files in current dir&lt;br /&gt;cdrecord -v dev=/dev/cdrom -audio *.wav    Make audio CD from all wavs in current dir (see also cdrdao)&lt;br /&gt;oggenc --tracknum='track' track.cdda.wav -o 'track.ogg'    Make ogg file from wav file&lt;br /&gt;disk space (See also FSlint)&lt;br /&gt;•    ls -lSr    Show files by size, biggest last&lt;br /&gt;•    du -s * | sort -k1,1rn | head    Show top disk users in current dir. See also dutop&lt;br /&gt;•    df -h    Show free space on mounted filesystems&lt;br /&gt;•    df -i    Show free inodes on mounted filesystems&lt;br /&gt;•    fdisk -l    Show disks partitions sizes and types (run as root)&lt;br /&gt;•    rpm -q -a --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n    List all packages by installed size (Bytes) on rpm distros&lt;br /&gt;•    dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n    List all packages by installed size (KBytes) on deb distros&lt;br /&gt;•    dd bs=1 seek=2TB if=/dev/null of=ext3.test    Create a large test file (taking no space). See also truncate&lt;br /&gt;monitoring/debugging&lt;br /&gt;•    tail -f /var/log/messages    Monitor messages in a log file&lt;br /&gt;•    strace -c ls &gt;/dev/null    Summarise/profile system calls made by command&lt;br /&gt;•    strace -f -e open ls &gt;/dev/null    List system calls made by command&lt;br /&gt;•    ltrace -f -e getenv ls &gt;/dev/null    List library calls made by command&lt;br /&gt;•    lsof -p $$    List paths that process id has open&lt;br /&gt;•    lsof ~    List processes that have specified path open&lt;br /&gt;•    tcpdump not port 22    Show network traffic except ssh. See also tcpdump_not_me&lt;br /&gt;•    ps -e -o pid,args --forest    List processes in a hierarchy&lt;br /&gt;•    ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed '/^ 0.0 /d'    List processes by % cpu usage&lt;br /&gt;•    ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS    List processes by mem usage. See also ps_mem.py&lt;br /&gt;•    ps -C firefox-bin -L -o pid,tid,pcpu,state    List all threads for a particular process&lt;br /&gt;•    ps -p 1,2    List info for particular process IDs&lt;br /&gt;•    last reboot    Show system reboot history&lt;br /&gt;•    free -m    Show amount of (remaining) RAM (-m displays in MB)&lt;br /&gt;•    watch -n.1 'cat /proc/interrupts'    Watch changeable data continuously&lt;br /&gt;system information (see also sysinfo) ('#' means root access is required)&lt;br /&gt;•    uname -a    Show kernel version and system architecture&lt;br /&gt;•    head -n1 /etc/issue    Show name and version of distribution&lt;br /&gt;•    cat /proc/partitions    Show all partitions registered on the system&lt;br /&gt;•    grep MemTotal /proc/meminfo    Show RAM total seen by the system&lt;br /&gt;•    grep "model name" /proc/cpuinfo    Show CPU(s) info&lt;br /&gt;•    lspci -tv    Show PCI info&lt;br /&gt;•    lsusb -tv    Show USB info&lt;br /&gt;•    mount | column -t    List mounted filesystems on the system (and align output)&lt;br /&gt;#    dmidecode -q | less    Display SMBIOS/DMI information&lt;br /&gt;#    smartctl -A /dev/sda | grep Power_On_Hours    How long has this disk (system) been powered on in total&lt;br /&gt;#    hdparm -i /dev/sda    Show info about disk sda&lt;br /&gt;#    hdparm -tT /dev/sda    Do a read speed test on disk sda&lt;br /&gt;#    badblocks -s /dev/sda    Test for unreadable blocks on disk sda&lt;br /&gt;interactive (see also linux keyboard shortcuts)&lt;br /&gt;•    readline    Line editor used by bash, python, bc, gnuplot, ...&lt;br /&gt;•    screen    Virtual terminals with detach capability, ...&lt;br /&gt;•    mc    Powerful file manager that can browse rpm, tar, ftp, ssh, ...&lt;br /&gt;•    gnuplot    Interactive/scriptable graphing&lt;br /&gt;•    links    Web browser&lt;br /&gt;•    xdg-open &lt;a class="linkification-ext" href="http://www.example.org/" title="Linkification: http://www.example.org/"&gt;http://www.example.org/&lt;/a&gt;    open a file or url with the registered desktop application&lt;br /&gt;miscellaneous&lt;br /&gt;•    alias hd='od -Ax -tx1z -v'    Handy hexdump. (usage e.g.: • hd /proc/self/cmdline | less)&lt;br /&gt;•    alias realpath='readlink -f'    Canonicalize path. (usage e.g.: • realpath ~/../$USER)&lt;br /&gt;•    set | grep $USER    Search current environment&lt;br /&gt;touch -c -t 0304050607 file    Set file timestamp (YYMMDDhhmm)&lt;br /&gt;•    python -m SimpleHTTPServer    Serve current directory tree at &lt;a class="linkification-ext" href="http://$hostname:8000/" title="Linkification: http://$HOSTNAME:8000/"&gt;http://$HOSTNAME:8000/&lt;/a&gt;&lt;/span&gt;        &lt;div style="margin-top: 10px; height: 15px; font-weight: bold;" class="zemanta-pixie"&gt;&lt;span style="font-size:85%;"&gt;&lt;a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/efd1aaad-16ac-4692-817c-b8ab5fe4373c/" title="Zemified by Zemanta"&gt;&lt;img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=efd1aaad-16ac-4692-817c-b8ab5fe4373c" alt="Reblog this post [with Zemanta]" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9112006644307324829-3403640943542174091?l=ubuntufire.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ubuntufire.blogspot.com/feeds/3403640943542174091/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9112006644307324829&amp;postID=3403640943542174091' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9112006644307324829/posts/default/3403640943542174091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9112006644307324829/posts/default/3403640943542174091'/><link rel='alternate' type='text/html' href='http://ubuntufire.blogspot.com/2008/10/linux-ubuntu-commands.html' title='Linux / Ubuntu Commands'/><author><name>Cris</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
