Linux Commandes Diverses - sebabarre/wikiDoc GitHub Wiki
- &
-
Un & à la fin d’une commande exécutera celle-ci en arrière-plan.
- >
-
Redirige la sortie dans un fichier
- >>
-
Redirige la sortie à la fin d’un fichier
- 2>
-
Redirige les erreurs
- 2>&1
-
Redirige les erreurs vers la sortie standard
- <
-
Lire depuis un fichier
- <<
-
Lire depuis le clavier progressivement
- |
-
Chaîne les commandes (la sortie de la commande 1 devient l’entrée de la commande 2)
Le fichier /etc/fstab liste les partitions qui seront montées au démarrage ou à la connexion du périphérique, avec toujours les mêmes options. Il est composé de plusieurs lignes décrivant chacune les conditions de montage de chaque système de fichier.
<file system> <mount point> <type> <options> <dump> <pass>
Important
|
Si un point de montage contient un espace, il doit être remplacé dans /etc/fstab par \040 |
hostname with no options displays the machine’s hostname
hostname –d displays the domain name the machine belongs to
hostname –f displays the fully qualified host and domain name
hostname –i displays the IP address for the current machine
netstat -nap | grep port will display process id of application which is using that port
netstat -a or netstat –all will display all connections including TCP and UDP
netstat --tcp or netstat –t will display only TCP connection
netstat --udp or netstat –u will display only UDP connection
netstat -g will display all multicast network subscribed by this host.
A handy utility to view the number of hops and response time to get to a remote system or website is traceroute. Again you need an internet connection to make use of this tool.