Difference between revisions of "Useful tools"

Line 1: Line 1:
 
 
== How to use matlab from home ==
 
== How to use matlab from home ==
  
 
If you have windows you can install [http://www.chiark.greenend.org.uk/~sgtatham/putty/ putty] and [http://x.cygwin.com/ cygwin], and follow [http://www.cs.dartmouth.edu/~bmeister/putty-cygwin-tutorial.pdf these instructions]. The only difference is that you need to connect with your own login (that your superviser gave you) and the host is gertrud.unil.ch (and not the dartmouth thing). Also in page 13 of the manual, it tells you to modifiy a file in C:\cygwin\usr\X11R6\bin. In our case, the file to edit was actually in C:\cygwin\bin. The installation is quite heavy and takes about 40 minutes, so do it when you have some time.
 
If you have windows you can install [http://www.chiark.greenend.org.uk/~sgtatham/putty/ putty] and [http://x.cygwin.com/ cygwin], and follow [http://www.cs.dartmouth.edu/~bmeister/putty-cygwin-tutorial.pdf these instructions]. The only difference is that you need to connect with your own login (that your superviser gave you) and the host is gertrud.unil.ch (and not the dartmouth thing). Also in page 13 of the manual, it tells you to modifiy a file in C:\cygwin\usr\X11R6\bin. In our case, the file to edit was actually in C:\cygwin\bin. The installation is quite heavy and takes about 40 minutes, so do it when you have some time.
 +
 +
== Quelques commandes linux utiles ==
 +
 +
 +
Sous linux comme sous windows, les fichiers sont organisée selon une hierarchie. Le sommet (ou la racine) de cette hierarchie est le fichier ~username
 +
où username et votre username.
 +
 +
* changer le mot de passe:
 +
$ passwd
 +
 +
* créer un répertoire:
 +
$ mkdir nom_rep 
 +
 +
où "nom_rep" est le nom du répertoire
 +
 +
* effacer un ficher:
 +
$ rm nom_fichier
 +
 +
où "nom_fichier" est le nom du fichier à effacer
 +
 +
* renommer un ficher:
 +
$ mv ancien_nom nouveau_nom
 +
 +
où "ancien_nom" est le nom du fichier à renommer "nouveau_nom"
 +
et le nom à donner
 +
 +
* lister le contenu du répertoire courant:
 +
$ ls
 +
 +
* lister le contenu d'un sous-répertoire du répertoire courant:
 +
$ ls sous_rep
 +
 +
où "sous-rep" est le nom du sous-répertoire
 +
 +
* se déplacer dans un sous-répertoire du répertoire courant:
 +
$ cd sous_rep
 +
 +
où "sous-rep" est le nom su sous-répertoire
 +
 +
* se déplacer dans un sur-répertoire du répertoire courant (monter dans la hiérarchie des répertoire):
 +
$ cd ..
 +
 +
* aller au sommet de sa hierarchie
 +
$ cd
 +
 +
* voir dans quel répertoire on se trouve:
 +
 +
$ pwd

Revision as of 16:52, 6 March 2009

How to use matlab from home

If you have windows you can install putty and cygwin, and follow these instructions. The only difference is that you need to connect with your own login (that your superviser gave you) and the host is gertrud.unil.ch (and not the dartmouth thing). Also in page 13 of the manual, it tells you to modifiy a file in C:\cygwin\usr\X11R6\bin. In our case, the file to edit was actually in C:\cygwin\bin. The installation is quite heavy and takes about 40 minutes, so do it when you have some time.

Quelques commandes linux utiles

Sous linux comme sous windows, les fichiers sont organisée selon une hierarchie. Le sommet (ou la racine) de cette hierarchie est le fichier ~username où username et votre username.

  • changer le mot de passe:

$ passwd

  • créer un répertoire:

$ mkdir nom_rep

où "nom_rep" est le nom du répertoire

  • effacer un ficher:

$ rm nom_fichier

où "nom_fichier" est le nom du fichier à effacer

  • renommer un ficher:

$ mv ancien_nom nouveau_nom

où "ancien_nom" est le nom du fichier à renommer "nouveau_nom" et le nom à donner

  • lister le contenu du répertoire courant:

$ ls

  • lister le contenu d'un sous-répertoire du répertoire courant:

$ ls sous_rep

où "sous-rep" est le nom du sous-répertoire

  • se déplacer dans un sous-répertoire du répertoire courant:

$ cd sous_rep

où "sous-rep" est le nom su sous-répertoire

  • se déplacer dans un sur-répertoire du répertoire courant (monter dans la hiérarchie des répertoire):

$ cd ..

  • aller au sommet de sa hierarchie

$ cd

  • voir dans quel répertoire on se trouve:

$ pwd