/l3/users/22-06-2009/nt-ladm/debian4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 |
|
#ls -la
итого 1 drwxr-xr-x 2 root root 120 2009-07-08 20:25 . drwxrwxrwt 16 root root 1120 2009-07-08 20:23 .. -r-x------ 1 root root 0 2009-07-08 20:25 a -r-xr-xr-x 1 root root 0 2009-07-08 20:25 b -rw---x--x 1 root root 0 2009-07-08 20:25 c |
#cd noexit
|
#ls
a b c |
#cd ..
|
#ls -la no*
-rw-r--r-- 1 root root 0 2009-07-06 21:31 nofile noexit: итого 1 drwxr-xr-x 2 root root 120 2009-07-08 20:25 . drwxrwxrwt 16 root root 1120 2009-07-08 20:27 .. -r-x------ 1 root root 0 2009-07-08 20:25 a -r-xr-xr-x 1 root root 0 2009-07-08 20:25 b -rw---x--x 1 root root 0 2009-07-08 20:25 c |
#ls -la
итого 9339 drwxrwxrwt 16 root root 1120 2009-07-08 20:27 . drwxr-xr-x 23 root root 544 2009-06-26 20:20 .. drwxr-xr-x 3 root root 72 2009-06-26 18:54 1 -rw-r--r-- 1 root root 50 2009-07-03 21:20 123 -rw-r--r-- 1 root root 0 2009-07-03 18:20 18:20:41 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2007 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2008 drwxr-xr-x 14 root root 336 2009-07-03 18:20 2009 -rw-r--r-- 1 root root 0 2009-07-03 18:20 3 ... drwx------ 2 user user 464 2009-07-01 21:05 orbit-user -rwxr-xr-x 1 root root 46 2009-07-06 19:42 params -rw-r--r-- 1 root root 9388 2009-07-01 20:13 passwd -rwxr-xr-x 1 root root 138 2009-07-06 20:44 select1 -rwxr-xr-x 1 root root 242 2009-07-06 20:17 ssh_port_forwarding drwx------ 2 user user 80 2009-07-08 18:12 ssh-TckxY24612 -rw-r--r-- 1 root root 103478 2009-07-06 19:32 vars -rwxr-xr-x 1 root root 70 2009-07-06 20:54 while1 -r--r--r-- 1 root root 11 2009-07-08 15:48 .X0-lock drwxrwxrwt 2 root root 72 2009-07-08 15:48 .X11-unix |
#man ls
|
#mkdir /tmp/myAlex
[root@debian4:tmp]# |
#chmod 1666 !$
chmod 1666 /tmp/myAlex |
#ls -la
итого 9339 drwxrwxrwt 17 root root 1144 2009-07-08 20:31 . drwxr-xr-x 23 root root 544 2009-06-26 20:20 .. drwxr-xr-x 3 root root 72 2009-06-26 18:54 1 -rw-r--r-- 1 root root 50 2009-07-03 21:20 123 -rw-r--r-- 1 root root 0 2009-07-03 18:20 18:20:41 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2007 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2008 drwxr-xr-x 14 root root 336 2009-07-03 18:20 2009 -rw-r--r-- 1 root root 0 2009-07-03 18:20 3 ... drwx------ 2 user user 464 2009-07-01 21:05 orbit-user -rwxr-xr-x 1 root root 46 2009-07-06 19:42 params -rw-r--r-- 1 root root 9388 2009-07-01 20:13 passwd -rwxr-xr-x 1 root root 138 2009-07-06 20:44 select1 -rwxr-xr-x 1 root root 242 2009-07-06 20:17 ssh_port_forwarding drwx------ 2 user user 80 2009-07-08 18:12 ssh-TckxY24612 -rw-r--r-- 1 root root 103478 2009-07-06 19:32 vars -rwxr-xr-x 1 root root 70 2009-07-06 20:54 while1 -r--r--r-- 1 root root 11 2009-07-08 15:48 .X0-lock drwxrwxrwt 2 root root 72 2009-07-08 15:48 .X11-unix |
#ls -la /tmp/myAlex
итого 1 drw-rw-rwT 2 root root 48 2009-07-08 20:31 . drwxrwxrwt 17 root root 1144 2009-07-08 20:33 .. |
#touch /tmp/myAlex/new[A-D]
|
#ls -la /tmp/myAlex
итого 1 drw-rw-rwT 2 root root 72 2009-07-08 20:33 . drwxrwxrwt 17 root root 1144 2009-07-08 20:33 .. -rw-r--r-- 1 root root 0 2009-07-08 20:33 new[A-D] |
#rm
|
#ls -la /tmp/myAlex
итого 1 drw-rw-rwT 2 root root 48 2009-07-08 20:34 . drwxrwxrwt 17 root root 1144 2009-07-08 20:33 .. |
#rm /tmp/myAlex/new{
![]() rm: невозможно удалить `/tmp/myAlex/new{A-D}': No such file or directory |
#echo
/tmp/myAlex/new{A-D} |
#echo /tmp/myAlex/new\{A-D\
/tmp/myAlex/new{A-D} |
#touch
|
#ls -la /tmp/myAlex
итого 1 drw-rw-rwT 2 root root 72 2009-07-08 20:35 . drwxrwxrwt 17 root root 1144 2009-07-08 20:33 .. -rw-r--r-- 1 root root 0 2009-07-08 20:35 new{A-D} |
#rm
|
#touch /tmp/myAlex/newA
|
#ls
1 2008 aaa find Fri hello LAB-4 nofile passwd vars 123 2009 case1 for1 fstab hello-BACK myAlex orbit-clint select1 while1 18:20:41 3 case2 for2 gconfd-clint Jul names orbit-user ssh_port_forwarding 2007 345 EEST for3 gconfd-user LAB-2 noexit params ssh-TckxY24612 |
#ls -la
итого 9339 drwxrwxrwt 17 root root 1144 2009-07-08 20:38 . drwxr-xr-x 23 root root 544 2009-06-26 20:20 .. drwxr-xr-x 3 root root 72 2009-06-26 18:54 1 -rw-r--r-- 1 root root 50 2009-07-03 21:20 123 -rw-r--r-- 1 root root 0 2009-07-03 18:20 18:20:41 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2007 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2008 drwxr-xr-x 14 root root 336 2009-07-03 18:20 2009 -rw-r--r-- 1 root root 0 2009-07-03 18:20 3 ... drwx------ 2 user user 464 2009-07-01 21:05 orbit-user -rwxr-xr-x 1 root root 46 2009-07-06 19:42 params -rw-r--r-- 1 root root 9388 2009-07-01 20:13 passwd -rwxr-xr-x 1 root root 138 2009-07-06 20:44 select1 -rwxr-xr-x 1 root root 242 2009-07-06 20:17 ssh_port_forwarding drwx------ 2 user user 80 2009-07-08 18:12 ssh-TckxY24612 -rw-r--r-- 1 root root 103478 2009-07-06 19:32 vars -rwxr-xr-x 1 root root 70 2009-07-06 20:54 while1 -r--r--r-- 1 root root 11 2009-07-08 15:48 .X0-lock drwxrwxrwt 2 root root 72 2009-07-08 15:48 .X11-unix |
#chmod 1655
|
#ls -la
итого 9339 drwxrwxrwt 17 root root 1144 2009-07-08 20:38 . drwxr-xr-x 23 root root 544 2009-06-26 20:20 .. drwxr-xr-x 3 root root 72 2009-06-26 18:54 1 -rw-r--r-- 1 root root 50 2009-07-03 21:20 123 -rw-r--r-- 1 root root 0 2009-07-03 18:20 18:20:41 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2007 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2008 drwxr-xr-x 14 root root 336 2009-07-03 18:20 2009 -rw-r--r-- 1 root root 0 2009-07-03 18:20 3 ... drwx------ 2 user user 464 2009-07-01 21:05 orbit-user -rwxr-xr-x 1 root root 46 2009-07-06 19:42 params -rw-r--r-- 1 root root 9388 2009-07-01 20:13 passwd -rwxr-xr-x 1 root root 138 2009-07-06 20:44 select1 -rwxr-xr-x 1 root root 242 2009-07-06 20:17 ssh_port_forwarding drwx------ 2 user user 80 2009-07-08 18:12 ssh-TckxY24612 -rw-r--r-- 1 root root 103478 2009-07-06 19:32 vars -rwxr-xr-x 1 root root 70 2009-07-06 20:54 while1 -r--r--r-- 1 root root 11 2009-07-08 15:48 .X0-lock drwxrwxrwt 2 root root 72 2009-07-08 15:48 .X11-unix |
#[root@fbsd2:~]# ls -la
total 116 drwxr-xr-x 5 root wheel 512 Jul 8 18:57 . drwxr-xr-x 21 root wheel 512 Jul 6 19:00 .. -rw------- 1 root wheel 13067 Jul 8 20:28 .bash_history -rw-r--r-- 1 root wheel 19 Jun 22 12:10 .bash_profile -rw-r--r-- 1 root wheel 38 Jun 22 12:08 .bashrc -rw-r--r-- 2 root wheel 801 Jan 16 2008 .cshrc -rw------- 1 root wheel 164 Mar 15 2008 .history -rw-r--r-- 1 root wheel 143 Jan 16 2008 .k5login -rw-r--r-- 1 root wheel 51 Jun 22 12:09 .l3rc -rw------- 1 root wheel 159 Jul 8 18:58 .lesshst drwxr-xr-x 2 root wheel 6144 Jul 8 20:40 .lilalo -rw-r--r-- 1 root wheel 293 Jan 16 2008 .login -rw-r--r-- 2 root wheel 251 Jan 16 2008 .profile drwx------ 2 root wheel 512 Mar 15 2008 .ssh -rw------- 1 root wheel 5712 Jul 8 18:57 .viminfo -rw-r--r-- 1 root wheel 1 Jul 1 18:37 .vimrc drwxr-xr-x 2 root wheel 512 Mar 28 2008 .vnc -rw-r--r-- 1 root wheel 43 Jun 22 12:11 1 -rw-r--r-- 1 root wheel 5160 Mar 28 2008 install -rw------- 1 root wheel 53312 Mar 28 2008 mbox |
#ls -la
итого 79 drwxr-xr-x 14 root root 728 2009-07-08 20:07 . drwxr-xr-x 23 root root 544 2009-06-26 20:20 .. -rw-r--r-- 1 root root 0 2008-03-12 12:05 1234 -rw------- 1 root root 13559 2009-07-08 20:39 .bash_history -rw-r--r-- 1 root root 19 2008-03-10 15:10 .bash_profile -rw-r--r-- 1 root root 444 2008-03-12 10:43 .bashrc drwxr-xr-x 2 root root 48 2009-06-26 20:16 c drwxr-xr-x 2 root root 144 2009-07-08 20:08 files -rw-r--r-- 1 root root 0 2009-06-26 20:16 g ... drwx------ 3 root root 72 2008-03-13 13:12 .mozilla -rw-r--r-- 1 root root 110 2004-11-10 18:10 .profile drwxr-xr-x 3 root root 80 2009-06-26 20:22 proj drwxr-xr-x 2 root root 48 2009-06-26 19:50 source drwx------ 2 root root 112 2009-04-30 15:12 .ssh -rw-r--r-- 1 root root 1178 2009-07-01 19:56 TESTpart -rw------- 1 root root 6065 2009-07-08 19:40 .viminfo -rw-r--r-- 1 root root 51 2009-06-26 21:08 .vimrc drwxr-xr-x 2 root root 48 2009-06-26 20:16 x drwxr-xr-x 2 root root 48 2009-06-26 20:16 z |
#cd /tmp
|
#ls -la
итого 9339 drwxrwxrwt 17 root root 1144 2009-07-08 20:41 . drwxr-xr-x 23 root root 544 2009-06-26 20:20 .. drwxr-xr-x 3 root root 72 2009-06-26 18:54 1 -rw-r--r-- 1 root root 50 2009-07-03 21:20 123 -rw-r--r-- 1 root root 0 2009-07-03 18:20 18:20:41 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2007 drwxr-xr-x 14 root root 336 2009-06-26 18:57 2008 drwxr-xr-x 14 root root 336 2009-07-03 18:20 2009 -rw-r--r-- 1 root root 0 2009-07-03 18:20 3 ... drwx------ 2 user user 464 2009-07-01 21:05 orbit-user -rwxr-xr-x 1 root root 46 2009-07-06 19:42 params -rw-r--r-- 1 root root 9388 2009-07-01 20:13 passwd -rwxr-xr-x 1 root root 138 2009-07-06 20:44 select1 -rwxr-xr-x 1 root root 242 2009-07-06 20:17 ssh_port_forwarding drwx------ 2 user user 80 2009-07-08 18:12 ssh-TckxY24612 -rw-r--r-- 1 root root 103478 2009-07-06 19:32 vars -rwxr-xr-x 1 root root 70 2009-07-06 20:54 while1 -r--r--r-- 1 root root 11 2009-07-08 15:48 .X0-lock drwxrwxrwt 2 root root 72 2009-07-08 15:48 .X11-unix |
#ssh 192.168.16.254
LV Name /dev/VG00/var VG Name VG00 LV UUID 43zvJH-feGB-vxCb-aXgw-Co6O-Myrj-EJEzAZ LV Write Access read/write LV Status available # open 2 LV Size 10,00 GB Current LE 2560 Segments 1 Allocation inherit ... VG Name VG00 LV UUID MIICbW-szy1-ruOI-JjTZ-6Eu1-KJRe-HKNX01 LV Write Access read/write LV Status available # open 2 LV Size 5,00 GB Current LE 1280 Segments 1 Allocation inherit Read ahead sectors auto |
#[root@fbsd2:~]#
|
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]# smb
smbmsg smbutil |
#[root@fbsd2:~]#
[root@fbsd2:~]# |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]# exit
exit Connection to 192.168.16.210 closed. |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
|
#[root@fbsd2:~]# ls -l /mnt
[root@fbsd2:~]# mount 192.168.16.254:/data/iso /mnt total 9292436 -rw-r--r-- 1 root wheel 731594752 28 ÑÎ× 19:30 KNOPPIX_V5.1.0CD-2006-12-30-EN.iso -rw-r--r-- 1 root wheel 680466432 29 ÑÎ× 20:31 KNOPPIX_V6.0-ADRIANE_V1.1CD-2009-01-27-EN.iso -rw-r--r-- 1 root wheel 80 29 ÑÎ× 20:31 KNOPPIX_V6.0-ADRIANE_V1.1CD-2009-01-27-EN.iso.md5 lrwxrwxrwx 1 1000 1000 29 28 ÉÀÌ 2008 Win2008.iso -> /data/iso/win2008/Win2008.iso -rwxr-xr-x 1 1000 1000 192544768 17 ÓÅÎ 2007 WinPE.iso drwxrwxrwx 2 root wheel 264 22 ÁÐÒ 20:49 debian drwxr-xr-x 2 1000 1000 128 5 ÁÐÒ 2008 freebsd4.8 drwxr-xr-x 2 1000 wheel 144 17 ÆÅ× 2008 freebsd6.2 ... -rw-r--r-- 1 root wheel 732766208 30 ÏËÔ 2008 ubuntu-8.10-desktop-i386.iso -rw-r--r-- 1 1000 wheel 170 25 ÑÎ× 2008 welcome.msg drwxr-xr-x 2 1000 wheel 192 11 ÄÅË 2008 win2003R2 drwxr-xr-x 2 1000 1000 208 5 ÁÐÒ 2008 win2003sp2_64x drwxr-xr-x 2 1000 1000 104 9 ÁÐÒ 2008 win2008 -rw-r--r-- 1 1000 1000 574091264 16 ÉÀÌ 2008 win2k3Ent.iso -rw-r--r-- 1 1000 1000 1474560 1 ÍÁÒ 2008 win98boot.img -rw-r--r-- 1 1000 1000 114457563 3 ÍÁÒ 2008 win98se.tar.bz2 -rwxr-xr-x 1 1000 wheel 574750720 8 ÓÅÎ 2007 windows-server-2003.iso -rwxr--r-- 1 1000 wheel 613466112 17 ÆÅ× 2008 winxp.iso |
#[root@fbsd2:~]# moutn
![]() bash: moutn: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#[root@fbsd2:~]# mount
/dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad0s2e on /tmp (ufs, local, soft-updates) /dev/ad0s2f on /usr (ufs, local, soft-updates) /dev/ad0s2d on /var (ufs, local, soft-updates) 192.168.16.254:/data/iso on /mnt (nfs) |
#[root@fbsd2:~]#
[root@fbsd2:~]# showmount -e 192.168.16.254 Exports list on 192.168.16.254: /data/iso 192.168.16.0/24 10.0.17.5 /data/freebsd_inst * /tmp/free * /pxe/sles * |
#ssh 192.168.16.210
Password: Last login: Wed Jul 8 20:28:54 2009 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. l3-agent is already running: pid=14011; pidfile=/root/.lilalo/l3-agent.pid |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]# #mount /mnt/Win2008.iso
[root@fbsd2:~]# mount /mnt/ KNOPPIX_V5.1.0CD-2006-12-30-EN.iso sles/ KNOPPIX_V6.0-ADRIANE_V1.1CD-2009-01-27-EN.iso sles.iso KNOPPIX_V6.0-ADRIANE_V1.1CD-2009-01-27-EN.iso.md5 ubuntu-8.10-desktop-i386.iso Win2008.iso welcome.msg WinPE.iso win2003R2/ debian/ win2003sp2_64x/ freebsd4.8/ win2008/ freebsd6.2/ win2k3Ent.iso freebsd6.3/ win98boot.img freebsd7/ win98se.tar.bz2 frenzy/ windows-server-2003.iso knoppix-3.7ru.iso winxp.iso myubuntu/ |
#[root@fbsd2:~]# mkdir /mnt1
|
#[root@fbsd2:~]# mount /mnt/Win2008.iso /mnt
![]() [root@fbsd2:~]# mount /mnt/Win2008.iso /mnt1 mount: /mnt/Win2008.iso: No such file or directory mount: /mnt/Win2008.iso: No such file or directory |
#ssh 192.168.16.210
Connection to 192.168.16.254 closed. Password: Last login: Wed Jul 8 21:26:37 2009 from 192.168.16.4 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. l3-agent is already running: pid=14011; pidfile=/root/.lilalo/l3-agent.pid |
#[root@fbsd2:~]# apropos mdsetup
[root@fbsd2:~]# apropos mdcreate mdcreate: nothing appropriate mdsetup: nothing appropriate |
#[root@fbsd2:~]# apropos mdconfig
[root@fbsd2:~]# apropos md | less CPU_ELAN(4) - AMD Elan 520 CPU support MD2Init(3), MD2Update(3), MD2Pad(3), MD2Final(3), MD2End(3), MD2File(3), MD2FileChunk(3), MD2Data(3) - calculate the RSA Data Security, Inc., ``MD2'' message digest MD4Init(3), MD4Update(3), MD4Pad(3), MD4Final(3), MD4End(3), MD4File(3), MD4FileChunk(3), MD4Data(3) - calculate the RSA Data Security, Inc., ``MD4'' message digest MD5(9), MD5Init(9), MD5Transform(9) - message digest routines MD5Init(3), MD5Update(3), MD5Pad(3), MD5Final(3), MD5End(3), MD5File(3), MD5FileChunk(3), MD5Data(3) - calculate the RSA Data Security, Inc., ``MD5'' message digest RIPEMD160_Init(3), RIPEMD160_Update(3), RIPEMD160_Final(3), RIPEMD160_End(3), RIPEMD160_File(3), RIPEMD160_FileChunk(3), RIPEMD160_Data(3) - calculate the RIPEMD160 message digest VOP_REMOVE(9), VOP_RMDIR(9) - remove a file or directory amd(4) - amd53c974 PCI SCSI driver amd(8) - automatically mount file systems ... krb5_initlog(3), krb5_openlog(3), krb5_closelog(3), krb5_addlog_dest(3), krb5_addlog_func(3), krb5_log(3), krb5_vlog(3), krb5_log_msg(3), krb5_vlog_msg(3) - Heimdal logging functions krb5_verify_user(3), krb5_verify_user_lrealm(3), krb5_verify_user_opt(3), krb5_verify_opt_init krb5_verify_opt_set_flags(3), krb5_verify_opt_set_service(3), krb5_verify_opt_set_secure(3), krb5_verify_opt_set_keytab(3) - Heimdal password verifying functions krb5_warn(3), krb5_warnx(3), krb5_vwarn(3), krb5_vwarnx(3), krb5_err(3), krb5_errx(3), krb5_verr(3), krb5_verrx(3), krb5_set_warn_dest(3) - Heimdal warning and error functions le(4) - AMD Am7900 LANCE and Am79C9xx PCnet Ethernet interface driver lnc(4) - AMD Lance/PCnet Ethernet device driver md(4) - memory disk md5(1), sha1(1), sha256(1), rmd160(1) - calculate a message-digest fingerprint (checksum) for a file mdchain(9), md_initm(9), md_done(9), md_append_record(9), md_next_record(9), md_get_uint8(9), md_get_uint16(9), md_get_uint16be(9), md_get_uint16le(9), md_get_uint32(9), md_get_uint32be(9), md_get_uint32le(9), md_get_int64(9), md_get_int64be(9), md_get_int64le(9), md_get_mem(9), md_get_mbuf(9), md_get_uio(9) - set of functions to dissect an mbuf chain to various data types mdconfig(8) - configure and enable memory disks mdconfig(8) - configure and enable memory disks |
#[root@fbsd2:~]#
MDCONFIG(8) FreeBSD System Manager's Manual MDCONFIG(8) NAME mdconfig -- configure and enable memory disks [root@fbsd2:~]# man mdconfig MDCONFIG(8) FreeBSD System Manager's Manual MDCONFIG(8) NAME mdconfig -- configure and enable memory disks SYNOPSIS mdconfig -a -t type [-n] [-o [no]option] ... [-f file] [-s size] [-S sectorsize] [-u unit] [-x sectors/track] [-y heads/cyl] ... swap Storage for this type of memory disk is allocated from buffer memory. Pages get pushed out to the swap when the system is under memory pressure, otherwise they stay in the operating memory. Using swap backing is gener- ally preferable over malloc backing. -f file Filename to use for the vnode type memory disk. Options -a and -t vnode are implied if not specified. -l List configured devices. If given with -u, display details about that particular device. |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]# mdconfig -t vnode -f /mnt/win2
[root@fbsd2:~]# mdconfig -t vnode -f /mnt/win2 win2003R2/ win2003sp2_64x/ win2008/ win2k3Ent.iso win2003R2/ win2003sp2_64x/ win2008/ win2k3Ent.iso |
#[root@fbsd2:~]# man mdconfig
[root@fbsd2:~]# mdconfig -t vnode -f /mnt/Win2008.iso usage: mdconfig -a -t type [-n] [-o [no]option] ... [-f file] [-s size] [-S sectorsize] [-u unit] [-x sectors/track] [-y heads/cyl] mdconfig -d -u unit mdconfig -l [-n] [-u unit] type = {malloc, preload, vnode, swap} option = {cluster, compress, reserve} size = %d (512 byte blocks), %db (B), %dk (kB), %dm (MB), %dg (GB) or ... chmod 1777 /tmp To create a 5MB file-backed disk ( --a and --t vnode are implied): dd if=/dev/zero of=somebackingfile bs=1k count=5k mdconfig -f somebackingfile -u 0 bsdlabel -w md0 auto newfs md0c mount /dev/md0c /mnt To mount an ISO 9660 CD image file: mdconfig -a -t vnode -u 10 -f cdimage.iso mount_cd9660 /dev/md10 /mnt |
#[root@fbsd2:~]# mdconfig -a -t vnode -f /mnt/Win2008.iso
![]() mdconfig: could not find full path for /mnt/Win2008.iso: No such file or directory |
#[root@fbsd2:~]#
![]() [root@fbsd2:~]# config -a -t vnode -f /mnt/Win2008.iso |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]# mdconfig --help
![]() mdconfig: illegal option -- - usage: mdconfig -a -t type [-n] [-o [no]option] ... [-f file] [-s size] [-S sectorsize] [-u unit] [-x sectors/track] [-y heads/cyl] mdconfig -d -u unit mdconfig -l [-n] [-u unit] type = {malloc, preload, vnode, swap} option = {cluster, compress, reserve} size = %d (512 byte blocks), %db (B), %dk (kB), %dm (MB), %dg (GB) or %dt (TB) |
#[root@fbsd2:~]# man 4 md
NAME md -- memory disk SYNOPSIS device md SYNOPSIS mdconfig -a -t type [-n] [-o [no]option] ... [-f file] [-s size] [-S sectorsize] [-u unit] [-x sectors/track] [-y heads/cyl] mdconfig -d -u unit mdconfig -l [-n] [-u unit] DESCRIPTION ... generally preferable over malloc backing. For more information, please see mdconfig(8). SEE ALSO disklabel(5), disklabel(8), fdisk(8), loader(8), mdconfig(8), mdmfs(8), newfs(8), vmstat(8) HISTORY The md driver first appeared in FreeBSD 4.0 as a cleaner replacement for the MFS functionality previously used in PicoBSD and in the FreeBSD installation process. The md driver did a hostile takeover of the vn(4) driver in FreeBSD 5.0. |
#[root@fbsd2:~]# mdconfig -a -t vnode -f /mnt/Win2008.iso -u /dev/md0
![]() [root@fbsd2:~]# ls -l /dev/md* crw------- 1 root wheel 0, 72 1 ÉÀÌ 19:06 /dev/mdctl mdconfig: could not find full path for /mnt/Win2008.iso: No such file or directory |
#[root@fbsd2:~]# mdconfig -t vnode -f /mnt/Win2008.iso -u /dev/md0
![]() usage: mdconfig -a -t type [-n] [-o [no]option] ... [-f file] [-s size] [-S sectorsize] [-u unit] [-x sectors/track] [-y heads/cyl] mdconfig -d -u unit mdconfig -l [-n] [-u unit] type = {malloc, preload, vnode, swap} option = {cluster, compress, reserve} size = %d (512 byte blocks), %db (B), %dk (kB), %dm (MB), %dg (GB) or %dt (TB) |
#[root@fbsd2:~]# mdconfig -l
[root@fbsd2:~]# man mdconfig MDCONFIG(8) FreeBSD System Manager's Manual MDCONFIG(8) NAME mdconfig -- configure and enable memory disks SYNOPSIS mdconfig -a -t type [-n] [-o [no]option] ... [-f file] [-s size] [-S sectorsize] [-u unit] [-x sectors/track] [-y heads/cyl] mdconfig -d -u unit mdconfig -l [-n] [-u unit] DESCRIPTION ... the md prefix. -s size Size of the memory disk. Size is the number of 512 byte sectors unless suffixed with a b, k, m, g, or t which denotes byte, kilo- byte, megabyte, gigabyte and terabyte respectively. Options -a and -t swap are implied if not specified. -S sectorsize Sectorsize to use for malloc backed device. -x sectors/track See the description of the -y option below. |
#[root@fbsd2:~]# mdconfig -t vnode -f /mnt/Win2008.iso
![]() [root@fbsd2:~]# mdconfig -t vnode -f /mnt/Win2008.iso -u /dev/md0 Win2008.iso usage: mdconfig -a -t type [-n] [-o [no]option] ... [-f file] [-s size] [-S sectorsize] [-u unit] [-x sectors/track] [-y heads/cyl] mdconfig -d -u unit mdconfig -l [-n] [-u unit] type = {malloc, preload, vnode, swap} option = {cluster, compress, reserve} size = %d (512 byte blocks), %db (B), %dk (kB), %dm (MB), %dg (GB) or %dt (TB) |
#[root@fbsd2:~]# man mdconfig
[root@fbsd2:~]# dmesg | tail pid 3518 (gdmlogin), uid 92: exited on signal 6 (core dumped) pid 3528 (gdmlogin), uid 92: exited on signal 6 (core dumped) pid 3539 (gdm-binary), uid 92: exited on signal 6 pid 3540 (gdm-binary), uid 92: exited on signal 6 pid 3541 (gdm-binary), uid 92: exited on signal 6 pid 3538 (gdmgreeter), uid 92: exited on signal 6 (core dumped) pid 3552 (gdm-binary), uid 92: exited on signal 6 pid 3553 (gdm-binary), uid 92: exited on signal 6 pid 3554 (gdm-binary), uid 92: exited on signal 6 ... the system is under memory pressure, otherwise they stay in the operating memory. Using swap backing is gener- ally preferable over malloc backing. -f file Filename to use for the vnode type memory disk. Options -a and -t vnode are implied if not specified. -l List configured devices. If given with -u, display details about that particular device. -n When printing md device names, print only the unit number without the md prefix. |
#[root@fbsd2:~]# md
![]() [root@fbsd2:~]# mdconfig -f /mnt/Win2008.iso mdconfig: could not find full path for /mnt/Win2008.iso: No such file or directory md5 mdassembler mdconfig mdcs2ecma mdmfs mdnormalizer mdvalidater |
#[root@fbsd2:~]# mdconfig -a -f /mnt/Win2008.iso
![]() [root@fbsd2:~]# mdconfig -f /mnt/Win2008.iso -a mdconfig: could not find full path for /mnt/Win2008.iso: No such file or directory mdconfig: could not find full path for /mnt/Win2008.iso: No such file or directory |
#[root@fbsd2:~]# mdconfig -a -f /mnt/sles.iso
[root@fbsd2:~]# ls -l /mnt total 9292436 -rw-r--r-- 1 root wheel 731594752 28 ÑÎ× 19:30 KNOPPIX_V5.1.0CD-2006-12-30-EN.iso -rw-r--r-- 1 root wheel 680466432 29 ÑÎ× 20:31 KNOPPIX_V6.0-ADRIANE_V1.1CD-2009-01-27-EN.iso -rw-r--r-- 1 root wheel 80 29 ÑÎ× 20:31 KNOPPIX_V6.0-ADRIANE_V1.1CD-2009-01-27-EN.iso.md5 lrwxrwxrwx 1 1000 1000 29 28 ÉÀÌ 2008 Win2008.iso -> /data/iso/win2008/Win2008.iso -rwxr-xr-x 1 1000 1000 192544768 17 ÓÅÎ 2007 WinPE.iso drwxrwxrwx 2 root wheel 264 22 ÁÐÒ 20:49 debian drwxr-xr-x 2 1000 1000 128 5 ÁÐÒ 2008 freebsd4.8 drwxr-xr-x 2 1000 wheel 144 17 ÆÅ× 2008 freebsd6.2 ... drwxr-xr-x 2 1000 wheel 192 11 ÄÅË 2008 win2003R2 drwxr-xr-x 2 1000 1000 208 5 ÁÐÒ 2008 win2003sp2_64x drwxr-xr-x 2 1000 1000 104 9 ÁÐÒ 2008 win2008 -rw-r--r-- 1 1000 1000 574091264 16 ÉÀÌ 2008 win2k3Ent.iso -rw-r--r-- 1 1000 1000 1474560 1 ÍÁÒ 2008 win98boot.img -rw-r--r-- 1 1000 1000 114457563 3 ÍÁÒ 2008 win98se.tar.bz2 -rwxr-xr-x 1 1000 wheel 574750720 8 ÓÅÎ 2007 windows-server-2003.iso -rwxr--r-- 1 1000 wheel 613466112 17 ÆÅ× 2008 winxp.iso WARNING: opening backing store: /mnt/sles.iso readonly md0 |
#[root@fbsd2:~]# ls -l /mnt1
[root@fbsd2:~]# mount_cd9660 /dev/md0 /mnt1 total 11215 -r--r--r-- 2 root wheel 5448754 6 ÉÀÌ 2006 ARCHIVES.gz -r--r--r-- 1 root wheel 17992 6 ÉÀÌ 2006 COPYING -r--r--r-- 1 root wheel 25733 6 ÉÀÌ 2006 COPYING.de -r--r--r-- 1 root wheel 1455 6 ÉÀÌ 2006 COPYRIGHT -r--r--r-- 1 root wheel 1620 6 ÉÀÌ 2006 COPYRIGHT.de -r--r--r-- 1 root wheel 5826649 6 ÉÀÌ 2006 ChangeLog -r--r--r-- 2 root wheel 31130 6 ÉÀÌ 2006 INDEX.gz -r--r--r-- 1 root wheel 16106 6 ÉÀÌ 2006 NEWS ... -r--r--r-- 1 root wheel 877 6 ÉÀÌ 2006 gpg-pubkey-0dfb3188-41ed929b.asc -r--r--r-- 1 root wheel 613 6 ÉÀÌ 2006 gpg-pubkey-307e3d54-44201d5d.asc -r--r--r-- 1 root wheel 1694 6 ÉÀÌ 2006 gpg-pubkey-3d25d3d9-36e12d04.asc -r--r--r-- 1 root wheel 1036 6 ÉÀÌ 2006 gpg-pubkey-7e2e3b05-44748aba.asc -r--r--r-- 1 root wheel 2173 6 ÉÀÌ 2006 gpg-pubkey-9c800aca-40d8063e.asc -r--r--r-- 1 root wheel 1803 6 ÉÀÌ 2006 gpg-pubkey-a1912208-446a0899.asc -r--r--r-- 2 root wheel 53447 6 ÉÀÌ 2006 ls-lR.gz dr-xr-xr-x 2 root wheel 2048 6 ÉÀÌ 2006 media.1 -r--r--r-- 1 root wheel 5604 6 ÉÀÌ 2006 pubring.gpg dr-xr-xr-x 8 root wheel 2048 6 ÉÀÌ 2006 suse |
#[root@fbsd2:~]#
might want to read before starting the installation. It consists of the installation manual in PDF format and some HOWTOs for special installation scenarios. Also provided are extensive "/mnt1/README" [readonly] 65L, 1699C administration manuals both for SLES and AppArmor. Check the file "docu/README.manual" for language availability of the documentation. 2. Installation --------------- To start the standard installation from CD-ROM or DVD, reboot your computer with this medium in your CD-ROM or DVD drive. For other installation methods, consult the online documentation as described above. 3. Product News --------------- The file "NEWS" on this medium lists the new features, enhancements, and |
#[root@fbsd2:~]#
|
#[root@fbsd2:~]# lsof +D /mnt
![]() [root@fbsd2:~]# umount /mnt umount: unmount of /mnt failed: Device busy ^C |
#[root@fbsd2:~]# pkg_add -r fuser
![]() [root@fbsd2:~]# fuser /mnt bash: fuser: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/fuser.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/fuser.tbz' by URL |
#[root@fbsd2:~]# cd /usr/ports/
|
#[root@fbsd2:ports]# cd sysutils/fuser
[root@fbsd2:ports]# make search name=fuser Port: fuser-1142334561 Path: /usr/ports/sysutils/fuser Info: POSIX fuser utility for FreeBSD Maint: stas@FreeBSD.org B-deps: R-deps: WWW: http://mbsd.msk.ru/stas/fuser.html |
#[root@fbsd2:fuser]# chmod +s /usr/local/bin/fuser
[root@fbsd2:fuser]# make install ===> Vulnerability check disabled, database not found => fuser-1142334561.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://mbsd.msk.ru/dist/. fuser-1142334561.tar.bz2 100% of 10 kB 131 kBps ===> Extracting for fuser-1142334561 => MD5 Checksum OK for fuser-1142334561.tar.bz2. => SHA256 Checksum OK for fuser-1142334561.tar.bz2. ===> Patching for fuser-1142334561 ===> Configuring for fuser-1142334561 ... install -s -o root -g wheel -m 555 /usr/ports/sysutils/fuser/work/fuser/fuser /usr/local/bin install -o root -g wheel -m 444 /usr/ports/sysutils/fuser/work/fuser/fuser.1 /usr/local/man/man1 ============================================================================= Since fuser requires root privilegies to access /dev/mem file, ordinary users can't use it. If you want to give non-priveleged users access to this utility you must set setuid bit on fuser executable: # chmod +s /usr/local/bin/fuser ============================================================================= ===> Compressing manual pages for fuser-1142334561 ===> Registering installation for fuser-1142334561 |
#[root@fbsd2:fuser]# ls -l /usr/local/bin/fuser
[root@fbsd2:fuser]# fuser /mnt /mnt: -r-sr-sr-x 1 root wheel 14552 8 ÉÀÌ 21:38 /usr/local/bin/fuser |
#[root@fbsd2:fuser]# ls -l /usr/local/bin/fuser
[root@fbsd2:fuser]# chmod a+s /usr/local/bin/fuser -r-sr-sr-x 1 root wheel 14552 8 ÉÀÌ 21:38 /usr/local/bin/fuser |
#[root@fbsd2:fuser]# fuser ../fuser/
[root@fbsd2:fuser]# fuser ../fuse fusefs-curlftpfs/ fusefs-httpfs/ fusefs-pod/ fusefs-unionfs/ fusefs-encfs/ fusefs-kmod/ fusefs-smbnetfs/ fusefs-wdfs/ fusefs-funionfs/ fusefs-libs/ fusefs-sqlfs/ fusefs-wikipediafs/ fusefs-gnome-vfs/ fusefs-ntfs/ fusefs-sshfs/ fuser/ ../fuser/: 55221c 56624c |
#[root@fbsd2:fuser]# ps aux | grep 55221
root 55221 0,0 0,6 3360 2208 p3 Ss 21:27 0:00,27 /usr/local/bin/bash -i |
#[root@fbsd2:fuser]#
[root@fbsd2:fuser]# |
#[root@fbsd2:fuser]#
|
#[root@fbsd2:~]# umount /mnt1
![]() [root@fbsd2:fuser]# cd |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]#
![]() |
#[root@fbsd2:~]# cd /tmp
|
#[root@fbsd2:tmp]# mkdir testdir
|
#[root@fbsd2:tmp]# LANG=C
[root@fbsd2:tmp]# ls -ld testdir drwxr-xr-x 2 root wheel 512 8 ÉÀÌ 21:43 testdir |
#[root@fbsd2:tmp]# chmod 4755 testdir/
[root@fbsd2:tmp]# chmod 4755 LANG=C chmod: LANG=C: No such file or directory |
Время первой команды журнала | 19:23:52 2009- 7- 8 | |||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 20:43:41 2009- 7- 8 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | |||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.33 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.27 | |||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008