Difference between revisions of "Useful tools"

Line 8: Line 8:
  
 
and matlab will start with the graphical interface.
 
and matlab will start with the graphical interface.
 +
 +
 +
== How copy files from your windows computer to gertrud  (and vice-versa) ==
 +
 +
You can can install winscp.
  
 
== Quelques commandes linux utiles ==
 
== Quelques commandes linux utiles ==

Revision as of 17:09, 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.

Once the installation is completed, you can connect to gertrud with X forwarding as explained in the instructions. Then just type

$ matlab &

and matlab will start with the graphical interface.


How copy files from your windows computer to gertrud (and vice-versa)

You can can install winscp.

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. Il est préférable de ne pas mettre d'espace dans vos noms de fichiers et de répertoires.

  • 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