2spr, login as: lxb04


Mirosław Nosal

III MDP

Sieci komputerowe i bazy danych

12-06-2007

Laboratorium z Sieci komputerowych nr 2

1.Katalogi

login as: lxc02

Sent username "lxc02"

lxc02@192.168.11.110's password:

[lxc02@MF102 lxc02]$ pwd

/home/B/lxc02

[lxc02@MF102 lxc02]$ ls

[lxc02@MF102 lxc02]$ pwd

/home/B/lxc02

[lxc02@MF102 lxc02]$ ll

total 0

[lxc02@MF102 lxc02]$ ls-a

-bash: ls-a: command not found

[lxc02@MF102 lxc02]$ cd..

-bash: cd..: command not found

[lxc02@MF102 lxc02]$ cd/etc

-bash: cd/etc: No such file or directory

[lxc02@MF102 lxc02]$ cd /etc

[lxc02@MF102 etc]$ cd ..

[lxc02@MF102 /]$ cd

[lxc02@MF102 lxc02]$ pwd

/home/B/lxc02

[lxc02@MF102 lxc02]$ mkdir pliczek

[lxc02@MF102 lxc02]$ ls

pliczek

[lxc02@MF102 lxc02]$ mkdir 07

[lxc02@MF102 lxc02]$ ls

pliczek 07

[lxc02@MF102 lxc02]$ cd..

-bash: cd..: command not found

[lxc02@MF102 lxc02]$ cd pliczek

[lxc02@MF102 pliczek]$ pwd

/home/B/lxc02/pliczek

[lxc02@MF102 pliczek]$ mkdir rafa11

[lxc02@MF102 pliczek]$ ls

rafa11

[lxc02@MF102 pliczek]$ mkdir pliczek2

[lxc02@MF102 pliczek]$ mkdir pliczek3

[lxc02@MF102 pliczek]$ ls

rafa11 rafa12 rafa13

[lxc02@MF102 pliczek]$ pwd

/home/B/lxc02/pliczek

[lxc02@MF102 pliczek]$ rmdir pliczek1

[lxc02@MF102 pliczek]$ ls

rafa12 rafa13

[lxc02@MF102 pliczek]$ cd

[lxc02@MF102 lxc02]$ cd 07

[lxc02@MF102 07]$ pwd

/home/B/lxc02/07

[lxc02@MF102 07]$ mkdir 071

[lxc02@MF102 07]$ ls

071

[lxc02@MF102 07]$ mkdir 072

[lxc02@MF102 07]$ mkdir 073

[lxc02@MF102 07]$ ls

071 072 073

[lxc02@MF102 07]$ rmdir 071

[lxc02@MF102 07]$ ls

072 073

[lxc02@MF102 07]$ rmdir 072

[lxc02@MF102 07]$ rmdir 073

[lxc02@MF102 07]$ ls

[lxc02@MF102 07]$ cd

[lxc02@MF102 lxc02]$ cd pliczek

[lxc02@MF102 pliczek]$ mv rafa12 abc

[lxc02@MF102 pliczek]$ ls

abc rafa13

[lxc02@MF102 pliczek]$ mv rafa13 xyz

[lxc02@MF102 pliczek]$ ls

abc xyz

[lxc02@MF102 pliczek]$ mkdir 07

[lxc02@MF102 pliczek ]$ mkdir pilot.doc

[lxc02@MF102 pliczek ]$ mkdir pliczek

[lxc02@MF102 pliczek]$ rmdir abc

[lxc02@MF102 pliczek]$ rmdir xyz

[lxc02@MF102 lxc02]$ ls

07 pilot.doc pliczek

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 9 13:10 pilot.doc

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

2.Plik

[lxc02@MF102 lxc02]$ touch test.txt

[lxc02@MF102 lxc02]$ ls

07 pilot.doc pliczek test.txt

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 9 13:10 pilot.doc

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$ ls

07 pilot.doc pliczek test.txt

[lxc02@MF102 lxc02]$ cat test.txt

[lxc02@MF102 lxc02]$ ls

07 pilot.doc pliczek test.txt

[lxc02@MF102 lxc02]$ cat test1.txt

cat: test1.txt: No such file or directory

[lxc02@MF102 lxc02]$ ls

07 pilot.doc pliczek test.txt

[lxc02@MF102 lxc02]$ more pilot.doc

[lxc02@MF102 lxc02]$ ls

07 pilot.doc pliczek test.txt

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 9 13:10 pilot.doc

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$ cd pilot.doc

-bash: cd: pilot.doc: Not a directory

[lxc02@MF102 lxc02]$ cp pilot.doc noga.doc

[lxc02@MF102 lxc02]$ ls

07 noga.doc pilot.doc pliczek test.txt

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:20 noga.doc

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 9 13:10 pilot.doc

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$ mv noga.doc oko.doc

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:20 oko.doc

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 9 13:10 pilot.doc

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ rm oko.doc

[lxc02@MF102 lxc02]$ ls

07 pilot.doc pliczek test.txt

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 9 13:10 pilot.doc

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$ rm -i kasowany.plik

rm: cannot lstat `kasowany.plik': No such file or directory

[lxc02@MF102 lxc02]$ rm -i pilot.doc

rm: remove regular empty file `pilot.doc'? y

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$ ln -s test.txt pilot

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

lrwxrwxrwx 1 lxc02 lxc02 8 Mar 16 12:23 pilot -> test.txt

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$ ln test.txt narty.doc

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 2 lxc02 lxc02 0 Mar 16 12:17 narty.doc

lrwxrwxrwx 1 lxc02 lxc02 8 Mar 16 12:23 pilot -> test.txt

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 2 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$ rm pilot

[lxc02@MF102 lxc02]$ ll

total 8

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 2 lxc02 lxc02 0 Mar 16 12:17 narty.doc

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 2 lxc02 lxc02 0 Mar 16 12:17 test.txt

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ ll

total 20

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 2 lxc02 lxc02 157 Mar 16 12:29 narty.doc

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:27 nowy.plik

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 2 lxc02 lxc02 157 Mar 16 12:29 test.txt

[lxc02@MF102 lxc02]$ ls

07 narty.doc nowy.plik pliczek test.txt

[lxc02@MF102 lxc02]$ cat >test.txt

1

2

2

3

4

5

6

7

[lxc02@MF102 lxc02]$ cat test.txt

1

2

2

3

4

5

6

7

[lxc02@MF102 lxc02]$ more test.txt

1

2

2

3

4

5

6

7

[lxc02@MF102 lxc02]$ tail test.txt

1

2

2

3

4

5

6

7

[lxc02@MF102 lxc02]$ head test.txt

1

2

2

3

4

5

6

7

[lxc02@MF102 lxc02]$ head -2 test.txt

1

2

[lxc02@MF102 lxc02]$ tail -3 test.txt

5

6

7

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ vi test.txt

1

2

2

3

4

5

6

7

[lxc02@MF102 lxc02]$ ll

total 20

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 2 lxc02 lxc02 16 Mar 16 12:37 narty.doc

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:27 nowy.plik

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 2 lxc02 lxc02 16 Mar 16 12:37 test.txt

[lxc02@MF102 lxc02]$ ll

total 20

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 2 lxc02 lxc02 16 Mar 16 12:37 narty.doc

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:27 nowy.plik

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 2 lxc02 lxc02 16 Mar 16 12:37 test.txt

3.Prawa dostępu, znowu shell

[lxc02@MF102 lxc02]$ id

uid=517(lxc02) gid=517(lxc02) groups=517(lxc02)

[lxc02@MF102 lxc02]$ chmod

chmod: too few arguments

Try `chmod --help' for more information.

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ chmod --help

Usage: chmod [OPTION]... MODE[,MODE]... FILE...

or: chmod [OPTION]... OCTAL-MODE FILE...

or: chmod [OPTION]... --reference=RFILE FILE...

Change the mode of each FILE to MODE.

-c, --changes like verbose but report only when a change is made

-f, --silent, --quiet suppress most error messages

-v, --verbose output a diagnostic for every file processed

--reference=RFILE use RFILE's mode instead of MODE values

-R, --recursive change files and directories recursively

--help display this help and exit

--version output version information and exit

Each MODE is one or more of the letters ugoa, one of the symbols +-= and

one or more of the letters rwxXstugo.

Report bugs to <bug-fileutils@gnu.org>.

[lxc02@MF102 lxc02]$ chgrp uid mmm

chgrp: invalid group name `uid'

[lxc02@MF102 lxc02]$ chgrp sss mmm

chgrp: invalid group name `sss'

[lxc02@MF102 lxc02]$ touch 1a 2a 3a 4a

[lxc02@MF102 lxc02]$ mkdir Mail

[lxc02@MF102 lxc02]$ touch Mail/moje_listy

[lxc02@MF102 lxc02]$ ls

07 1a 2a 3a 4a Mail narty.doc nowy.plik pliczek test.txt

[lxc02@MF102 lxc02]$ ls ?

ls: ?: No such file or directory

[lxc02@MF102 lxc02]$ ls ??

1a 2a 3a 4a

07:

[lxc02@MF102 lxc02]$ cd

[lxc02@MF102 lxc02]$ cd

[lxc02@MF102 lxc02]$ ll mcj/?a

ls: mcj/?a: No such file or directory

[lxc02@MF102 lxc02]$ ll mcj/?a

ls: mcj/?a: No such file or directory

[lxc02@MF102 lxc02]$ rm ?c?

rm: cannot lstat `?c?': No such file or directory

[lxc02@MF102 lxc02]$ ls *a*

1a 2a 3a 4a narty.doc

Mail:

moje_listy

pliczek:

pliczek1

[lxc02@MF102 lxc02]$ ls *.txt*

test.txt

[lxc02@MF102 lxc02]$ ls *txt

test.txt

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ ls -l

total 24

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:47 1a

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:47 2a

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:47 3a

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:47 4a

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:47 Mail

-rw-rw-r-- 2 lxc02 lxc02 16 Mar 16 12:37 narty.doc

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:27 nowy.plik

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 2 lxc02 lxc02 16 Mar 16 12:37 test.txt

[lxc02@MF102 lxc02]$ ls -l > lista.txt

[lxc02@MF102 lxc02]$ cat lista.txt

total 24

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:05 07

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:47 1a

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:47 2a

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:47 3a

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:47 4a

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:55 lista.txt

drwxrwxr-x 2 lxc02 lxc02 4096 Mar 16 12:47 Mail

-rw-rw-r-- 2 lxc02 lxc02 16 Mar 16 12:37 narty.doc

-rw-rw-r-- 1 lxc02 lxc02 0 Mar 16 12:27 nowy.plik

drwxrwxr-x 3 lxc02 lxc02 4096 Mar 16 12:07 pliczek

-rw-rw-r-- 2 lxc02 lxc02 16 Mar 16 12:37 test.txt

4.Strumienie

[lxc02@MF102 lxc02]$ who -TH >lista.txt

[lxc02@MF102 lxc02]$ cat lista.txt

NAME LINE TIME COMMENT

lxc11 + pts/0 Mar 16 09:28 (mf100.prz.rzeszow.pl)

lxd08 + pts/1 Mar 16 11:58 (192.168.11.95)

lxb08 + pts/2 Mar 16 12:28 (mf95.prz.rzeszow.pl)

lxd09 + pts/3 Mar 16 11:59 (mf90.prz.rzeszow.pl)

lxd08 + pts/4 Mar 16 11:59 (192.168.11.97)

lxd06 + pts/5 Mar 16 12:00 (mf110.prz.rzeszow.pl)

lxb06 + pts/6 Mar 16 12:41 (mf102.prz.rzeszow.pl)

lxd07 + pts/7 Mar 16 12:03 (192.168.11.96)

lxb09 + pts/9 Mar 16 12:04 (mf99.prz.rzeszow.pl)

lxc02 + pts/10 Mar 16 12:43 (mf92.prz.rzeszow.pl)

lxd01 + pts/12 Mar 16 12:04 (192.168.11.94)

lxd12 + pts/13 Mar 16 12:04 (mf101.prz.rzeszow.pl)

lxd07 + pts/14 Mar 16 12:04 (192.168.11.101)

lxb11 + pts/15 Mar 16 12:08 (mf104.prz.rzeszow.pl)

lxd06 + pts/16 Mar 16 12:44 (mf110.prz.rzeszow.pl)

lxc02 + pts/18 Mar 16 10:24 (mf91.prz.rzeszow.pl)

lxd13 + pts/19 Mar 16 12:20 (192.168.11.92)

lxd02 + pts/21 Mar 16 12:12 (mf107.prz.rzeszow.pl)

lxc05 + pts/22 Mar 16 12:10 (mf93.prz.rzeszow.pl)

lxd12 + pts/23 Mar 16 12:16 (192.168.11.90)

lxd02 + pts/24 Mar 16 12:21 (mf94.prz.rzeszow.pl)

lxb01 + pts/25 Mar 16 12:45 (mf98.prz.rzeszow.pl)

lxd04 + pts/26 Mar 16 12:20 (mf109.prz.rzeszow.pl)

lxd07 + pts/28 Mar 16 12:26 (192.168.11.101)

lxc02 + pts/29 Mar 16 12:29 (mf96.prz.rzeszow.pl)

lxd05 + pts/30 Mar 16 12:36 (192.168.11.99)

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ >>lista.txt uname -a

[lxc02@MF102 lxc02]$ cat lista.txt

NAME LINE TIME COMMENT

lxc11 + pts/0 Mar 16 09:28 (mf100.prz.rzeszow.pl)

lxd08 + pts/1 Mar 16 11:58 (192.168.11.95)

lxb08 + pts/2 Mar 16 12:28 (mf95.prz.rzeszow.pl)

lxd09 + pts/3 Mar 16 11:59 (mf90.prz.rzeszow.pl)

lxd08 + pts/4 Mar 16 11:59 (192.168.11.97)

lxd06 + pts/5 Mar 16 12:00 (mf110.prz.rzeszow.pl)

lxb06 + pts/6 Mar 16 12:41 (mf102.prz.rzeszow.pl)

lxd07 + pts/7 Mar 16 12:03 (192.168.11.96)

lxb09 + pts/9 Mar 16 12:04 (mf99.prz.rzeszow.pl)

lxc02 + pts/10 Mar 16 12:43 (mf92.prz.rzeszow.pl)

lxd01 + pts/12 Mar 16 12:04 (192.168.11.94)

lxd12 + pts/13 Mar 16 12:04 (mf101.prz.rzeszow.pl)

lxd07 + pts/14 Mar 16 12:04 (192.168.11.101)

lxb11 + pts/15 Mar 16 12:08 (mf104.prz.rzeszow.pl)

lxd06 + pts/16 Mar 16 12:44 (mf110.prz.rzeszow.pl)

lxc02 + pts/18 Mar 16 10:24 (mf91.prz.rzeszow.pl)

lxd13 + pts/19 Mar 16 12:20 (192.168.11.92)

lxd02 + pts/21 Mar 16 12:12 (mf107.prz.rzeszow.pl)

lxc05 + pts/22 Mar 16 12:10 (mf93.prz.rzeszow.pl)

lxd12 + pts/23 Mar 16 12:16 (192.168.11.90)

lxd02 + pts/24 Mar 16 12:21 (mf94.prz.rzeszow.pl)

lxb01 + pts/25 Mar 16 12:45 (mf98.prz.rzeszow.pl)

lxd04 + pts/26 Mar 16 12:20 (mf109.prz.rzeszow.pl)

lxd07 + pts/28 Mar 16 12:26 (192.168.11.101)

lxc02 + pts/29 Mar 16 12:29 (mf96.prz.rzeszow.pl)

lxd05 + pts/30 Mar 16 12:36 (192.168.11.99)

Linux MF102 2.4.18-14 #1 Wed Sep 4 11:57:57 EDT 2002 i586 i586 i386 GNU/Linux

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ cat lista.txt >> test.txt

[lxc02@MF102 lxc02]$ cat test.txt

1

2

2

3

4

5

6

7

NAME LINE TIME COMMENT

lxc11 + pts/0 Mar 16 09:28 (mf100.prz.rzeszow.pl)

lxd08 + pts/1 Mar 16 11:58 (192.168.11.95)

lxb08 + pts/2 Mar 16 12:28 (mf95.prz.rzeszow.pl)

lxd09 + pts/3 Mar 16 11:59 (mf90.prz.rzeszow.pl)

lxd08 + pts/4 Mar 16 11:59 (192.168.11.97)

lxd06 + pts/5 Mar 16 12:00 (mf110.prz.rzeszow.pl)

lxb06 + pts/6 Mar 16 12:41 (mf102.prz.rzeszow.pl)

lxd07 + pts/7 Mar 16 12:03 (192.168.11.96)

lxb09 + pts/9 Mar 16 12:04 (mf99.prz.rzeszow.pl)

lxc02 + pts/10 Mar 16 12:43 (mf92.prz.rzeszow.pl)

lxd01 + pts/12 Mar 16 12:04 (192.168.11.94)

lxd12 + pts/13 Mar 16 12:04 (mf101.prz.rzeszow.pl)

lxd07 + pts/14 Mar 16 12:04 (192.168.11.101)

lxb11 + pts/15 Mar 16 12:08 (mf104.prz.rzeszow.pl)

lxd06 + pts/16 Mar 16 12:44 (mf110.prz.rzeszow.pl)

lxc02 + pts/18 Mar 16 10:24 (mf91.prz.rzeszow.pl)

lxd13 + pts/19 Mar 16 12:20 (192.168.11.92)

lxd02 + pts/21 Mar 16 12:12 (mf107.prz.rzeszow.pl)

lxc05 + pts/22 Mar 16 12:10 (mf93.prz.rzeszow.pl)

lxd12 + pts/23 Mar 16 12:16 (192.168.11.90)

lxd02 + pts/24 Mar 16 12:21 (mf94.prz.rzeszow.pl)

lxb01 + pts/25 Mar 16 12:45 (mf98.prz.rzeszow.pl)

lxd04 + pts/26 Mar 16 12:20 (mf109.prz.rzeszow.pl)

lxd07 + pts/28 Mar 16 12:26 (192.168.11.101)

lxc02 + pts/29 Mar 16 12:29 (mf96.prz.rzeszow.pl)

lxd05 + pts/30 Mar 16 12:36 (192.168.11.99)

Linux MF102 2.4.18-14 #1 Wed Sep 4 11:57:57 EDT 2002 i586 i586 i386 GNU/Linux

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ cat > nowy.txt

lll bbb[lxc02@MF102 lxc02]$ cat nowy.txt

lll bbb[lxc02@MF102 lxc02]$ cat nowy.txt

lll bbb[lxc02@MF102 lxc02]$ lll /usr/bin > iloć

-bash: lll: command not found

[lxc02@MF102 lxc02]$ wc < ilosc

-bash: ilosc: No such file or directory

[lxc02@MF102 lxc02]$lll /usr/bin > ilscć

-bash: lll: command not found

[lxc02@MF102 lxc02]$ wc < ilos ć

-bash: ilos: No such file or directory

[lxc02@MF102 lxb0cat wc < ilosc

-bash: ilosc: No such file or directory

[lxc02@MF102 lxc02]$ cat wc ilosc

cat: wc: No such file or directory

cat: ilosc: No such file or directory

[lxc02@MF102 lxc02]$ cat wc pliczek

cat: wc: No such file or directory

cat: pliczek: Is a directory

[lxc02@MF102 lxc02]$ wc pliczek

wc: pliczek: Is a directory

0 0 0 pliczek

[lxc02@MF102 lxc02]$ ll /usr/bin > pliczek

-bash: pliczek: Is a directory

[lxc02@MF102 lxc02]$ wc pliczek

wc: pliczek: Is a directory

0 0 0 pliczek

[lxc02@MF102 lxc02]$ write pliczek

write: pliczek is not logged in

[lxc02@MF102 lxc02]$ write lxb02

write: lxb02 is not logged in

[lxc02@MF102 lxc02]$ write lxd02

write: lxd02 is logged in more than once; writing to pts/24

:):):)

:):)\

s

s

s

s

s

s

s

s

s

s

s

s

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ cat >wiadomosc.txt

:P:):P:):P:):P:)[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ write lxd02 <wiadomosc.txt

[lxc02@MF102 lxc02]$ mc

[lxc02@MF102 lxc02]$ who >kto robi

[lxc02@MF102 lxc02]$ who >kto.robi

[lxc02@MF102 lxc02]$ cat kto robi

cat: robi: No such file or directory

[lxc02@MF102 lxc02]$ cat kto.robi

lxc11 pts/0 Mar 16 09:28 (mf100.prz.rzeszow.pl)

lxc02 pts/1 Mar 16 13:23 (mf92.prz.rzeszow.pl)

lxb08 pts/2 Mar 16 12:28 (mf95.prz.rzeszow.pl)

lxd06 pts/5 Mar 16 12:00 (mf110.prz.rzeszow.pl)

lxd07 pts/14 Mar 16 12:04 (192.168.11.101)

lxd02 pts/24 Mar 16 12:21 (mf94.prz.rzeszow.pl)

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ sort kto.robi

lxc02 pts/1 Mar 16 13:23 (mf92.prz.rzeszow.pl)

lxb08 pts/2 Mar 16 12:28 (mf95.prz.rzeszow.pl)

lxc11 pts/0 Mar 16 09:28 (mf100.prz.rzeszow.pl)

lxd02 pts/24 Mar 16 12:21 (mf94.prz.rzeszow.pl)

lxd06 pts/5 Mar 16 12:00 (mf110.prz.rzeszow.pl)

lxd07 pts/14 Mar 16 12:04 (192.168.11.101)

[lxc02@MF102 lxc02]$ ls -l /etc | sort +8 | more

total 1672

-rw-r--r-- 1 root root 48 Mar 7 12:34 adjtime

-rw-r--r-- 1 root root 1295 Aug 29 2002 aliases

-rw-r----- 1 root smmsp 12288 Mar 22 2004 aliases.db

drwxr-xr-x 2 root root 4096 Mar 22 2004 alternatives

-rw-r--r-- 1 root root 317 Aug 28 2002 anacrontab

-rw------- 1 root root 1 Jul 24 2002 at.deny

-rw-r--r-- 1 root root 212 Aug 27 2002 auto.master

-rw-r--r-- 1 root root 575 Aug 27 2002 auto.misc

-rw-r--r-- 1 root root 1497 Aug 29 2002 bashrc

drwxr-xr-x 2 root root 4096 Mar 23 2004 cron.d

drwxr-xr-x 2 root root 4096 Mar 22 2004 cron.daily

drwxr-xr-x 2 root root 4096 Jun 23 2002 cron.hourly

drwxr-xr-x 2 root root 4096 Mar 22 2004 cron.monthly

-rw-r--r-- 1 root root 296 Mar 7 12:33 crontab

drwxr-xr-x 2 root root 4096 Mar 22 2004 cron.weekly

-rw-r--r-- 1 root root 561 Mar 11 2002 csh.cshrc

-rw-r--r-- 1 root root 409 Mar 11 2002 csh.login

drwxr-x--- 2 root root 4096 Mar 22 2004 default

-rw-r--r-- 1 root root 2434 Sep 2 2002 DIR_COLORS

-rw-r--r-- 1 root root 2434 Sep 2 2002 DIR_COLORS.xterm

-rw-rw-r-- 1 root disk 0 Jun 23 2002 dumpdates

--More—

[lxc02@MF102 lxc02]$ ls -l /etc | sort +8 >plik.etc

[lxc02@MF102 lxc02]$ ls

07 4a kto narty.doc pli2kk test.txt wiadomo??.txt

1a adam kto.robi nowy.plik plik.etc wiadomo?sctxt

2a ilo?? lista.txt nowy.txt plikk wiadomosc.txt

3a ilosc? Mail oko pliczek wiadomo?sc.xt

[lxc02@MF102 lxc02]$ ls -l /etc | sort +8 | tee plik.etc |more

total 1672

-rw-r--r-- 1 root root 48 Mar 7 12:34 adjtime

-rw-r--r-- 1 root root 1295 Aug 29 2002 aliases

-rw-r----- 1 root smmsp 12288 Mar 22 2004 aliases.db

drwxr-xr-x 2 root root 4096 Mar 22 2004 alternatives

-rw-r--r-- 1 root root 317 Aug 28 2002 anacrontab

-rw------- 1 root root 1 Jul 24 2002 at.deny

-rw-r--r-- 1 root root 212 Aug 27 2002 auto.master

-rw-r--r-- 1 root root 575 Aug 27 2002 auto.misc

-rw-r--r-- 1 root root 1497 Aug 29 2002 bashrc

drwxr-xr-x 2 root root 4096 Mar 23 2004 cron.d

drwxr-xr-x 2 root root 4096 Mar 22 2004 cron.daily

drwxr-xr-x 2 root root 4096 Jun 23 2002 cron.hourly

drwxr-xr-x 2 root root 4096 Mar 22 2004 cron.monthly

-rw-r--r-- 1 root root 296 Mar 7 12:33 crontab

drwxr-xr-x 2 root root 4096 Mar 22 2004 cron.weekly

-rw-r--r-- 1 root root 561 Mar 11 2002 csh.cshrc

-rw-r--r-- 1 root root 409 Mar 11 2002 csh.login

drwxr-x--- 2 root root 4096 Mar 22 2004 default

-rw-r--r-- 1 root root 2434 Sep 2 2002 DIR_COLORS

-rw-r--r-- 1 root root 2434 Sep 2 2002 DIR_COLORS.xterm

-rw-rw-r-- 1 root disk 0 Jun 23 2002 dumpdates

[lxc02@MF102 lxc02]$

[lxc02@MF102 lxc02]$ ls

07 4a kto narty.doc pli2kk test.txt wiadomo??.txt

1a adam kto.robi nowy.plik plik.etc wiadomo?sctxt

2a ilo?? lista.txt nowy.txt plikk wiadomosc.txt

3a ilosc? Mail oko pliczek wiadomo?sc.xt

[lxc02@MF102 lxc02]$



Wyszukiwarka