UNIX - Comandi base: OUTPUT Tipico

Home
UNIX
Linux
 Foto
LINuKS
vi-muman
Sei qui:  Altro   > UNIX    >  Comandi base   >   Comandi base: OUTPUT tipico

f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

Output tipico

La tabella seguente vuole fornire qualche esempio dell'output  (cioe' del risultato) tipico dei principali comandi UNIX. Naturalmente l'output dipendera' dalle condizioni del sistema e dal dialetto UNIX utilizzato,  ma sara' comunque simile a quello riportato sotto.
 

Comando
Output tipico
ls
 
 
 
 

ls -l

max@localhost:~/scuola/as1999.2000 > ls
CertAuth                  Quinte                    Terza
hoepli.lyx                test.0001.lyx             test.005.lyx
hoepli.tex                test.002.lyx              test.005.tex
pinguin.gif               test.002.tex              unix-comandi.html

max@localhost:~/scuola/as1999.2000 > ls -l
total 152
drwx------   2 max      users        2048 Mar 20 23:49 CertAuth
drwx------   2 max      users        1024 Apr 10 16:17 Quinte
drwx------   3 max      users        1024 Mar 11 02:30 Terza
-rw-r--r--   1 max      users        2169 Jan 17 17:46 hoepli.lyx
-rw-r--r--   1 max      users        9787 Feb 16 20:01 pinguin.gif
-rw-r--r--   1 max      users        1319 Dec  2 14:31 test.0001.lyx
-rw-r--r--   1 max      users        1445 Dec  2 14:56 test.002.lyx
-rw-r--r--   1 max      users        1411 Dec  2 14:57 test.002.tex
-rw-r--r--   1 max      users        9634 Dec  2 18:36 test.005.lyx
-rw-r--r--   1 max      users        5384 Dec  3 18:46 test.005.tex
-rw-r--r--   1 max      users        8303 Apr 12 23:34 unix-comandi.html

pwd max@localhost:~/scuola/as1999.2000 > pwd
/home/max/scuola/as1999.2000
df max@localhost:~/scuola/as1999.2000 > df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda3             264366   37722   212989     15%   /
/dev/hda7            1321237  974273   278690     78%   /var
/dev/hda8             264368    1073   249642      0%   /tmp
/dev/hdb2            5560730 3377562  1895203     64%   /usr
/dev/hda6            1988924  641882  1244228     34%   /home
/dev/hda1               7496     700     6396     10%   /boot
/dev/hda5            3973832 1008186  2760016     27%   /usr/lib
ps

ps ef

max@localhost:~/scuola/as1999.2000 > ps
  PID TTY STAT TIME COMMAND
  239   1 S    0:00 -bash
  251   1 S    0:00 -bash
  252   1 S    0:00 sh /usr/bin/startx
  260   1 S    0:00 xinit /home/max/.xinitrc --
  264   1 S    0:04 kwm
  988  p4 R    0:00 ps

max@localhost:~/jobs/scuola/as1999.2000 > ps ef
  PID TTY STAT TIME COMMAND
  239   1 S    0:00 -bash TERM=linux HZ=100 HOME=/home/max SHELL=/bin/bash
  251   1 S    0:00  \_ -bash TERM=linux HZ=100 HOME=/home/max
  252   1 S    0:00      \_ sh /usr/bin/startx PWD=/home/max PAGER=less
  260   1 S    0:00          \_ xinit /home/max/.xinitrc -- PWD=/home/max
  264   1 S    0:04              \_ kwm PWD=/home/max PAGER=less HZ=100
...

kill <PID>

kill -15 <PID>

kill -9 <PID>

max@localhost:~/scuola/as1999.2000 >kill -15 1014 
Terminated

max@localhost:~/scuola/as1999.2000 >kill -9 1032
Killed

top

top -s

12:15am  up  3:19,  4 users,  load average: 0.14, 0.06, 0.01
59 processes: 58 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  0.7% user,  0.5% system,  0.0% nice, 98.9% idle
Mem:  127496K av, 125056K used,   2440K free,  69452K shrd,  20424K buff
Swap: 522992K av,    264K used, 522728K free                 48880K cached

  PID  PPID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
 1047   535 max       10   0   768  768   600 R       0  0.7  0.6   0:00 top
  534   278 max        2   0  4048 4048  2876 S       0  0.3  3.1   0:01 kvt
  261   260 root      12   0 20520  20M  1864 S       0  0.1 16.0   2:12 X
    1     0 root       0   0   176  176   144 S       0  0.0  0.1   0:03 init
    2     1 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 kflushd
    3     1 root     -12 -12     0    0     0 SW<     0  0.0  0.0   0:00 kswapd
    4     1 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 md_thread
    5     1 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 md_thread
    6     1 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 nfsiod
    7     1 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 nfsiod
    8     1 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 nfsiod
    9     1 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 nfsiod
  239     1 max        0   0  1248 1248  1132 S       0  0.0  0.9   0:00 bash

gimp & max@localhost:~/scuola/as1999.2000 > gimp &
[1] 1049
max@localhost:~/scuola/as1999.2000 >
man ls LS(1)                                                       LS(1)
 

NAME
       ls, dir, vdir - list contents of directories

SYNOPSIS
       ls  [-abcdfgiklmnpqrstuxABCFGLNQRSUX1] [-w cols] [-T cols]
       [-I pattern] [--all]  [--escape]  [--directory]  [--inode]
       [--kilobytes]  [--numeric-uid-gid]  [--no-group]  [--hide-
       control-chars] [--reverse] [--size] [--width=cols] [--tab­
       size=cols]  [--almost-all] [--ignore-backups] [--classify]
       [--file-type] [--full-time] [--ignore=pattern] [--derefer­
       ence]     [--literal]     [--quote-name]     [--recursive]
       [--sort={none,time,size,extension}]   [--format={long,ver­
       bose,commas,across,vertical,single-column}]
       [--time={atime,access,use,ctime,status}] [--help]  [--ver­
       sion]  [--color[={yes,no,tty}]]  [--colour[={yes,no,tty}]]
       [name...]

DESCRIPTION
       This documentation is no longer being maintained  and  may
       be inaccurate or incomplete.  The Texinfo documentation is
       now the authoritative source.
........

torna su ^

Copyright ©1999-2004 Navigare


Home
UNIX
Linux
 Foto
LINuKS
vi-muman