/l3/users/17-12-2012/NT-BSDnet/freebsd1.net.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 |
|
#ls -l /usr/local/etc/rc.d/xinetd
-r-xr-xr-x 1 root wheel 511 Dec 18 15:31 /usr/local/etc/rc.d/xinetd |
#ls -l /usr/local/etc/rc.d/xinetd
-r-xr-xr-x 1 root wheel 511 Dec 18 15:31 /usr/local/etc/rc.d/xinetd |
#shutdown -r now
Shutdown NOW! shutdown: [pid 16217] |
#ls /usr/local/etc/
bash_completion.d man.d trafshow xinetd.d devd pam.d trafshow.dist xml2Conf.sh fonts pango xinetd.conf gtk-2.0 rc.d xinetd.conf~ |
#ls /usr/local/etc/xinetd.d
chargen |
#vimsr/local/etc/xinetd.d/chargen
# This file generated by xconv.pl, included with the xinetd # package. xconv.pl was written by Rob Braun (bbraun@synack.net) # # The file is merely a translation of your inetd.conf file into # the equivalent in xinetd.conf syntax. xinetd has many # features that may not be taken advantage of with this translation. # Please refer to the xinetd.conf man page for more information type = INTERNAL # on howido properl= chargen-streamtd. socket_type = stream protocol = tcp wait = no user = root desable = no # The defaults section sets some information for all services } service chargen { "/usr/local/etc/xinetd.d/chargen" 22L, 655C |
#~
Dec 18 15:58:03 freebsd1 xinetd[1470]: Service ssh failed to start and is deactivated. Dec 18 15:58:03 freebsd1 xinetd[1470]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 15:58:03 freebsd1 xinetd[1470]: Started working: 1 available service Dec 18 16:02:11 freebsd1 xinetd[1470]: Starting reconfiguration Dec 18 16:02:11 freebsd1 xinetd[1470]: bad service attribute: desable [file=/usr/local/etc/xinetd.d/chargen] [line=20] Dec 18 16:02:11 freebsd1 xinetd[1470]: Swapping defaults Dec 18 16:02:11 freebsd1 xinetd[1470]: readjusting service chargen-stream Dec 18 16:02:11 freebsd1 xinetd[1470]: bind failed (Address already in use (errno = 48)). service = ssh Dec 18 16:02:11 freebsd1 xinetd[1470]: Service ssh failed to start and is deactivated. Dec 18 16:02:11 freebsd1 xinetd[1470]: Reconfigured: new=0 old=1 dropped=0 (services) |
#vim /usr/local/etc/xinetd.d/chargen
--- /tmp/l3-saved-1538.19305.31557 2012-12-18 16:04:59.000000000 +0200 +++ /usr/local/etc/xinetd.d/chargen 2012-12-18 16:05:44.000000000 +0200 @@ -17,6 +17,6 @@ protocol = tcp wait = no user = root - desable = no + disable =no } |
#xinetd stop
Usage: xinetd [-d] [-f config_file] [-filelog filename] [-syslog facility] [-reuse] [-limit proc_limit] [-pidfile filename] [-logprocs limit] [-shutdownprocs limit] [-cc interval] |
#/usr/local/etc/rc.d/xinetd stop
Stopping xinetd. |
#/usr/local/etc/rc.d/xinetd stop
Stopping xinetd. |
#/usr/local/etc/rc.d/xinetd stop
Stopping xinetd. |
#/usr/local/etc/rc.d/xinetd stop
Stopping xinetd. |
#/usr/local/etc/rc.d/xinetd start
Starting xinetd. |
#tail /var/log/messages
Dec 18 16:02:11 freebsd1 xinetd[1470]: Swapping defaults Dec 18 16:02:11 freebsd1 xinetd[1470]: readjusting service chargen-stream Dec 18 16:02:11 freebsd1 xinetd[1470]: bind failed (Address already in use (errno = 48)). service = ssh Dec 18 16:02:11 freebsd1 xinetd[1470]: Service ssh failed to start and is deactivated. Dec 18 16:02:11 freebsd1 xinetd[1470]: Reconfigured: new=0 old=1 dropped=0 (services) Dec 18 16:06:17 freebsd1 xinetd[1470]: Exiting... Dec 18 16:06:21 freebsd1 xinetd[1648]: bind failed (Address already in use (errno = 48)). service = ssh Dec 18 16:06:21 freebsd1 xinetd[1648]: Service ssh failed to start and is deactivated. Dec 18 16:06:21 freebsd1 xinetd[1648]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 16:06:21 freebsd1 xinetd[1648]: Started working: 1 available service |
#vim /usr/local/etc/xinetd.conf
--- /tmp/l3-saved-1538.9573.9097 2012-12-18 16:06:55.000000000 +0200 +++ /usr/local/etc/xinetd.conf 2012-12-18 16:07:13.000000000 +0200 @@ -37,14 +37,3 @@ includedir /usr/local/etc/xinetd.d -service ssh -{ - flags = NAMEINARGS - socket_type = stream - protocol = tcp - wait = no - user = root - server = /usr/sbin/sshd - server_args = sshd -i -4 -} - |
#killall -1 xinetd
|
#tail /var/log/messages
Dec 18 16:02:11 freebsd1 xinetd[1470]: Reconfigured: new=0 old=1 dropped=0 (services) Dec 18 16:06:17 freebsd1 xinetd[1470]: Exiting... Dec 18 16:06:21 freebsd1 xinetd[1648]: bind failed (Address already in use (errno = 48)). service = ssh Dec 18 16:06:21 freebsd1 xinetd[1648]: Service ssh failed to start and is deactivated. Dec 18 16:06:21 freebsd1 xinetd[1648]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 16:06:21 freebsd1 xinetd[1648]: Started working: 1 available service Dec 18 16:07:21 freebsd1 xinetd[1648]: Starting reconfiguration Dec 18 16:07:21 freebsd1 xinetd[1648]: Swapping defaults Dec 18 16:07:21 freebsd1 xinetd[1648]: readjusting service chargen-stream Dec 18 16:07:21 freebsd1 xinetd[1648]: Reconfigured: new=0 old=1 dropped=0 (services) |
#tail /var/log/messages
Dec 18 16:02:11 freebsd1 xinetd[1470]: Reconfigured: new=0 old=1 dropped=0 (services) Dec 18 16:06:17 freebsd1 xinetd[1470]: Exiting... Dec 18 16:06:21 freebsd1 xinetd[1648]: bind failed (Address already in use (errno = 48)). service = ssh Dec 18 16:06:21 freebsd1 xinetd[1648]: Service ssh failed to start and is deactivated. Dec 18 16:06:21 freebsd1 xinetd[1648]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 16:06:21 freebsd1 xinetd[1648]: Started working: 1 available service Dec 18 16:07:21 freebsd1 xinetd[1648]: Starting reconfiguration Dec 18 16:07:21 freebsd1 xinetd[1648]: Swapping defaults Dec 18 16:07:21 freebsd1 xinetd[1648]: readjusting service chargen-stream Dec 18 16:07:21 freebsd1 xinetd[1648]: Reconfigured: new=0 old=1 dropped=0 (services) |
#tail /var/log/messages
Dec 18 16:02:11 freebsd1 xinetd[1470]: Reconfigured: new=0 old=1 dropped=0 (services) Dec 18 16:06:17 freebsd1 xinetd[1470]: Exiting... Dec 18 16:06:21 freebsd1 xinetd[1648]: bind failed (Address already in use (errno = 48)). service = ssh Dec 18 16:06:21 freebsd1 xinetd[1648]: Service ssh failed to start and is deactivated. Dec 18 16:06:21 freebsd1 xinetd[1648]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 16:06:21 freebsd1 xinetd[1648]: Started working: 1 available service Dec 18 16:07:21 freebsd1 xinetd[1648]: Starting reconfiguration Dec 18 16:07:21 freebsd1 xinetd[1648]: Swapping defaults Dec 18 16:07:21 freebsd1 xinetd[1648]: readjusting service chargen-stream Dec 18 16:07:21 freebsd1 xinetd[1648]: Reconfigured: new=0 old=1 dropped=0 (services) |
#tail /var/log/messages
Dec 18 16:02:11 freebsd1 xinetd[1470]: Reconfigured: new=0 old=1 dropped=0 (services) Dec 18 16:06:17 freebsd1 xinetd[1470]: Exiting... Dec 18 16:06:21 freebsd1 xinetd[1648]: bind failed (Address already in use (errno = 48)). service = ssh Dec 18 16:06:21 freebsd1 xinetd[1648]: Service ssh failed to start and is deactivated. Dec 18 16:06:21 freebsd1 xinetd[1648]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 16:06:21 freebsd1 xinetd[1648]: Started working: 1 available service Dec 18 16:07:21 freebsd1 xinetd[1648]: Starting reconfiguration Dec 18 16:07:21 freebsd1 xinetd[1648]: Swapping defaults Dec 18 16:07:21 freebsd1 xinetd[1648]: readjusting service chargen-stream Dec 18 16:07:21 freebsd1 xinetd[1648]: Reconfigured: new=0 old=1 dropped=0 (services) |
#ls /usr/local/etc/xinetd.d/
chargen chargen~ |
#ls -l r/local/etc/xinetd.d/
total 4 -rw-r--r-- 1 root wheel 654 Dec 18 16:05 chargen -rw-r--r-- 1 root wheel 655 Dec 18 15:54 chargen~ |
#ls -l r/local/etc/xinetd.d/
total 4 -rw-r--r-- 1 root wheel 654 Dec 18 16:05 chargen -rw-r--r-- 1 root wheel 655 Dec 18 15:54 chargen~ |
#ls -l r/local/etc/xinetd.d/
total 4 -rw-r--r-- 1 root wheel 654 Dec 18 16:05 chargen -rw-r--r-- 1 root wheel 655 Dec 18 15:54 chargen~ |
#ls -l r/local/etc/xinetd.d/
total 4 -rw-r--r-- 1 root wheel 654 Dec 18 16:05 chargen -rw-r--r-- 1 root wheel 655 Dec 18 15:54 chargen~ |
#vimsr/local/etc/xinetd.d/chargen
# package. xconv.pl was written by Rob Braun (bbraun@synack.net) # # The file is merely a translation of your inetd.conf file into # the equivalent in xinetd.conf syntax. xinetd has many # features that may not be taken advantage of with this translation. # Please refer to the xinetd.conf man page for more information type = INTERNAL # on howido properl= chargen-streamtd. socket_type = stream protocol = tcp ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/usr/local/etc/xinetd.d/chargen" 22L, 655C written |
#killall -1 xinetd\
> quit No matching processes were found |
#killall -1 xinetd
|
#killall -1 xinetd
|
#killall -1 xinetd
|
#killall -1 xinetd
|
#tail /var/log/messages
Dec 18 16:06:21 freebsd1 xinetd[1648]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 16:06:21 freebsd1 xinetd[1648]: Started working: 1 available service Dec 18 16:07:21 freebsd1 xinetd[1648]: Starting reconfiguration Dec 18 16:07:21 freebsd1 xinetd[1648]: Swapping defaults Dec 18 16:07:21 freebsd1 xinetd[1648]: readjusting service chargen-stream Dec 18 16:07:21 freebsd1 xinetd[1648]: Reconfigured: new=0 old=1 dropped=0 (services) Dec 18 16:09:22 freebsd1 xinetd[1648]: Starting reconfiguration Dec 18 16:09:22 freebsd1 xinetd[1648]: Swapping defaults Dec 18 16:09:22 freebsd1 xinetd[1648]: readjusting service chargen-stream Dec 18 16:09:22 freebsd1 xinetd[1648]: Reconfigured: new=0 old=1 dropped=0 (services) |
#tail -far/log/messages
Dec 18 16:06:21 freebsd1 xinetd[1648]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 18 16:06:21 freebsd1 xinetd[1648]: Started working: 1 available service Dec 18 16:07:21 freebsd1 xinetd[1648]: Starting reconfiguration Dec 18 16:07:21 freebsd1 xinetd[1648]: Swapping defaults Dec 18 16:07:21 freebsd1 xinetd[1648]: readjusting service chargen-stream Dec 18 16:07:21 freebsd1 xinetd[1648]: Reconfigured: new=0 old=1 dropped=0 (services) Dec 18 16:09:22 freebsd1 xinetd[1648]: Starting reconfiguration Dec 18 16:09:22 freebsd1 xinetd[1648]: Swapping defaults Dec 18 16:09:22 freebsd1 xinetd[1648]: readjusting service chargen-stream Dec 18 16:09:22 freebsd1 xinetd[1648]: Reconfigured: new=0 old=1 dropped=0 (services) ^C |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root xinetd 1648 0 tcp4 *:19 *:* root xinetd 1648 7 dgram -> /var/run/logpriv root sshd 1397 3 tcp4 192.168.13.21:22 192.168.15.101:49225 root sshd 1331 3 tcp4 192.168.13.21:22 192.168.15.101:49224 smmsp sendmail 1244 3 dgram -> /var/run/log root sendmail 1240 3 dgram -> /var/run/logpriv root sendmail 1240 4 tcp4 127.0.0.1:25 *:* root sshd 1232 3 tcp6 *:22 *:* root sshd 1232 4 tcp4 *:22 *:* root syslogd 943 4 dgram /var/run/log root syslogd 943 5 dgram /var/run/logpriv root syslogd 943 6 udp6 *:514 *:* root syslogd 943 7 udp4 *:514 *:* root devd 777 4 stream /var/run/devd.pipe root moused 746 4 stream /var/run/devd.pipe |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root xinetd 1648 0 tcp4 *:19 *:* root sshd 1397 3 tcp4 192.168.13.21:22 192.168.15.101:49225 root sshd 1331 3 tcp4 192.168.13.21:22 192.168.15.101:49224 root sendmail 1240 4 tcp4 127.0.0.1:25 *:* root sshd 1232 4 tcp4 *:22 *:* root syslogd 943 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root xinetd 1648 0 tcp4 *:19 *:* root sshd 1397 3 tcp4 192.168.13.21:22 192.168.15.101:49225 root sshd 1331 3 tcp4 192.168.13.21:22 192.168.15.101:49224 root sendmail 1240 4 tcp4 127.0.0.1:25 *:* root sshd 1232 4 tcp4 *:22 *:* root syslogd 943 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root xinetd 1648 0 tcp4 *:19 *:* root sshd 1397 3 tcp4 192.168.13.21:22 192.168.15.101:49225 root sshd 1331 3 tcp4 192.168.13.21:22 192.168.15.101:49224 root sendmail 1240 4 tcp4 127.0.0.1:25 *:* root sshd 1232 4 tcp4 *:22 *:* root syslogd 943 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root xinetd 1648 0 tcp4 *:19 *:* root sshd 1397 3 tcp4 192.168.13.21:22 192.168.15.101:49225 root sshd 1331 3 tcp4 192.168.13.21:22 192.168.15.101:49224 root sendmail 1240 4 tcp4 127.0.0.1:25 *:* root sshd 1232 4 tcp4 *:22 *:* root syslogd 943 7 udp4 *:514 *:* |
#sockstat -l4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root xinetd 1648 0 tcp4 *:19 *:* root sendmail 1240 4 tcp4 127.0.0.1:25 *:* root sshd 1232 4 tcp4 *:22 *:* root syslogd 943 7 udp4 *:514 *:* |
#man
|
#lsof | grep LISTEN
l3script: lsof: command not found |
#lsof
l3script: lsof: command not found |
#lsof
l3script: lsof: command not found |
#lsof
l3script: lsof: command not found |
#lsof
l3script: lsof: command not found |
#make search name=lsof
make: don't know how to make search. Stop |
#find /usr/ports/ -name lsof
/usr/ports/sysutils/lsof ^C |
#cd /usr/ports/sysutils/lsof/
|
#make install
===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE => lsof_4.85A.freebsd.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch http://www.SpringDaemons.com/stas//lsof_4.85A.freebsd.tar.bz2 fetch: http://www.SpringDaemons.com/stas/lsof_4.85A.freebsd.tar.bz2: Not Found => Attempting to fetch http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof//lsof_4.85A.freebsd.tar.bz2 fetch: http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/lsof_4.85A.freebsd.tar.bz2: Not Found => Attempting to fetch ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof//lsof_4.85A.freebsd.tar.bz2 fetch: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.85A.freebsd.tar.bz2: File unavailable (e.g., file not found, no access) => Attempting to fetch ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW//lsof_4.85A.freebsd.tar.bz2 ... This port has installed the following binaries which execute with increased privileges. /usr/local/sbin/lsof If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://people.freebsd.org/~abe/ |
#lsof
lsof: WARNING: access /root/.lsof_freebsd1: No such file or directory lsof: WARNING: created device cache file: /root/.lsof_freebsd1 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME kernel 0 root cwd VDIR 0,75 512 2 / kernel 0 root rtd VDIR 0,75 512 2 / kernel 0 root cwd VDIR 0,75 512 2 / kernel 0 root rtd VDIR 0,75 512 2 / kernel 0 root cwd VDIR 0,75 512 2 / kernel 0 root rtd VDIR 0,75 512 2 / kernel 0 root cwd VDIR 0,75 512 2 / ... lsof 2423 root rtd VDIR 0,75 512 2 / lsof 2423 root txt VREG 0,79 126872 598063 /usr/local/sbin/lsof lsof 2423 root txt VREG 0,75 220628 70664 /libexec/ld-elf.so.1 lsof 2423 root txt VREG 0,75 32780 110 /lib/libkvm.so.5 lsof 2423 root txt VREG 0,75 1155172 108 /lib/libc.so.7 lsof 2423 root 0u VCHR 0,92 0t65411 92 /dev/pts/2 lsof 2423 root 1u VCHR 0,92 0t65411 92 /dev/pts/2 lsof 2423 root 2u VCHR 0,92 0t65411 92 /dev/pts/2 lsof 2423 root 3r VCHR 0,31 0t0 31 /dev/mem lsof 2423 root 4r VCHR 0,32 0xc3875000 32 /dev/kmem |
#ipfw
ipfw: usage: ipfw [options] do "ipfw -h" or "man ipfw" for details |
#ipfw
ipfw: usage: ipfw [options] do "ipfw -h" or "man ipfw" for details |
#ipfw
ipfw: usage: ipfw [options] do "ipfw -h" or "man ipfw" for details |
#ipfw
ipfw: usage: ipfw [options] do "ipfw -h" or "man ipfw" for details |
#ipfw show
ipfw: getsockopt(IP_FW_GET): Protocol not available |
#ipf
usage: ipf [-6AdDEInoPrRsvVyzZ] [-l block|pass|nomatch|state|nat] [-cc] [-F i|o|a|s|S|u] [-f filename] [-T <tuneopts>] |
#ipf
usage: ipf [-6AdDEInoPrRsvVyzZ] [-l block|pass|nomatch|state|nat] [-cc] [-F i|o|a|s|S|u] [-f filename] [-T <tuneopts>] |
#ipf
usage: ipf [-6AdDEInoPrRsvVyzZ] [-l block|pass|nomatch|state|nat] [-cc] [-F i|o|a|s|S|u] [-f filename] [-T <tuneopts>] |
#ipf
usage: ipf [-6AdDEInoPrRsvVyzZ] [-l block|pass|nomatch|state|nat] [-cc] [-F i|o|a|s|S|u] [-f filename] [-T <tuneopts>] |
#pf
l3script: pf: command not found |
#ipfw list
ipfw: getsockopt(IP_FW_GET): Protocol not available |
#vim /etc/de
|
#vim /etc/de
|
#vim /etc/defaults/rc.conf
|
#GPT boot success/failure reporting.
. /etc/rc.subr . /etc/network.subr afexists inet6 ipv6_available=$? ########fwcmd="/sbin/ipfw -q" ;; # Set quiet mode if requested *) fwcmd="/sbin/ipfw" # ;; esac ${firewall_quiet} in ... # For a more advanced treatment of Internet Security read: # # Firewalls and Internet Security: Repelling the Wily Hacker, 2nd Edition [Uu][Nn][Kk][Nn][Oo][Ww][Nn]) ;; *) if [ -r "${firewall_type}" ]; then ${fwcmd} ${firewall_flags} ${firewall_type} fi ;; esac |
#GPT boot success/failure reporting.
. /etc/rc.subr . /etc/network.subr afexists inet6 ipv6_available=$? ########fwcmd="/sbin/ipfw -q" ;; # Set quiet mode if requested *) fwcmd="/sbin/ipfw" # ;; esac ${firewall_quiet} in ... # For a more advanced treatment of Internet Security read: # # Firewalls and Internet Security: Repelling the Wily Hacker, 2nd Edition [Uu][Nn][Kk][Nn][Oo][Ww][Nn]) ;; *) if [ -r "${firewall_type}" ]; then ${fwcmd} ${firewall_flags} ${firewall_type} fi ;; esac |
#GPT boot success/failure reporting.
. /etc/rc.subr . /etc/network.subr afexists inet6 ipv6_available=$? ########fwcmd="/sbin/ipfw -q" ;; # Set quiet mode if requested *) fwcmd="/sbin/ipfw" # ;; esac ${firewall_quiet} in ... # For a more advanced treatment of Internet Security read: # # Firewalls and Internet Security: Repelling the Wily Hacker, 2nd Edition [Uu][Nn][Kk][Nn][Oo][Ww][Nn]) ;; *) if [ -r "${firewall_type}" ]; then ${fwcmd} ${firewall_flags} ${firewall_type} fi ;; esac |
#GPT boot success/failure reporting.
. /etc/rc.subr . /etc/network.subr afexists inet6 ipv6_available=$? ########fwcmd="/sbin/ipfw -q" ;; # Set quiet mode if requested *) fwcmd="/sbin/ipfw" # ;; esac ${firewall_quiet} in ... # For a more advanced treatment of Internet Security read: # # Firewalls and Internet Security: Repelling the Wily Hacker, 2nd Edition [Uu][Nn][Kk][Nn][Oo][Ww][Nn]) ;; *) if [ -r "${firewall_type}" ]; then ${fwcmd} ${firewall_flags} ${firewall_type} fi ;; esac |
#GPT boot success/failure reporting.
. /etc/rc.subr . /etc/network.subr afexists inet6 ipv6_available=$? ########fwcmd="/sbin/ipfw -q" ;; # Set quiet mode if requested *) fwcmd="/sbin/ipfw" # ;; esac ${firewall_quiet} in ... # For a more advanced treatment of Internet Security read: # # Firewalls and Internet Security: Repelling the Wily Hacker, 2nd Edition [Uu][Nn][Kk][Nn][Oo][Ww][Nn]) ;; *) if [ -r "${firewall_type}" ]; then ${fwcmd} ${firewall_flags} ${firewall_type} fi ;; esac |
#GPT boot success/failure reporting.
. /etc/rc.subr . /etc/network.subr afexists inet6 ipv6_available=$? ########fwcmd="/sbin/ipfw -q" ;; # Set quiet mode if requested *) fwcmd="/sbin/ipfw" # ;; esac ${firewall_quiet} in ... # For a more advanced treatment of Internet Security read: # # Firewalls and Internet Security: Repelling the Wily Hacker, 2nd Edition [Uu][Nn][Kk][Nn][Oo][Ww][Nn]) ;; *) if [ -r "${firewall_type}" ]; then ${fwcmd} ${firewall_flags} ${firewall_type} fi ;; esac |
#GPT boot success/failure reporting.
. /etc/rc.subr . /etc/network.subr afexists inet6 ipv6_available=$? ########fwcmd="/sbin/ipfw -q" ;; # Set quiet mode if requested *) fwcmd="/sbin/ipfw" # ;; esac ${firewall_quiet} in ... # For a more advanced treatment of Internet Security read: # # Firewalls and Internet Security: Repelling the Wily Hacker, 2nd Edition [Uu][Nn][Kk][Nn][Oo][Ww][Nn]) ;; *) if [ -r "${firewall_type}" ]; then ${fwcmd} ${firewall_flags} ${firewall_type} fi ;; esac |
#vim /etc/defaults/rc.conf
|
#vim /etc/defaults/rc.conf
|
#vim /etc/defaults/rc.conf
|
#vim /etc/defaults/rc.conf
|
#vim /etc/defaults/rc.conf
|
#vim /etc/defaults/rc.conf
|
#vim /etc/defaults/rc.conf
|
#vim /etc/defaults/rc.conf
|
#vim /etc/defaults/rc.conf
|
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
geli_devices="" # List of devices to automatically attach in addition to # GELI devices listed in /etc/fstab. geli_tries="" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use. #geli_devices="da1 mirror/home" #geli_da1_flags="-p -k /etc/geli/da1.keys" #geli_da1_autodetach="NO" # swap partitions. ... varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created varmfs_flags="-S" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never cleanvar_enable="YES" # Clean the /var directory local_startup="/usr/local/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces rc_conf_files="/etc/rc.conf /etc/rc.conf.local" # ZFS support zfs_enable="NO" # Set to YES to automatically mount ZFS file systems |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#GPT boot success/failure reporting.
gptboot_enable="YES" # GPT boot success/failure reporting. # Experimental - test before enabling gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab gbde_devices="NO" # Devices to automatically attach (list, or AUTO) gbde_attach_attempts="3"# GELI devices listed in /etc/fstab.ing gbde devices geli_tries="""/etc" # If empty, kern.geom.eli.tries will be used.evice. geli_default_flags="" # Default flags for geli(8). # Providers are marked as such when all file systems are geli_autodetach="YES" # mounted.cally detach on last close. # Example use." # List of devices to automatically attach in addition to ... synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" # firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) |
#Set to YES to suppress rule display
|
#Set to YES to suppress rule display
|
Время первой команды журнала | 14:31:06 2012-12-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:38:58 2012-12-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.95 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.60 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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