<![CDATA[Forum Ubuntu-fr.org / Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?id=304210 Tue, 16 Feb 2010 16:35:09 +0000 FluxBB <![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3283075#p3283075
logger "hello, world"
]]>
Tue, 16 Feb 2010 16:35:09 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3283075#p3283075
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282876#p3282876 Bonjour à tous,

Je n'ai pas eu le temps de lire toutes les pages du topic, mais je pose tout de même ma question :
Y a-t-il un moyen d'écrire dans la log système (par exemple /var/log/messages) depuis un script bash (et si possible sans être root) ?

]]>
Tue, 16 Feb 2010 14:49:15 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282876#p3282876
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282610#p3282610 lol

]]>
Tue, 16 Feb 2010 12:39:41 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282610#p3282610
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282607#p3282607 De rien (même si ok c'est ridicule par rapport à certaines lignes qui sont sorti de ce thread lol)

]]>
Tue, 16 Feb 2010 12:38:07 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282607#p3282607
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282586#p3282586 Salut Faux,

Waouh ! Merci.

Je ne savais pas, comme le dis "2F", on en apprend tous les jours", et c'est le but.

Quand j'ai continué à lire la suite pour ma question, la solution y était, mais, je ne l'avais pas vu de suite.

smile

]]>
Tue, 16 Feb 2010 12:28:19 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282586#p3282586
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282578#p3282578 ah bah ça alors, merci fabux
"cd" seul... on en apprends tous les jours

]]>
Tue, 16 Feb 2010 12:24:14 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282578#p3282578
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282567#p3282567 Salut,

cd

seul te ramène également au point de départ (par défaut ton home).

cd ..

te fait remonter d'un dossier.
Tu vérifies "l'endroit" où tu te trouves par

pwd
]]>
Tue, 16 Feb 2010 12:19:07 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282567#p3282567
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282551#p3282551 Bonjour,

Merci beaucoup.

C'était vraiment tout simple.

smile

]]>
Tue, 16 Feb 2010 12:09:46 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282551#p3282551
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282547#p3282547 Bonjour

cd ~

pour retourner dans ton "home" qui correspond à /home/benjamin

ou

cd /home/benjamin

ce qui est pareil sauf si t'es feignant

]]>
Tue, 16 Feb 2010 12:06:46 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282547#p3282547
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3282534#p3282534 Bonjour,

Je suis entrain de suivre pour l'instant le cours de débutant pour linux, sur le site du zéro. wink

Actuellement, je parcours le chapitre sur "cd -> Changer de dossier".

benjamin@Benjamin:~$ cd /
benjamin@Benjamin:/$ ls -F
bin/    etc/             lib/         opt/   selinux/  usr/          windows/
boot/   home/            lost+found/  proc/  srv/      var/
cdrom@  initrd.img@      media/       root/  sys/      vmlinuz@
dev/    initrd.img.old@  mnt/         sbin/  tmp/      vmlinuz.old@
benjamin@Benjamin:/$ cd usr
benjamin@Benjamin:/usr$ ls -F
bin/  games/  include/  lib/  local/  sbin/  share/  src/  X11R6/
benjamin@Benjamin:/usr$ cd games
benjamin@Benjamin:/usr/games$ cd ../..
benjamin@Benjamin:/$

Ce que vous voyez dans le code, c'est ce qu'on nous propose de faire dans le cours, mais, comment dois-je faire si je veux retourner au départ :

benjamin@Benjamin:~$

Merci.

]]>
Tue, 16 Feb 2010 12:01:43 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3282534#p3282534
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3272908#p3272908 Bonjour Systone,

Super !

Merci cela fonctionne.

]]>
Thu, 11 Feb 2010 11:57:14 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3272908#p3272908
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3272860#p3272860 sudo fdisk -l peut-être ?

]]>
Thu, 11 Feb 2010 11:36:36 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3272860#p3272860
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3272809#p3272809 Bonjour,

Pouvez-vous me rappelez la commande que je dois taper dans un terminal, afin de connaître dans quels partitions est installé linux et Windows ?

Merci.

]]>
Thu, 11 Feb 2010 11:13:52 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3272809#p3272809
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3244414#p3244414 geenux a écrit :

Note que tu peux aussi mettre le chemin entre guillemets, dans ce cas bash considère le texte entré comme un seul argument et est envoié "en bloc" au programme

rm "Applications et ..."

Tu peux aussi utiliser les guillemets simples si tu ne veux pas que des noms de variables soient interprétés.
Par exemple

TRUC="/chemin/vers/fichier"
rm "$TRUC"  # essaye de supprimer /chemin/vers/fichier
rm '$TRUC'     # essaye de supprimer un fichier nommé $TRUC dans le répertoire courant

Salut Geenux,

Merci pour ces différentes informations.

]]>
Fri, 29 Jan 2010 07:48:52 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3244414#p3244414
<![CDATA[Réponse à : Lignes de Commandes]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3244413#p3244413 Hizoka a écrit :

c'est ce qui se passe avec l'auto completation lorsque tu utilises la touche tab pour completer ton nom de fichier.

Salut Hizoka,

Merci pour cette information.

]]>
Fri, 29 Jan 2010 07:48:17 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3244413#p3244413