/l3/users/max-public/nt-scale/debian3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 |
|
#lvcreate -L5G
![]() Please provide a volume group name Run `lvcreate --help' for more information. |
#lvcreate -L5G
![]() Please provide a volume group name Run `lvcreate --help' for more information. |
#lvcreate -L5G --help
![]() lvcreate: Create a logical volume lvcreate [-A|--autobackup {y|n}] [--addtag Tag] [--alloc AllocationPolicy] [-C|--contiguous {y|n}] [-d|--debug] [-h|-?|--help] [--ignoremonitoring] [--monitor {y|n}] ... -L|--size LogicalVolumeSize[bBsSkKmMgGtTpPeE]} [-M|--persistent {y|n}] [--major major] [--minor minor] [-n|--name LogicalVolumeName] [--noudevsync] [-p|--permission {r|rw}] [-r|--readahead ReadAheadSectors|auto|none] [-t|--test] [-v|--verbose] [--version] [PhysicalVolumePath...] |
#lvcreate -L5G --help
lvcreate: Create a logical volume lvcreate [-A|--autobackup {y|n}] [--addtag Tag] [--alloc AllocationPolicy] [-C|--contiguous {y|n}] [-d|--debug] [-h|-?|--help] [--ignoremonitoring] [--monitor {y|n}] ... -L|--size LogicalVolumeSize[bBsSkKmMgGtTpPeE]} [-M|--persistent {y|n}] [--major major] [--minor minor] [-n|--name LogicalVolumeName] [--noudevsync] [-p|--permission {r|rw}] [-r|--readahead ReadAheadSectors|auto|none] [-t|--test] [-v|--verbose] [--version] [PhysicalVolumePath...] |
#lvcreate -L5G winxp1 /dev/VG0
![]() Volume group "winxp1" not found |
#lvdisplay
![]() --- Logical volume --- LV Name /dev/VG0/vol1 VG Name VG0 LV UUID pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex LV Write Access read/write LV Status available # open 1 LV Size 102.00 GiB Current LE 26112 Segments 2 ... LV Write Access read/write LV Status available # open 0 LV Size 5.00 GiB Current LE 1280 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 |
#lvdisplay
--- Logical volume --- LV Name /dev/VG0/vol1 VG Name VG0 LV UUID pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex LV Write Access read/write LV Status available # open 1 LV Size 102.00 GiB Current LE 26112 Segments 2 ... LV Write Access read/write LV Status available # open 0 LV Size 5.00 GiB Current LE 1280 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 |
#ls
![]() clone-vm dom1.save file.txt install-authorized knoppix.iso start-kvm wxp-sp2.iso |
#ls
clone-vm dom1.save file.txt install-authorized knoppix.iso start-kvm wxp-sp2.iso |
#rm
![]() rm: missing operand Try `rm --help' for more information. |
#rm ./wxp-sp2.iso ./winxp.iso
![]() rm: cannot remove `./winxp.iso': No such file or directory |
#rm ./wxp-sp2.iso ./winxp.iso
![]() rm: cannot remove `./winxp.iso': No such file or directory |
#rm --help
![]() Usage: rm [OPTION]... FILE... Remove (unlink) the FILE(s). -f, --force ignore nonexistent files, never prompt -i prompt before every removal -I prompt once before removing more than three files, or when removing recursively. Less intrusive than -i, while still giving protection against most mistakes --interactive[=WHEN] prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompt always --one-file-system when removing a hierarchy recursively, skip any ... use one of these commands: rm -- -foo rm ./-foo Note that if you use rm to remove a file, it might be possible to recover some of its contents, given sufficient expertise and/or time. For greater assurance that the contents are truly unrecoverable, consider using shred. Report rm bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> For complete documentation, run: info coreutils 'rm invocation' |
#rm --help
Usage: rm [OPTION]... FILE... Remove (unlink) the FILE(s). -f, --force ignore nonexistent files, never prompt -i prompt before every removal -I prompt once before removing more than three files, or when removing recursively. Less intrusive than -i, while still giving protection against most mistakes --interactive[=WHEN] prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompt always --one-file-system when removing a hierarchy recursively, skip any ... use one of these commands: rm -- -foo rm ./-foo Note that if you use rm to remove a file, it might be possible to recover some of its contents, given sufficient expertise and/or time. For greater assurance that the contents are truly unrecoverable, consider using shred. Report rm bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> For complete documentation, run: info coreutils 'rm invocation' |
#scp
![]() usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 |
#scp
![]() usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 |
#scp user@10.0.35.45:/root/wxp-sp2.iso ./wxp-sp2.iso
![]() user@10.0.35.45's password: scp: /root/wxp-sp2.iso: Permission denied |
#scp user@10.0.35.45:/root/wxp-sp2.iso ./wxp-sp2.iso
![]() user@10.0.35.45's password: scp: /root/wxp-sp2.iso: Permission denied |
#scp root@10.0.35.45:/root/wxp-sp2.iso ./wxp-sp2.iso
![]() wxp-sp2.iso 100% 677MB 9.0MB/s 01:15 |
#scp root@10.0.35.45:/root/wxp-sp2.iso ./wxp-sp2.iso
wxp-sp2.iso 100% 677MB 9.0MB/s 01:15 |
#vim /etc/xen/winxp1
![]() --- /tmp/l3-saved-5961.20695.27338 2012-02-24 15:42:28.000000000 +0200 +++ /etc/xen/winxp1 2012-02-24 15:44:06.000000000 +0200 @@ -78,7 +78,7 @@ # and MODE is r for read-only, w for read-write. #disk = [ 'phy:hda1,hda1,r' ] -disk = [ 'phy:/dev/VG0/winxp1:sda1,w,file:/root/winxp.iso,hda,w', ',hdc:cdrom,r' ] +disk = [ 'phy:/dev/VG0/winxp1:sda1,w,file:/root/wxp-sp2.iso,hda,w', ',hdc:cdrom,r' ] #---------------------------------------------------------------------------- # Configure the behaviour when a domain exits. There are three 'reasons' @@ -130,7 +130,7 @@ #----------------------------------------------------------------------------- # boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d) # default: hard disk, cd-rom, floppy -#boot="cda" +boot="d" #----------------------------------------------------------------------------- # write to temporary files instead of disk image files |
#ls
![]() clone-vm dom1.save file.txt install-authorized knoppix.iso start-kvm wxp-sp2.iso |
#ls
clone-vm dom1.save file.txt install-authorized knoppix.iso start-kvm wxp-sp2.iso |
#vim /etc/xen/winxp1
![]() --- /tmp/l3-saved-5961.30424.28445 2012-02-24 15:45:04.000000000 +0200 +++ /etc/xen/winxp1 2012-02-24 15:46:16.000000000 +0200 @@ -78,7 +78,7 @@ # and MODE is r for read-only, w for read-write. #disk = [ 'phy:hda1,hda1,r' ] -disk = [ 'phy:/dev/VG0/winxp1:sda1,w,file:/root/wxp-sp2.iso,hda,w', ',hdc:cdrom,r' ] +disk = [ 'phy:/dev/VG0/winxp1:sda,w,file:/root/wxp-sp2.iso,hda,w', ',hdc:cdrom,r' ] #---------------------------------------------------------------------------- # Configure the behaviour when a domain exits. There are three 'reasons' |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7238 2 r----- 4828.5 dom1 2 128 1 -b---- 529.5 dom2 4 128 1 -b---- 20.2 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7238 2 r----- 4828.5 dom1 2 128 1 -b---- 529.5 dom2 4 128 1 -b---- 20.2 |
#A name for your domain. All domains must have different names.
![]() Using config file "/etc/xen/winxp1". Error: Invalid mode |
#A name for your domain. All domains must have different names.
![]() Using config file "/etc/xen/winxp1". Error: Invalid mode |
#ls
![]() clone-vm dom1.save file.txt install-authorized knoppix.iso start-kvm wxp-sp2.iso |
#ls
clone-vm dom1.save file.txt install-authorized knoppix.iso start-kvm wxp-sp2.iso |
#grep disk /etc/xen/dom1
![]() # Optional ramdisk. ramdisk = "/boot/initrd.img-3.2.7" # Define the disk devices you want the domain to have access to, and # Each disk entry is of the form phy:UNAME,DEV,MODE disk = [ 'phy:/dev/VG0/vol1,xvda1,w' ] |
#grep disk /etc/xen/dom1
# Optional ramdisk. ramdisk = "/boot/initrd.img-3.2.7" # Define the disk devices you want the domain to have access to, and # Each disk entry is of the form phy:UNAME,DEV,MODE disk = [ 'phy:/dev/VG0/vol1,xvda1,w' ] |
#lvdisplay
![]() --- Logical volume --- LV Name /dev/VG0/vol1 VG Name VG0 LV UUID pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex LV Write Access read/write LV Status available # open 1 LV Size 102.00 GiB Current LE 26112 Segments 2 ... LV Write Access read/write LV Status available # open 0 LV Size 5.00 GiB Current LE 1280 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 |
#lvdisplay
--- Logical volume --- LV Name /dev/VG0/vol1 VG Name VG0 LV UUID pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex LV Write Access read/write LV Status available # open 1 LV Size 102.00 GiB Current LE 26112 Segments 2 ... LV Write Access read/write LV Status available # open 0 LV Size 5.00 GiB Current LE 1280 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 |
#vim /etc/xen/winxp1
![]() --- /tmp/l3-saved-5961.22265.5450 2012-02-24 15:55:30.000000000 +0200 +++ /etc/xen/winxp1 2012-02-24 15:56:06.000000000 +0200 @@ -78,7 +78,7 @@ # and MODE is r for read-only, w for read-write. #disk = [ 'phy:hda1,hda1,r' ] -disk = [ 'phy:/dev/VG0/winxp1:sda,w,file:/root/wxp-sp2.iso,hda,w', ',hdc:cdrom,r' ] +disk = [ 'phy:/dev/VG0/winxp1,sda,w', 'file:/root/wxp-sp2.iso,hdc:cdrom,r' ] #---------------------------------------------------------------------------- # Configure the behaviour when a domain exits. There are three 'reasons' |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7238 2 r----- 5257.6 WinXp1 9 512 1 r----- 7.8 dom1 2 128 1 -b---- 529.6 dom2 4 128 1 -b---- 20.3 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7238 2 r----- 5257.6 WinXp1 9 512 1 r----- 7.8 dom1 2 128 1 -b---- 529.6 dom2 4 128 1 -b---- 20.3 |
#apt-get install vncviewer
![]() Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'xtightvncviewer' instead of 'vncviewer' Suggested packages: tightvncserver ssh The following NEW packages will be installed: xtightvncviewer 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 88.9 kB of archives. After this operation, 229 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main xtightvncviewer i386 1.3.9-6.1+b1 [88.9 kB] Fetched 88.9 kB in 0s (4,474 kB/s) Selecting previously deselected package xtightvncviewer. (Reading database ... 126640 files and directories currently installed.) Unpacking xtightvncviewer (from .../xtightvncviewer_1.3.9-6.1+b1_i386.deb) ... Processing triggers for menu ... Processing triggers for man-db ... Setting up xtightvncviewer (1.3.9-6.1+b1) ... update-alternatives: using /usr/bin/xtightvncviewer to provide /usr/bin/vncviewer (vncviewer) in auto mode. Processing triggers for menu ... |
#apt-get install vncviewer
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'xtightvncviewer' instead of 'vncviewer' Suggested packages: tightvncserver ssh The following NEW packages will be installed: xtightvncviewer 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 88.9 kB of archives. After this operation, 229 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main xtightvncviewer i386 1.3.9-6.1+b1 [88.9 kB] Fetched 88.9 kB in 0s (4,474 kB/s) Selecting previously deselected package xtightvncviewer. (Reading database ... 126640 files and directories currently installed.) Unpacking xtightvncviewer (from .../xtightvncviewer_1.3.9-6.1+b1_i386.deb) ... Processing triggers for menu ... Processing triggers for man-db ... Setting up xtightvncviewer (1.3.9-6.1+b1) ... update-alternatives: using /usr/bin/xtightvncviewer to provide /usr/bin/vncviewer (vncviewer) in auto mode. Processing triggers for menu ... |
#vncviewer 127.0.0.1:0
![]() Connected to RFB server, using protocol version 3.8 No authentication needed Authentication successful Desktop name "Xen-WinXp1" VNC server default format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using shared memory PutImage Same machine: preferring raw encoding vncviewer: VNC server closed connection ShmCleanup called |
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8 No authentication needed Authentication successful Desktop name "Xen-WinXp1" VNC server default format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using shared memory PutImage Same machine: preferring raw encoding vncviewer: VNC server closed connection ShmCleanup called |
#vncviewer 127.0.0.1:0
![]() Connected to RFB server, using protocol version 3.8 No authentication needed Authentication successful Desktop name "Xen-WinXp1" VNC server default format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using shared memory PutImage Same machine: preferring raw encoding vncviewer: VNC server closed connection ShmCleanup called |
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8 No authentication needed Authentication successful Desktop name "Xen-WinXp1" VNC server default format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using shared memory PutImage Same machine: preferring raw encoding vncviewer: VNC server closed connection ShmCleanup called |
#vncviewer 127.0.0.1:0
![]() Connected to RFB server, using protocol version 3.8 No authentication needed Authentication successful Desktop name "Xen-WinXp1" VNC server default format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using shared memory PutImage Same machine: preferring raw encoding vncviewer: VNC server closed connection ShmCleanup called |
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8 No authentication needed Authentication successful Desktop name "Xen-WinXp1" VNC server default format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using shared memory PutImage Same machine: preferring raw encoding vncviewer: VNC server closed connection ShmCleanup called |
#vncviewer 127.0.0.1:0
![]() Connected to RFB server, using protocol version 3.8 No authentication needed Authentication successful Desktop name "Xen-WinXp1" VNC server default format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using shared memory PutImage Same machine: preferring raw encoding ShmCleanup called |
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8 No authentication needed Authentication successful Desktop name "Xen-WinXp1" VNC server default format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using shared memory PutImage Same machine: preferring raw encoding ShmCleanup called |
#fdisk
![]() Usage: fdisk [options] <disk> change partition table fdisk [options] -l <disk> list partition table(s) fdisk -s <partition> give partition size(s) in blocks Options: -b <size> sector size (512, 1024, 2048 or 4096) -c switch off DOS-compatible mode -h print help -u <size> give sizes in sectors instead of cylinders -v print version -C <number> specify the number of cylinders -H <number> specify the number of heads -S <number> specify the number of sectors per track |
#fdisk
![]() Usage: fdisk [options] <disk> change partition table fdisk [options] -l <disk> list partition table(s) fdisk -s <partition> give partition size(s) in blocks Options: -b <size> sector size (512, 1024, 2048 or 4096) -c switch off DOS-compatible mode -h print help -u <size> give sizes in sectors instead of cylinders -v print version -C <number> specify the number of cylinders -H <number> specify the number of heads -S <number> specify the number of sectors per track |
#mount /dev/cdrom /mnt
![]() ^C^Z^Z^Z ^] ^X^C ^Z ^Z ^C ^M ^[^] ^Z^Z^Z^Z^Z^Z^Z ^Z^Z^Z^Z ^Z |
#mount /dev/cdrom /mnt
![]() ^C^Z^Z^Z ^] ^X^C ^Z ^Z ^C ^M ^[^] ^Z^Z^Z^Z^Z^Z^Z ^Z^Z^Z^Z ^Z |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7238 2 r----- 5668.8 WinXp1 10 512 1 r----- 292.8 dom1 2 128 1 -b---- 529.7 dom2 4 128 1 -b---- 20.4 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7238 2 r----- 5668.8 WinXp1 10 512 1 r----- 292.8 dom1 2 128 1 -b---- 529.7 dom2 4 128 1 -b---- 20.4 |
#showmount -e 127.1
![]() clnt_create: RPC: Program not registered |
#showmount -e 127.1
![]() clnt_create: RPC: Program not registered |
#showmount -e 127001
![]() clnt_create: RPC: Port mapper failure - RPC: Unable to send |
#showmount -e 127001
![]() clnt_create: RPC: Port mapper failure - RPC: Unable to send |
Время первой команды журнала | 14:36:25 2012- 2-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:04:08 2012- 2-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 32.67 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 11.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.46 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.64 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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