/l3/users/sergo/xg-ids/localhost.localdomain/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 |
|
#echo "SELECT count(*) FROM event" | mysql snort_db -u
|
#echo "SELECT count(*) FROM event" | sql snort_db -u ro
path = /sbin:/usr/sbin:/bin:/usr/bin # Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 ... # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#echo "SELECT count(*) FROM event"
|
#]#
bash: ]#sql: command not found |
#clear
|
#]#
bash: ]#: command not found |
#[root@linux2:acidlab]# echo "SELECT count(*) FROM even
|
#echo "S
|
#echo "SELECT count(*) FROM event" | mysql snort_d-u ro
path = /sbin:/usr/sbin:/bin:/usr/bin # Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 ... # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#echo "SELECT count(*) FROM event" | mys
|
#echo "SELECT count(*) FROM event" | mysql sno
path = /sbin:/usr/sbin:/bin:/usr/bin # Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 ... # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#echo "SELECT count(*) FROM event" | mysql root -u -u r
path = /sbin:/usr/sbin:/bin:/usr/bin # Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 ... # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#echo "SELECT count(*) FROM event" | mysql root -u root
-p Enter password: ERROR 1049 (42000): Unknown database 'root' |
#echo "SELECT count(*) FROM event" | mysql
|
#echo "SELECT count(*) FROM event" | mysql snort
Enter password: count(*) 7 |
#cd /root
path = /sbin:/usr/sbin:/bin:/usr/bin # Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 ... # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#ls
1.txt dbootstrap_settings log.ecp test-syslog.sh base-1.2.6 install-report.template nohup.out base-1.2.6.tar john.pot phpsyslogng-2.6.tar cisco-show-run log.eci restore |
#cd base-1.2.6
|
#ls
admin base_main.php base_stat_time.php base_ag_common.php base_maintenance.php base_stat_uaddr.php base_ag_main.php base_payload.php base_user.php base_common.php base_qry_alert.php contrib base_conf.php.dist base_qry_common.php docs base_db_common.php base_qry_form.php help base_db_setup.php base_qry_main.php images base_denied.php base_qry_sqlcalls.php includes base_footer.php base_stat_alerts.php index.php base_graph_common.php base_stat_class.php languages base_graph_display.php base_stat_common.php scripts base_graph_form.php base_stat_ipaddr.php setup base_graph_main.php base_stat_iplink.php sql base_hdr1.php base_stat_ports.php styles base_hdr2.php base_stat_sensor.php |
#cp ./base_conf.php.dist ./base_conf.php
path = /sbin:/usr/sbin:/bin:/usr/bin # Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 ... # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#ls -la /var/www
# TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 # -------------------- # Extra configuration # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying ... # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those total 5 drwxr-xr-x 5 root root 1024 2006-11-13 16:35 . drwxr-xr-x 15 root root 1024 2006-11-13 16:27 .. drwxr-xr-x 2 root root 1024 2006-11-13 16:27 apache2-default drwxr-xr-x 6 root root 1024 2005-06-16 03:06 phpsyslogng drwxr-xr-x 2 root root 1024 2006-11-13 16:35 test |
#cp base-1.2.6 /var/www
# Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 # -------------------- ... # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those cp: cannot stat `base-1.2.6': No such file or directory |
#cp ./base-1.2.6 /var/www
cp: cannot stat `./base-1.2.6': No such file or directory |
#cd ..
|
#cp base-1.2.6 /var/www
cp: omitting directory `base-1.2.6' |
#ls -la /var/www
total 5 drwxr-xr-x 5 root root 1024 2006-11-13 16:35 . drwxr-xr-x 15 root root 1024 2006-11-13 16:27 .. drwxr-xr-x 2 root root 1024 2006-11-13 16:27 apache2-default drwxr-xr-x 6 root root 1024 2005-06-16 03:06 phpsyslogng drwxr-xr-x 2 root root 1024 2006-11-13 16:35 test |
#pwd
/root |
#ls
1.txt dbootstrap_settings log.ecp test-syslog.sh base-1.2.6 install-report.template nohup.out base-1.2.6.tar john.pot phpsyslogng-2.6.tar cisco-show-run log.eci restore |
#cp ./base-1.2.6 /var/www/
# Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 # -------------------- ... # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those cp: omitting directory `./base-1.2.6' |
#mkdir /var/www/base
path = /sbin:/usr/sbin:/bin:/usr/bin # Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 ... # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#cd base-1.2.6
|
#ls
admin base_hdr2.php base_stat_sensor.php base_ag_common.php base_main.php base_stat_time.php base_ag_main.php base_maintenance.php base_stat_uaddr.php base_common.php base_payload.php base_user.php base_conf.php base_qry_alert.php contrib base_conf.php.dist base_qry_common.php docs base_db_common.php base_qry_form.php help base_db_setup.php base_qry_main.php images base_denied.php base_qry_sqlcalls.php includes base_footer.php base_stat_alerts.php index.php base_graph_common.php base_stat_class.php languages base_graph_display.php base_stat_common.php scripts base_graph_form.php base_stat_ipaddr.php setup base_graph_main.php base_stat_iplink.php sql base_hdr1.php base_stat_ports.php styles |
#cp ./* /var/www/base/
# -------------------- # Extra configuration # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ ... cp: omitting directory `./contrib' cp: omitting directory `./docs' cp: omitting directory `./help' cp: omitting directory `./images' cp: omitting directory `./includes' cp: omitting directory `./languages' cp: omitting directory `./scripts' cp: omitting directory `./setup' cp: omitting directory `./sql' cp: omitting directory `./styles' |
#mc -a
|
#clear
|
#ls
admin base_hdr2.php base_stat_sensor.php base_ag_common.php base_main.php base_stat_time.php base_ag_main.php base_maintenance.php base_stat_uaddr.php base_common.php base_payload.php base_user.php base_conf.php base_qry_alert.php contrib base_conf.php.dist base_qry_common.php docs base_db_common.php base_qry_form.php help base_db_setup.php base_qry_main.php images base_denied.php base_qry_sqlcalls.php includes base_footer.php base_stat_alerts.php index.php base_graph_common.php base_stat_class.php languages base_graph_display.php base_stat_common.php scripts base_graph_form.php base_stat_ipaddr.php setup base_graph_main.php base_stat_iplink.php sql base_hdr1.php base_stat_ports.php styles |
#cd ..
|
#ls
1.txt dbootstrap_settings log.ecp test-syslog.sh base-1.2.6 install-report.template nohup.out base-1.2.6.tar john.pot phpsyslogng-2.6.tar cisco-show-run log.eci restore |
#mv -fR base-1.2.6 /var/www
use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 # -------------------- # Extra configuration ... # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those mv: invalid option -- R Try `mv --help' for more information. |
#mv -f base-1.2.6 /var/www
|
#ls -la /var/www
total 8 drwxr-xr-x 7 root root 1024 2006-11-16 15:11 . drwxr-xr-x 15 root root 1024 2006-11-13 16:27 .. drwxr-xr-x 2 root root 1024 2006-11-13 16:27 apache2-default drwxr-xr-x 2 root root 1024 2006-11-16 15:10 base drwxr-xr-x 13 501 501 2048 2006-11-16 15:07 base-1.2.6 drwxr-xr-x 6 root root 1024 2005-06-16 03:06 phpsyslogng drwxr-xr-x 2 root root 1024 2006-11-13 16:35 test |
#rm -f /var/www/base-1.2.6
# Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 # -------------------- ... # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those rm: cannot remove `/var/www/base-1.2.6': Is a directory |
#rmdir -f /var/www/base-1.2.6
rmdir: invalid option -- f Try `rmdir --help' for more information. |
#rm -fR /var/www/base-1.2.6
|
#locate english.lang.php
path = /sbin:/usr/sbin:/bin:/usr/bin # Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 ... # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#find / -name english.lang.php
/usr/share/acidbase/languages/english.lang.php |
#ls -la /usr/share/acidase
# Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 # -------------------- ... # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those ls: /usr/share/acidase: No such file or directory |
#ls -la /usr/share/acibase
ls: /usr/share/acibase: No such file or directory |
#ls -la /usr/share/acidbase
total 452 drwxr-xr-x 11 root root 4096 2006-11-16 12:22 . drwxr-xr-x 204 root root 4096 2006-11-16 12:22 .. drwxr-xr-x 2 root root 4096 2006-11-16 12:22 admin -rw-r--r-- 1 root root 3525 2006-10-13 20:59 base_ag_common.php -rw-r--r-- 1 root root 13536 2006-10-13 20:59 base_ag_main.php -rw-r--r-- 1 root root 33253 2006-10-13 20:59 base_common.php lrwxrwxrwx 1 root root 27 2006-11-16 12:22 base_conf.php -> /etc/acidbase/base_conf.php -rw-r--r-- 1 root root 6594 2006-10-13 20:59 base_db_common.php -rw-r--r-- 1 root root 2796 2006-10-13 20:59 base_db_setup.php ... -rw-r--r-- 1 root root 4656 2006-10-13 20:59 base_user.php drwxr-xr-x 2 root root 4096 2006-11-16 12:22 contrib drwxr-xr-x 2 root root 4096 2006-11-16 12:22 help drwxr-xr-x 2 root root 4096 2006-11-16 12:22 images drwxr-xr-x 3 root root 4096 2006-11-16 12:22 includes -rw-r--r-- 1 root root 3220 2006-10-13 20:59 index.php drwxr-xr-x 2 root root 4096 2006-11-16 12:22 languages drwxr-xr-x 2 root root 4096 2006-11-16 12:22 scripts drwxr-xr-x 2 root root 4096 2006-11-16 12:22 setup drwxr-xr-x 2 root root 4096 2006-11-16 12:22 styles |
#ls -la /usr/share/acidbase|less
|
#ls -la /usr/share/acidbase|less
|
#ls -la /usr/share/acidbase
total 452 drwxr-xr-x 11 root root 4096 2006-11-16 12:22 . drwxr-xr-x 204 root root 4096 2006-11-16 12:22 .. drwxr-xr-x 2 root root 4096 2006-11-16 12:22 admin -rw-r--r-- 1 root root 3525 2006-10-13 20:59 base_ag_common.php -rw-r--r-- 1 root root 13536 2006-10-13 20:59 base_ag_main.php -rw-r--r-- 1 root root 33253 2006-10-13 20:59 base_common.php lrwxrwxrwx 1 root root 27 2006-11-16 12:22 base_conf.php -> /etc/acidbase/base_conf.php -rw-r--r-- 1 root root 6594 2006-10-13 20:59 base_db_common.php -rw-r--r-- 1 root root 2796 2006-10-13 20:59 base_db_setup.php ... -rw-r--r-- 1 root root 4656 2006-10-13 20:59 base_user.php drwxr-xr-x 2 root root 4096 2006-11-16 12:22 contrib drwxr-xr-x 2 root root 4096 2006-11-16 12:22 help drwxr-xr-x 2 root root 4096 2006-11-16 12:22 images drwxr-xr-x 3 root root 4096 2006-11-16 12:22 includes -rw-r--r-- 1 root root 3220 2006-10-13 20:59 index.php drwxr-xr-x 2 root root 4096 2006-11-16 12:22 languages drwxr-xr-x 2 root root 4096 2006-11-16 12:22 scripts drwxr-xr-x 2 root root 4096 2006-11-16 12:22 setup drwxr-xr-x 2 root root 4096 2006-11-16 12:22 styles |
#ls -la /usr/share/acidbase|less
|
#ls /usr/share/acidbase|less
|
#mc
|
#clear
|
#echo $BASE_path
# Use external binaries? By default we don't. use_external_bins = 1 # Temporary directory to use. The default configuration only allows # root to update the ruleset. # Note: If commented out will check environment variables TMP, # TMPDIR or TEMPDIR, or otherwise use "/tmp" if none of them was set. tmpdir = /var/run/oinkmaster # Umask to use while executing umask = 0027 # -------------------- # Extra configuration # -------------------- # Files in the archive matching this regular expression will be # checked for changes, and then updated or added if needed. # You can then choose to skip individual files by specifying # the "skipfile" keyword below. # Normally you shouldn't need to change this one. # (But if you do, make sure it's still a valid regexp.) update_files = \.rules$|\.config$|\.conf$|\.txt$|\.map$ # Regexp of keywords that starts a snort rule. # May be useful if you create your own ruletypes and want those |
#find / -name adodb
/usr/share/php/adodb |
#mc
|
Время первой команды журнала | 14:59:58 2006-11-16 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:48:13 2006-11-16 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 60 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 21.67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 11.67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.24 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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