Aide-mémoire des commandes Unix de M à Z

Transcription

Aide-mémoire des commandes Unix de M à Z
nohup 5
-
$ nohup ~/bin/calcul &
[1] 17300
$ exit
Ce document regroupe les principales commandes
susceptibles d’être employées régulièrement par les
utilisateurs Unix, en rappelant leurs options les plus
courantes. Pour avoir plus de détail sur une
commande particulière, on consultera le manuel Unix
(commande man).
ake
man
!
numéro
-a
-t
"
-k !
#
man 1 c
man -k socket
apropos
md5sum
mkdir
$
%&
-p
-m mode
' (
mkdir -p /var/lib/new-app/font/big
mkfifo
)*)+ , .
-m mode
' (
mkfifo -m 666 /tmp/fifo_serveur
mknod
b
c
(
mknod /dev/hda1 b 3 1
/ 0
more
mv &
,
102
less.
-f
'
for i in *.JPG; do mv $i ${i%JPG}jpg;
done
3"4
/
ice 5
d
-f a
'
(
-c
-x
'
-
asswd
$ passwd
# passwd utilisateur
patch
!
#
-pn
(
$ patch –p1 ../new_version/patch_1
pathchk 7
'
-p
if pathchk "$rep/$fic" ; then...
perl *
"
-w
ping 8
-c
-w
pr "
'
-h texte
! '$9
!
-l n
-t
$9
printf
!
printf "%05d %4.2f" $x $y
ps
'
-ax
,:;&.
-u
( ,:;&.
-e
,;< 7.
-f
( ,;< 7.
-w
ps -aux
(BSD)
ps -ef
(SysV)
pwd
uota
cp
=
renice %
!
'
rev *
rlogin
,
-f
-i
!
-r
$
rm -rf /home/usera/tmp
rmdir ;
rsh 5
<(
,
ssh.
cript 5
$a fic /
sed >
$
-e "..."
-f fic
-n
'
; ?
p
d
n
#
s
sed -ne '1,/^$/p' < mail.txt
'$9 '
sh ; :
sleep
sleep 14
,2@
.
sleep 3m
,1
.
sort 8
'
-b
-f
/
0
-r
split &
-l n
-b n
split -b 1440k gros_fichier disquette_
ssh
<(
ssh user@hostname
ssh –l user hostname /usr/bin/commande
strings
=
stty
,
<(
ssh.
!
<(
'
renice +20 14210
'
-n valeur
nl 6
'
rm 5
tac.
-a
sane
-echo
'
(
-icanon min 0 time 1
( #
su 5
*&
4*&
sum ;
ac
tail
A
(
-
#'
'
-num
!
-f
tail -f /var/log/messages
tar
'
-f fic
'
-c
-t
'
-x
'
-z
! 4
B
, .
-j
! -B
, .
-v
tar -czf save.tar.gz /home/usera/*
tar -xzf appli-1.10.tgz
tcl *
8 ,
wish.
tee
-a /
...| tee hublot_1.log | ...
telnet
<(
,
ssh.
test 8< '
;< <
[...]
if test –f $fichier ; then
!
!
!
!
!
-
'
unix2dos
unzip &
uptime 8
users 6
uudecode &
uuencode
i>
7
E$F
&
.zip
<(
.uu
-
ait
'
$ ./commande &
[1] 2927
./commande
$ wait 2927
[1]+ Done
./commande
$
wc 6 (
'
whereis C
'
which
' (
who %
!
whoami
*&
wish *
8
-(! 8H
find . -name "*.c" | xargs grep "init()"
'
'
-t MMJJhhmm
!
-r fichier
'
tr 8
(
tr ‘àâäçéèêïîôöùû’ ‘aaaceeeiioouu’|...
true C
#
while true; do ...
tty
'
name
<(
-m <
-n
'A
-r
<(
-s < (
'
-a
uncompress &
unexpand
expand.
acc 4
yes
<
<
!
=
,
Iy .
yes | rm -r /var/old-backup/
cat
zip
Expressions rationnelles
grep –e awk perl
-
Éléments communs
\
prix=25\$
!
(
=
=
(
alpha
(
digit
xdigit
alnum
(
lower
upper /
blank
(
space
(
punct
graph < print < cntrl
(
- !
!
-
-
A
Éléments des expressions rationnelles étendues
|
Y|y
+
?
B
[+-]?[[:digit:]]+
{ }
( )
-
Équivalences pour les expressions rationnelles
simples
grep sed find –regex
.Z
.
g.n.rique
J
K
^$
,
.
*
! B
[ ]
[eéêèë]
[0-9]
[[:upper:]]
(
\i
Classes de caractères
G ? gvim
args
time
touch %
,
uniq D
-u '
-d '
-c
-
\|
\+
\?
\{ \}
\( \)
|
+
?
{}
()
00GGG
(
0

Documents pareils