- Directory : ls
- Affichage a l'ecran : more
- Sortie sur imprimante : lpr -Pnom_imprimante nom_du_fichier
- Aide : man commande what mot_clef apropos
mot_clef
- Connaitre place occupe : du
- Changer autorisations d acces chmod etendu modification droit
etendue
a all tous
o other monde
g group groupe
u user soi-meme
modification
- supprimer ce droit seulement
= donner pour l´etendue ce droit seulement
+ ajouter ce droit
droit
Fichier
r lecture
w ecriture,modification
x execution
Directory
r droit de faire un ls
w droit de creer un fichier
x droit d´acceder aux fichiers
(lecture,ecriture,execution)
B Utilisation du systeme:
- Editeur: xedit filename, vi filename (avec curseur !)
- Arreter une session temporairement: <Ctrl> Z
- La refaire partir: fg
- recherche d'un mot: grep mot filename
- extraction: <sed>
ex: sed -e '/^BEGIN/d' -e '/^END/d' << \End_of_Section
> $pfile.$part
extrait entre BEGIN et END
Fonction unix de base:
more: h=help
espace=page suivante
:n Next fichier
:p Previous fichier
q: quitter
see <od overview>
split -c taille fichier source fichier(S)
ex: cat toto |split -> cree n fichier x** de taille 1000
cat toto |split -c 100000 -> cree n fichier
x** de taille 100000
decoupe un fichier
cc -o fichier_executable fichier_source
remarque cc et f77 compilent et link en meme temps
Options:
-o filename_executable
-c compilation seulement (pour librairie)
- test existence of file or compare strings
<test> - test existence
of file or compare strings
<[]> test for ksh
<[]> test for csh
<grep> research a pattern of
string into files
<find> - list file
29/09/95 29/09/95
<xargs><joker>
- Constructs parameter lists and runs commands. 21/10/98
sample script:
IV System ****************************************************************
<at> programm
a command to be scheduled at a specific time
<cron><crontab>
program scripts to be run regularly
<cronadm><su> substitute user role
<time> - time a command
<timex> - time a command
(different format)
<cktime> - prompt and display
time
<getdate> - prompt and display
date
<date> - print current
date & time
<netstat><iostat>
<uname><lslpp> -l bos.rte.filesystem
done numéro version du sous système
<fuser><pstat><crash>
<lsof> site: www.bull.de (shareware) fileset (install -r)
<assmgmt> - manage /etc/shadow
& /etc/passwd
<pwconv> - updates /etc/shadow
from /etc/passwd
<passwd><chuser><chsec><loginlog> - log of failed
login attempts
<last> - list last login
<chgrp> - change group ownership
of a file
<newgrp> - log into a new group
<groups> - list groups of current
user
<pwck> - password group file checker
<groupadd> - create a new
group
<groupdel> - delete a group
<groupmod> - modify a group
<passwd> - /etc/passwd
<chown> - change owner and group
of a file
<useradd> - create a user
<usermod> - modify a user
<userdel> - delete a user
<profile><newgrp> - change dynamically
group id
<ln>
- link file
19/06/96 19/06/1996 18:38
<cp> - copy file
25/07/1996 10:15 12/09/1996 18:22
<du> - space used 07/08/1996
14:58 07/08/1996 14:58
<df> - space free 07/08/1996
14:58 07/08/1996 14:58
<bdf> - list file 07/08/1996
14:58 07/08/1996 14:58
<lsfs> - list file 29/09/95
lundi 27 avril 1998
<lsdev> - list file 29/09/95
lundi 27 avril 1998
<ls> - list file
29/09/95 lundi 27 avril 1998
<which> - find file in path
29/09/95 29/09/95
<whence><type>
##VI <File> manipulation ************************************************
<rm>:delete file
<chmod>:
29/09/95 30/11/1995 15:40
<acledit>: change Access Control
List of a file (extended rights)
<umask><chgrp>:
19/12/95 30/11/1995 15:40
<chown>:
19/12/95 30/11/1995 15:40
VII Netware ****************************************************************
<rlogin>- remote login (name
the machine == tcp/ip alias)
Commands to identify users
##NOTES sur le shell <ksh> <POSIX> <Korn
Shell> <AIX>
<for>
for i in *.inp; do diff $i v2/$i; done
extrait de man Korn Shell
<$><~><~+><~-> home and working directory
substitution
In addition, the shell attempts tilde substitution when the value
of a variable assignment parameter begins with a tilde ~ character.
You can also substitute arithmetic expressions by enclosing them in
( ) (parentheses). For example, the command: