<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IN GOD WE TRUST &#187; terminal</title>
	<atom:link href="http://www.lassaadpage.com/blog/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lassaadpage.com/blog</link>
	<description>in web we live</description>
	<lastBuildDate>Fri, 02 Jul 2010 12:33:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wget &#8211; le téléchargement sur commande !</title>
		<link>http://www.lassaadpage.com/blog/wget-le-telechargement-sur-commande/</link>
		<comments>http://www.lassaadpage.com/blog/wget-le-telechargement-sur-commande/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 22:56:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[commandes]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[télécharger]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.lassoft.net/blog/?p=57</guid>
		<description><![CDATA[
It is a common practice to manage UNIX/Linux/BSD server remotely over ssh session. As you manage servers, you need to download the software or other files for installation or even download latest ISO of Linux distribution (or even MP3s). These days we have lots of GUI downloaders for X window such as:
    [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://figs.cyberciti.biz/3rdparty/terminal.png"><img alt="" src="http://figs.cyberciti.biz/3rdparty/terminal.png" title="Terminal bash linux"  width="128" height="128" /></a></center><br />
It is a common practice to manage UNIX/Linux/BSD server remotely over ssh session. As you manage servers, you need to download the software or other files for installation or even download latest ISO of Linux distribution (or even MP3s). These days we have lots of GUI downloaders for X window such as:</p>
<p>    * d4x: http://www.krasu.ru/soft/chuchelo<br />
    * kget: KDE download manager<br />
    * gwget2 &#8211; GNOME 2 wget front-end</p>
<p>However, when it comes to command line (shell prompt) wget the non-interactive downloader rules. It supports http, ftp, https protocols along with authentication facility, and tons of options. Here are some tips to get most out of it:</p>
<p><strong>Télécharger un fichier avec wget:</strong></p>
<p><code>$ wget http://www.cyberciti.biz/here/lsst.tar.gz<br />
$ wget ftp://ftp.freebsd.org/pub/sys.tar.gz</code></p>
<p><strong>Télécharger plusieurs fichiers avec wget</strong></p>
<p><code>$ wget http://www.cyberciti.biz/download/lsst.tar.gz ftp://ftp.freebsd.org/pub/sys.tar.gz ftp://ftp.redhat.com/pub/xyz-1rc-i386.rpm</code></p>
<p>OU</p>
<p>i) Créez une variable qui enregistre tous les liens puis utilisez BASH boucle For&#8217; pour télécharger tous les fichiers:</p>
<p><code>$ URLS=”http://www.cyberciti.biz/download/lsst.tar.gz ftp://ftp.freebsd.org/pub/sys.tar.gz ftp://ftp.redhat.com/pub/xyz-1rc-i386.rpm http://xyz.com/abc.iso"</code> </p>
<p>ii) Utilisez la boucle For comme suit:</p>
<p><code>$ for u in $URLS; do wget $u; done</code></p>
<p>iii) Cependant, vous pouvez insérer tous les liens dans un fichier texte et utiliser l&#8217;option -i dans wget pour télécharger tous les fichiers:</p>
<p>(a) Créez le fichier texte en utilisant vi</p>
<p><code>$ vi /tmp/download.txt</code></p>
<p>Ajoutez la liste des liens:</p>
<p><code>http://www.cyberciti.biz/download/lsst.tar.gz<br />
ftp://ftp.freebsd.org/pub/sys.tar.gz<br />
ftp://ftp.redhat.com/pub/xyz-1rc-i386.rpm</p>
<p>http://xyz.com/abc.iso</code></p>
<p>(b) Executez wget comme suit:</p>
<p><code>$ wget -i /tmp/download.txt</code></p>
<p>(c) Forcez wget à reprendre les téléchargement</p>
<p>You can use -c option to wget. This is useful when you want to finish up a download started by a previous instance of wget and the net connection was lost. In such case you can add -c option as follows:</p>
<p><code>$ wget -c http://www.cyberciti.biz/download/lsst.tar.gz<br />
$ wget -c -i /tmp/download.txt</code></p>
<p>Please note that all ftp/http server does not supports the download resume feature.</p>
<p><strong>Force wget to download all files in background, and log the activity in a file:</strong></p>
<p><code>$ wget -cb -o /tmp/download.log -i /tmp/download.txt</code></p>
<p>OR</p>
<p><code>$ nohup wget -c -o /tmp/download.log -i /tmp/download.txt &#038;</code><br />
nohup runs the given COMMAND (in this example wget) with hangup signals ignored, so that the command can continue running in the background after you log out.</p>
<p><strong>Limit the download speed to amount bytes/kilobytes per seconds.</strong></p>
<p>This is useful when you download a large file file, such as an ISO image. Recently one of admin started to download SuSe Linux DVD on one of production server for evaluation purpose. Soon wget started to eat up all bandwidth. No need to predict end result of such a disaster.</p>
<p><code>$ wget -c -o /tmp/susedvd.log --limit-rate=50k ftp://ftp.novell.com/pub/suse/dvd1.iso</code> </p>
<p>Use m suffix for megabytes (&#8211;limit-rate=1m). Above command will limit the retrieval rate to 50KB/s. It is also possible to specify disk quota for automatic retrievals to avoid disk DoS attack. Following command will be aborted when the quota is (100MB+) exceeded.</p>
<p><code>$ wget -cb -o /tmp/download.log -i /tmp/download.txt --quota=100m</code></p>
<p>F) Use http username/password on an HTTP server:</p>
<p><code>$ wget –http-user=foo –http-password=bar http://cyberciti.biz/vivek/csits.tar.gz</code></p>
<p>G) Download all mp3 or pdf file from remote FTP server:<br />
Generally you can use shell special character aka wildcards such as *, ?, [] to specify selection criteria for files. Same can be use with FTP servers while downloading files.</p>
<p><code>$ wget ftp://somedom.com/pub/downloads/*.pdf<br />
$ wget ftp://somedom.com/pub/downloads/*.pdf</code></p>
<p>OR<br />
<code>$ wget -g on ftp://somedom.com/pub/downloads/*.pdf</code></p>
<p>H) Use aget when you need multithreaded http download:<br />
aget fetches HTTP URLs in a manner similar to wget, but segments the retrieval into multiple parts to increase download speed. It can be many times as fast as wget in some circumstances( it is just like Flashget under MS Windows but with CLI):</p>
<p><code>$ aget -n=5 http://download.soft.com/soft1.tar.gz</code></p>
<p>Above command will download soft1.tar.gz in 5 segments.<br />
Please note that wget command is available on Linux and UNIX/BSD like oses.<br />
See man page of wget(1) for more advanced options.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lassaadpage.com/blog/wget-le-telechargement-sur-commande/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mon histoire dans le Terminal</title>
		<link>http://www.lassaadpage.com/blog/mon-histoire-dans-le-terminal/</link>
		<comments>http://www.lassaadpage.com/blog/mon-histoire-dans-le-terminal/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 13:32:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[commandes]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.lassoft.net/blog/?p=47</guid>
		<description><![CDATA[Comme j&#8217;ai remarqué que tout les linuxiens se sont amusé à mettre en ligne leurs histoires de terminal, eh bien je vais aussi publier la mienne:
    las@localhost:~/Bureau$ history &#124; awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'&#124;sort -rn&#124;head
    91 sudo
    91 cd
   [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Comme j&#8217;ai remarqué que tout les linuxiens se sont amusé à mettre en ligne leurs histoires de terminal, eh bien je vais aussi publier la mienne:</p>
<p><code>    las@localhost:~/Bureau$ history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head<br />
    91 sudo<br />
    91 cd<br />
    30 ls<br />
    22 cp<br />
    9 iwconfig<br />
    8 lsusb<br />
    6 man<br />
    4 tar<br />
    4 ps<br />
    4 mv<br />
</code></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lassaadpage.com/blog/mon-histoire-dans-le-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
