| /l3/users/igor-public/nt-scale-2010-03/linux10.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
|
#cat /etc/xen/linux1
kernel = "/boot/vmlinuz-2.6.26-2-xen-686" ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" vif = [ ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
|
#less /etc/xen/xend-config.sxp
|
|
#vi /etc/xen/xend-config.sxp
--- /tmp/l3-saved-4025.28327.5049 2010-03-24 17:25:14.000000000 +0200 +++ /etc/xen/xend-config.sxp 2010-03-24 17:25:32.000000000 +0200 @@ -125,7 +125,7 @@ # Your default ethernet device is used as the outgoing interface, by default. # To use a different one (e.g. eth1) use # -# (network-script 'network-bridge netdev=eth1') +(network-script 'network-bridge netdev=eth0') # # The bridge is named xenbr0, by default. To rename the bridge, use # @@ -136,7 +136,7 @@ # two fake interfaces per guest domain. To do things like this, write # yourself a wrapper script, and call network-bridge from it, as appropriate. # -(network-script network-dummy) +#(network-script network-dummy) # The script used to control virtual interfaces. This can be overridden on a # per-vif basis when creating a domain or a configuring a new vif. The |
|
#/etc/init.d/xend restart
Restarting XEN control daemon: xendWaiting for peth0 to negotiate link...........(link isnt in running state) mount.ocfs2: Device name specified was not found while opening device /dev/drbd1 mount.ocfs2: Device name specified was not found while opening device /dev/drbd2 . |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bb:1e
inet addr:192.168.15.10 Bcast:192.168.15.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fe7d:bb1e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:179 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:12455 (12.1 KiB)
eth1 Link encap:Ethernet HWaddr 00:07:e9:0c:4f:a1
UP BROADCAST MULTICAST MTU:1500 Metric:1
...
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25911 (25.3 KiB) TX bytes:25911 (25.3 KiB)
|
|
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.001bfc7dbb1e no peth0 |
|
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
|
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. From 192.168.15.10 icmp_seq=2 Destination Host Unreachable From 192.168.15.10 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.15.254 ping statistics --- 6 packets transmitted, 0 received, +2 errors, 100% packet loss, time 5018ms , pipe 2 |
|
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.001bfc7dbb1e no peth0 |
|
#screen
|
|
#cat /etc/xen/linux1
kernel = "/boot/vmlinuz-2.6.26-2-xen-686" ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" vif = [ ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
|
#vi /etc/xen/linux1
--- /tmp/l3-saved-3903.21931.2326 2010-03-24 17:31:06.000000000 +0200 +++ /etc/xen/linux1 2010-03-24 17:31:20.000000000 +0200 @@ -2,7 +2,7 @@ ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" -vif = [ ] +vif = [ 'bridge=eth1' ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
|
#cat /etc/xen/linux1
kernel = "/boot/vmlinuz-2.6.26-2-xen-686" ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" vif = [ 'bridge=eth1' ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
|
#screen -x
|
|
#screen -x
|
|
#screen -x
|
|
#screen -x
|
|
#screen -x
|
|
#screen -x
|
|
#ping 192.168.15.101
PING 192.168.15.101 (192.168.15.101) 56(84) bytes of data. 64 bytes from 192.168.15.101: icmp_seq=1 ttl=64 time=4.20 ms 64 bytes from 192.168.15.101: icmp_seq=2 ttl=64 time=0.225 ms ^C --- 192.168.15.101 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1003ms rtt min/avg/max/mdev = 0.225/2.212/4.200/1.988 ms |
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7979 2 r----- 285.7 linux1 1 128 1 -b---- 0.2 |
|
#xm console linux1
[ 1532.880051] __ratelimit: 44 messages suppressed [ 1532.880051] clocksource/0: Time went backwards: ret=dacf136bf delta=-3777462470743 shadow=d814224ac offset=2baf44ac [ 1532.880051] __ratelimit: 50 messages suppressed [ 1532.880051] clocksource/0: Time went backwards: ret=ebd379ad6 delta=-3772894454848 shadow=eab4be32e offset=11ebe66e [ 1532.880051] __ratelimit: 54 messages suppressed [ 1532.880051] clocksource/0: Time went backwards: ret=10013a87ee delta=-3767458445096 shadow=fd554a305 offset=2be610e2 [ 1532.880051] __ratelimit: 54 messages suppressed [ 1532.880051] clocksource/0: Time went backwards: ret=1125874482 delta=-3762554469012 shadow=10ff5dff1f offset=2629712b [ 1532.880052] __ratelimit: 30 messages suppressed [ 1532.880052] clocksource/0: Time went backwards: ret=125509315c delta=-3757462457786 shadow=122966be5d offset=2ba29bc3 ... linux10:~# [ 1532.880079] __ratelimit: 61 messages suppressed [ 1532.880079] clocksource/0: Time went backwards: ret=1d5eeeb6648 delta=-1817850468558 shadow=1d5dc7b34d3 offset=12706bb3 ifconfig linux10:~# ifconfig -a lo Link encap:Local Loopback LOOPBACK MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
|
#xm destroy linux1
|
|
#xm create -c list
Error: Unable to open config file: list
Usage: xm create <ConfigFile> [options] [vars]
Create a domain based on <ConfigFile>.
Options:
-h, --help Print this help.
--help_config Print the available configuration variables (vars)
for the configuration script.
-q, --quiet Quiet.
--path=PATH Search path for configuration scripts. The value of
PATH is a colon-separated directory list.
...
creating. Experimental. Can decrease create time.
-p, --paused Leave the domain paused after it is created.
-c, --console_autoconnect
Connect to the console after the domain is created.
[options] [vars]
Create a domain.
Domain creation parameters can be set by command-line switches, from
a python configuration script or an SXP config file. See documentation
for --defconfig, --config. Configuration variables can be set using
VAR=VAL on the command line. For example vmid=3 sets vmid to 3.
|
|
#xm create -c linux1
Using config file "/etc/xen/linux1". |
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7979 2 r----- 324.3 linux1 2 128 1 --p--- 0.0 |
|
#xm destroy linux1
|
|
#cat /etc/xen/linux1
kernel = "/boot/vmlinuz-2.6.26-2-xen-686" ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" vif = [ 'bridge=eth1' ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
|
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.001bfc7dbb1e no peth0 |
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7979 2 r----- 367.7 |
|
#cat /etc/xen/linux1
kernel = "/boot/vmlinuz-2.6.26-2-xen-686" ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" vif = [ 'bridge=eth0' ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
|
#Error: Domain 'linux1' does not exist.
|
|
#less /var/log/messages
|
|
#xm create -c linux1
Using config file "/etc/xen/linux1".
Started domain linux1
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.26-2-xen-686 (Debian 2.6.26-21lenny4) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Tue Mar 9 20:11:42 UTC 2010
[ 0.000000] Reserving virtual address space above 0xf5800000
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 0000000008800000 (usable)
[ 0.000000] 0MB HIGHMEM available.
[ 0.000000] 136MB LOWMEM available.
...
Stopping enhanced syslogd: rsyslogd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Deconfiguring network interfaces...done.
Cleaning up ifupdown....
Deactivating swap...done.
Will now restart.
[ 151.886703] md: stopping all md devices.
[ 152.878689] xen console-0: xenbus_dev_shutdown: device/console/0: Initialising != Connected, skipping
[ 153.197854] Restarting system.
|
|
#xm console linux1
[ 0.004000] .data : 0xc02cd5f3 - 0xc03868a0 ( 740 kB) [ 0.004000] .text : 0xc0100000 - 0xc02cd5f3 (1845 kB) [ 0.004000] Checking if this processor honours the WP bit even in supervisor mode...Ok. [ 0.236025] Calibrating delay using timer specific routine.. 3737.79 BogoMIPS (lpj=7475586) [ 0.236063] Security Framework initialized [ 0.236071] SELinux: Disabled at boot. [ 0.236076] Capability LSM initialized [ 0.236090] Mount-cache hash table entries: 512 [ 0.236199] Initializing cgroup subsys ns [ 0.236206] Initializing cgroup subsys cpuacct ... TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) linux10:~# passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully linux10:~# exit logout Debian GNU/Linux 5.0 linux10 hvc0 |
|
#ssh 192.168.15.110
The authenticity of host '192.168.15.110 (192.168.15.110)' can't be established. RSA key fingerprint is 40:61:b4:e1:ca:1f:d3:e8:f2:2a:f6:12:97:35:75:c0. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.110' (RSA) to the list of known hosts. root@192.168.15.110's password: Linux linux10 2.6.26-2-xen-686 #1 SMP Tue Mar 9 20:11:42 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Mar 24 18:10:18 2010 linux10:~# linux10:~# linux10:~# root -bash: root: command not found linux10:~# shutdown -h now Broadcast message from root@linux10 (pts/0) (Wed Mar 24 18:17:32 2010): The system is going down for system halt NOW! linux10:~# Connection to 192.168.15.110 closed by remote host. Connection to 192.168.15.110 closed. |
|
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.001bfc7dbb1e no peth0 |
|
#grep disk /etc/xen/linux1
ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] |
|
#vbladed
usage: ./vblade <shelf> <slot> <ethn> <device> |
|
#vbladed 10 1 eth0 /dev/DATA/linux1
|
|
#scp /etc/xen/linux1 192.168.15.3:/etc/xen/linux10
The authenticity of host '192.168.15.3 (192.168.15.3)' can't be established. RSA key fingerprint is f9:27:84:9d:73:0a:1f:34:79:94:22:db:87:68:41:00. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.3' (RSA) to the list of known hosts. root@192.168.15.3's password: linux1 100% 216 0.2KB/s 00:00 |
|
#scp /etc/xen/linux1 192.168.15.4:/etc/xen/linux10
The authenticity of host '192.168.15.4 (192.168.15.4)' can't be established. RSA key fingerprint is 5b:45:f3:3e:4d:3a:fa:64:3f:34:72:23:ff:d2:fa:dc. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.4' (RSA) to the list of known hosts. root@192.168.15.4's password: linux1 100% 216 0.2KB/s 00:00 |
|
#ssh 192.168.15.3
root@192.168.15.3's password: |
|
#aoe-stat
|
|
#aoe-discover
aoe-discover: /dev/etherd/discover does not exist or is not writeable. |
|
#modprobe aoe
|
|
#aoe-discover
|
|
#aoe-discover
|
|
#exit
exit Connection to 192.168.15.3 closed. |
|
#pkill vbladed
|
|
#ps aux | grep vb
root 3525 0.0 0.0 108 36 ? Ss 18:06 0:00 runsv vblade-e10.1 daemon 3526 0.0 0.0 1764 420 ? S 18:06 0:00 logger -t vblade-persist-e10.1 root 4701 0.0 0.0 3860 1120 pts/3 S 18:18 0:00 sh -c /usr/sbin/vblade 10 1 eth0 /dev/DATA/linux1 < /dev/null 2>&1 | logger -t vbladed root 4706 0.0 0.0 1828 460 pts/3 S 18:18 0:00 /usr/sbin/vblade 10 1 eth0 /dev/DATA/linux1 root 4707 0.0 0.0 3020 612 pts/3 S 18:18 0:00 logger -t vbladed root 4757 0.0 0.0 3132 708 pts/3 R+ 18:19 0:00 grep vb |
|
#pkill vblade
|
|
#ps aux | grep vb
root 3525 0.0 0.0 108 36 ? Ss 18:06 0:00 runsv vblade-e10.1 daemon 3526 0.0 0.0 1764 420 ? S 18:06 0:00 logger -t vblade-persist-e10.1 root 4774 0.0 0.0 3132 704 pts/3 R+ 18:19 0:00 grep vb |
|
#ps aux | grep vb
root 4797 0.0 0.0 3132 704 pts/3 R+ 18:19 0:00 grep vb |
|
#aoe-discover
|
|
#aoe-stat
e10.1 2.147GB eth0 up
|
|
#cat /etc/xen/linux10
kernel = "/boot/vmlinuz-2.6.26-2-xen-686" ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" vif = [ 'bridge=eth0' ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
|
#sed -i s@/dev/DATA/linux1@/dev/etherd/e10.1@ /etc/xen/linux10
|
|
#scp /etc/xen/linux10 192.168.15.4:/etc/xen/
linux10 100% 217 0.2KB/s 00:00 |
|
#vi /etc/xen/xend-config.sxp
|
|
#/etc/init.d/xend
xend xendomains |
|
#/etc/init.d/xend restart
Restarting XEN control daemon: xend. |
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7979 2 r----- 84.2 linux1 4 128 1 -b---- 6.6 |
|
#sed -i s/linux1/linux10/ /etc/xen/linux10
|
|
#xm create -c linux10
Using config file "/etc/xen/linux10".
Started domain linux10
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.26-2-xen-686 (Debian 2.6.26-21lenny4) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Tue Mar 9 20:11:42 UTC 2010
[ 0.000000] Reserving virtual address space above 0xf5800000
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 0000000008800000 (usable)
[ 0.000000] 0MB HIGHMEM available.
[ 0.000000] 136MB LOWMEM available.
...
done.
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init.
No init found. Try passing init= bootarg.
BusyBox v1.10.2 (Debian 1:1.10.2-2) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
(initramfs)
(initramfs)
|
|
#xm destroy linux10
|
|
#less /var/log/messages
|
|
#reboot
Broadcast message from root@linux3 (pts/10) (Wed Mar 24 18:24:47 2010): The system is going down for reboot NOW! |
|
#ssh 192.168.15.3
root@192.168.15.3's password: |
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7979 2 r----- 23.8 linux1 1 128 1 -b---- 0.0 |
|
#xm destroy linux1
|
|
#reboot
Broadcast message from root@linux3 (pts/2) (Wed Mar 24 18:26:55 2010): The system is going down for reboot NOW! |
|
#ssh 192.168.15.3
^C |
|
#ssh 192.168.15.3
root@192.168.15.3's password: |
|
#modprobe aoe
|
|
#aoe-stat
|
|
#aoe-discover
|
|
#aoe-stat
|
|
#exit
exit Connection to 192.168.15.3 closed. |
|
#ssh 192.168.15.3
root@192.168.15.3's password: l3-agent is already running: pid=3500; pidfile=/root/.lilalo/l3-agent.pid |
|
#less /var/log/messages
|
|
#less /var/log/kern.log
|
|
#exit
exit Connection to 192.168.15.3 closed. |
|
#ps aux | grep vb
root 4805 0.0 0.0 108 32 ? Ss 18:19 0:00 runsv vblade-e10.1 daemon 4806 0.0 0.0 1764 420 ? S 18:19 0:00 logger -t vblade-persist-e10.1 root 4808 0.0 0.0 3860 1120 pts/3 S 18:19 0:00 sh -c /usr/sbin/vblade 10 1 peth0 /dev/DATA/linux1 < /dev/null 2>&1 | logger -t vbladed root 4813 0.0 0.0 1828 460 pts/3 S 18:19 0:00 /usr/sbin/vblade 10 1 peth0 /dev/DATA/linux1 root 4814 0.0 0.0 3020 608 pts/3 S 18:19 0:00 logger -t vbladed |
|
#kill 4805
|
|
#ps aux | grep vb
root 4808 0.0 0.0 3860 1120 pts/3 S 18:19 0:00 sh -c /usr/sbin/vblade 10 1 peth0 /dev/DATA/linux1 < /dev/null 2>&1 | logger -t vbladed root 4813 0.0 0.0 1828 460 pts/3 S 18:19 0:00 /usr/sbin/vblade 10 1 peth0 /dev/DATA/linux1 root 4814 0.0 0.0 3020 608 pts/3 S 18:19 0:00 logger -t vbladed root 4927 0.0 0.0 3132 708 pts/3 R+ 18:29 0:00 grep vb |
kernel = "/boot/vmlinuz-2.6.26-2-xen-686" ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" vif = [ 'bridge=eth0' ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4"
kernel = "/boot/vmlinuz-2.6.26-2-xen-686" ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" memory = 128 name = "linux1" vif = [ 'bridge=eth0' ] disk = [ 'phy:/dev/DATA/linux1,hda1,w' ] root = "/dev/hda1 ro" extra = "4"
| Время первой команды журнала | 16:03:09 2010- 3-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Время последней команды журнала | 17:29:26 2010- 3-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Процент команд с ненулевым кодом завершения, % | 16.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Суммарное время работы с терминалом *, час | 1.44 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Количество командных строк в единицу времени, команда/мин | 1.17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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. Последнее возможно для редких команд.