/l3/users/27-07-2009/nt-fbsdnet/fbsd6.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 :25 :26 |
|
#sockstat | grep 25
root sendmail 82006 4 tcp4 192.168.16.26:49469 192.168.16.66:25 bind named 9290 25 udp6 *:55099 *:* root xconsole 2503 3 stream -> /tmp/.X11-unix/X0 root sendmail 2429 4 tcp4 127.0.0.1:25 *:* |
#netstat
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 fbsd6.net.nt.49469 192.168.16.66.smtp SYN_SENT tcp4 0 0 fbsd6.net.nt.ssh 192.168.16.211.2111 ESTABLISHED tcp4 0 0 fbsd6.net.nt.vnc1 192.168.16.211.2035 ESTABLISHED udp4 0 0 localhost.net.nt.domai *.* udp4 0 0 fbsd6.net.nt.domain *.* Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3a1d870 stream 0 0 0 c3a1d360 0 0 ... c3a1dbd0 stream 0 0 0 c3a1d480 0 0 c3a1d7e0 stream 0 0 0 c3a1da20 0 0 /tmp/.X11-unix/X0 c3a1da20 stream 0 0 0 c3a1d7e0 0 0 c3a1d510 stream 0 0 c464c220 0 0 0 /tmp/.X11-unix/X0 c3a1dc60 stream 0 0 c4474aa0 0 0 0 /var/run/devd.pipe c3a1d000 dgram 0 0 0 c3a1d240 0 c3a1d3f0 c3a1dea0 dgram 0 0 0 c3a1d5a0 0 0 c3a1d3f0 dgram 0 0 0 c3a1d240 0 0 c3a1d240 dgram 0 0 c447d000 0 c3a1d000 0 /var/run/logpriv c3a1d5a0 dgram 0 0 c447d990 0 c3a1dea0 0 /var/run/log |
#netstat /?
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 fbsd6.net.nt.49469 192.168.16.66.smtp SYN_SENT tcp4 0 0 fbsd6.net.nt.ssh 192.168.16.211.2111 ESTABLISHED tcp4 0 0 fbsd6.net.nt.vnc1 192.168.16.211.2035 ESTABLISHED udp4 0 0 localhost.net.nt.domai *.* udp4 0 0 fbsd6.net.nt.domain *.* Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3a1d870 stream 0 0 0 c3a1d360 0 0 ... c3a1dbd0 stream 0 0 0 c3a1d480 0 0 c3a1d7e0 stream 0 0 0 c3a1da20 0 0 /tmp/.X11-unix/X0 c3a1da20 stream 0 0 0 c3a1d7e0 0 0 c3a1d510 stream 0 0 c464c220 0 0 0 /tmp/.X11-unix/X0 c3a1dc60 stream 0 0 c4474aa0 0 0 0 /var/run/devd.pipe c3a1d000 dgram 0 0 0 c3a1d240 0 c3a1d3f0 c3a1dea0 dgram 0 0 0 c3a1d5a0 0 0 c3a1d3f0 dgram 0 0 0 c3a1d240 0 0 c3a1d240 dgram 0 0 c447d000 0 c3a1d000 0 /var/run/logpriv c3a1d5a0 dgram 0 0 c447d990 0 c3a1dea0 0 /var/run/log |
#netstat /?
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 fbsd6.net.nt.49469 192.168.16.66.smtp SYN_SENT tcp4 0 0 fbsd6.net.nt.ssh 192.168.16.211.2111 ESTABLISHED tcp4 0 0 fbsd6.net.nt.vnc1 192.168.16.211.2035 ESTABLISHED udp4 0 0 localhost.net.nt.domai *.* udp4 0 0 fbsd6.net.nt.domain *.* Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3a1d870 stream 0 0 0 c3a1d360 0 0 ... c3a1dbd0 stream 0 0 0 c3a1d480 0 0 c3a1d7e0 stream 0 0 0 c3a1da20 0 0 /tmp/.X11-unix/X0 c3a1da20 stream 0 0 0 c3a1d7e0 0 0 c3a1d510 stream 0 0 c464c220 0 0 0 /tmp/.X11-unix/X0 c3a1dc60 stream 0 0 c4474aa0 0 0 0 /var/run/devd.pipe c3a1d000 dgram 0 0 0 c3a1d240 0 c3a1d3f0 c3a1dea0 dgram 0 0 0 c3a1d5a0 0 0 c3a1d3f0 dgram 0 0 0 c3a1d240 0 0 c3a1d240 dgram 0 0 c447d000 0 c3a1d000 0 /var/run/logpriv c3a1d5a0 dgram 0 0 c447d990 0 c3a1dea0 0 /var/run/log |
#man dkpg
|
#man dpkg
|
#man dgpk
|
#man dp
|
#man dk
|
#man dgpk
|
#man dpkg
|
#man pkg
|
#man pkg_info
|
#pwd
/etc/mail |
#cd /usr/ports
|
#cd security/
|
#ls
bruteforceblocker libident p5-Digest-DJB radiusniff bsdsfv libksba p5-Digest-DMAC rain bsmtrace libmcrypt p5-Digest-EMAC rainbowcrack bsp_upektfmess libntlm p5-Digest-Elf rarcrack bubblegum libotr p5-Digest-FNV rats bugs libp11 p5-Digest-HMAC rc5pipe ca-roots libparanoia p5-Digest-Hashcash rdigest ca_root_nss libprelude p5-Digest-Haval256 revelation calife libpreludedb p5-Digest-JHash rid calife-devel libsectok p5-Digest-MD2 rkhunter ... hostsentry p5-Crypt-GeneratePassword pinentry xyssl httprint p5-Crypt-HCE_MD5 pinentry-curses yafic hunch p5-Crypt-HCE_SHA pinentry-gtk yersinia hydra p5-Crypt-IDEA pinentry-gtk2 zebedee iaikpkcs11wrapper p5-Crypt-Imail pinentry-qt zombiezapper idea p5-Crypt-Khazad pkcrack zxid ident2 p5-Crypt-License pkcs11-helper zzuf identify p5-Crypt-Lite pks ifd-devkit p5-Crypt-Loki97 pktsuckers ifd-gempc410 p5-Crypt-MySQL poc |
#ls -Fl
drwxr-xr-x 3 root wheel 512 Mar 15 2008 qtfw/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 quintuple-agent/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 racoon2/ drwxr-xr-x 2 root wheel 512 Mar 15 2008 radiusniff/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 rain/ drwxr-xr-x 2 root wheel 512 Mar 15 2008 rainbowcrack/ drwxr-xr-x 2 root wheel 512 Mar 15 2008 rarcrack/ drwxr-xr-x 2 root wheel 512 Mar 15 2008 rats/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 rc5pipe/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 rdigest/ ... drwxr-xr-x 3 root wheel 512 Mar 15 2008 xmlsec/ drwxr-xr-x 2 root wheel 512 Mar 15 2008 xmlsec1/ drwxr-xr-x 2 root wheel 512 Mar 15 2008 xspy/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 xyssl/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 yafic/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 yersinia/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 zebedee/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 zombiezapper/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 zxid/ drwxr-xr-x 3 root wheel 512 Mar 15 2008 zzuf/ |
#cd vpnc
|
#dpkg-info
bash: dpkg-info: command not found |
#dpkg_nfo
bash: dpkg_info: command not found |
#pkg_info
scripts-1.0.1 Various X related scripts scrnsaverproto-1.1.0 ScrnSaver extension headers sdl-1.2.11_1,2 Cross-platform multi-media development API sdocbook-xml-1.1,1 "Simplified" DocBook XML DTD seahorse-2.20.1 GNOME application for managing encryption keys (PGP, SSH) sessreg-1.0.3 Manage utmp/wtmp entries for non-init X clients setxkbmap-1.0.4 Set the keyboard using the X Keyboard Extension sgmlformat-1.7_2 Generates groff and HTML from linuxdoc and docbook SGML doc shared-mime-info-0.22_1 A MIME type database from the FreeDesktop project showfont-1.0.1 Font dumper for the X font server ... xtrans-1.0.4 Abstract network code for X xtrap-1.0.2 XTrap sample clients for X xvid-1.1.3,1 An opensource MPEG-4 codec, based on OpenDivx xvidtune-1.0.1 Video mode tuner for X xvinfo-1.0.2 Print out X-Video extension adaptor information xwd-1.0.1 Dump an image of an X window xwininfo-1.0.3 Window information utility for X xwud-1.0.1 Image displayer for X yelp-2.20.0 A help browser for the GNOME 2 desktop zenity-2.20.0 Display GNOME dialogs from the command line |
#pwd
/usr/ports/security/vpnc |
#cd ..
|
#cd ..
|
#pwd
/usr/ports/security |
#pwd
/usr/ports/security |
#cd ..
|
#cd ..
|
#pkg_info
scripts-1.0.1 Various X related scripts scrnsaverproto-1.1.0 ScrnSaver extension headers sdl-1.2.11_1,2 Cross-platform multi-media development API sdocbook-xml-1.1,1 "Simplified" DocBook XML DTD seahorse-2.20.1 GNOME application for managing encryption keys (PGP, SSH) sessreg-1.0.3 Manage utmp/wtmp entries for non-init X clients setxkbmap-1.0.4 Set the keyboard using the X Keyboard Extension sgmlformat-1.7_2 Generates groff and HTML from linuxdoc and docbook SGML doc shared-mime-info-0.22_1 A MIME type database from the FreeDesktop project showfont-1.0.1 Font dumper for the X font server ... xtrans-1.0.4 Abstract network code for X xtrap-1.0.2 XTrap sample clients for X xvid-1.1.3,1 An opensource MPEG-4 codec, based on OpenDivx xvidtune-1.0.1 Video mode tuner for X xvinfo-1.0.2 Print out X-Video extension adaptor information xwd-1.0.1 Dump an image of an X window xwininfo-1.0.3 Window information utility for X xwud-1.0.1 Image displayer for X yelp-2.20.0 A help browser for the GNOME 2 desktop zenity-2.20.0 Display GNOME dialogs from the command line |
#pkg_info | less
|
#pkg_info | less
|
#cd /
|
#cd /
|
#pwd
/ |
#pwd
/ |
#ls
.cshrc COPYRIGHT compat etc log proc sys xdm.core .mozilla bin dev home media rescue tmp .profile boot dist lib mnt root usr .snap cdrom entropy libexec moused.core sbin var |
#ls
.cshrc COPYRIGHT compat etc log proc sys xdm.core .mozilla bin dev home media rescue tmp .profile boot dist lib mnt root usr .snap cdrom entropy libexec moused.core sbin var |
#pkg_info
scripts-1.0.1 Various X related scripts scrnsaverproto-1.1.0 ScrnSaver extension headers sdl-1.2.11_1,2 Cross-platform multi-media development API sdocbook-xml-1.1,1 "Simplified" DocBook XML DTD seahorse-2.20.1 GNOME application for managing encryption keys (PGP, SSH) sessreg-1.0.3 Manage utmp/wtmp entries for non-init X clients setxkbmap-1.0.4 Set the keyboard using the X Keyboard Extension sgmlformat-1.7_2 Generates groff and HTML from linuxdoc and docbook SGML doc shared-mime-info-0.22_1 A MIME type database from the FreeDesktop project showfont-1.0.1 Font dumper for the X font server ... xtrans-1.0.4 Abstract network code for X xtrap-1.0.2 XTrap sample clients for X xvid-1.1.3,1 An opensource MPEG-4 codec, based on OpenDivx xvidtune-1.0.1 Video mode tuner for X xvinfo-1.0.2 Print out X-Video extension adaptor information xwd-1.0.1 Dump an image of an X window xwininfo-1.0.3 Window information utility for X xwud-1.0.1 Image displayer for X yelp-2.20.0 A help browser for the GNOME 2 desktop zenity-2.20.0 Display GNOME dialogs from the command line |
#pkg_info
scripts-1.0.1 Various X related scripts scrnsaverproto-1.1.0 ScrnSaver extension headers sdl-1.2.11_1,2 Cross-platform multi-media development API sdocbook-xml-1.1,1 "Simplified" DocBook XML DTD seahorse-2.20.1 GNOME application for managing encryption keys (PGP, SSH) sessreg-1.0.3 Manage utmp/wtmp entries for non-init X clients setxkbmap-1.0.4 Set the keyboard using the X Keyboard Extension sgmlformat-1.7_2 Generates groff and HTML from linuxdoc and docbook SGML doc shared-mime-info-0.22_1 A MIME type database from the FreeDesktop project showfont-1.0.1 Font dumper for the X font server ... xtrans-1.0.4 Abstract network code for X xtrap-1.0.2 XTrap sample clients for X xvid-1.1.3,1 An opensource MPEG-4 codec, based on OpenDivx xvidtune-1.0.1 Video mode tuner for X xvinfo-1.0.2 Print out X-Video extension adaptor information xwd-1.0.1 Dump an image of an X window xwininfo-1.0.3 Window information utility for X xwud-1.0.1 Image displayer for X yelp-2.20.0 A help browser for the GNOME 2 desktop zenity-2.20.0 Display GNOME dialogs from the command line |
#pkg_info
scripts-1.0.1 Various X related scripts scrnsaverproto-1.1.0 ScrnSaver extension headers sdl-1.2.11_1,2 Cross-platform multi-media development API sdocbook-xml-1.1,1 "Simplified" DocBook XML DTD seahorse-2.20.1 GNOME application for managing encryption keys (PGP, SSH) sessreg-1.0.3 Manage utmp/wtmp entries for non-init X clients setxkbmap-1.0.4 Set the keyboard using the X Keyboard Extension sgmlformat-1.7_2 Generates groff and HTML from linuxdoc and docbook SGML doc shared-mime-info-0.22_1 A MIME type database from the FreeDesktop project showfont-1.0.1 Font dumper for the X font server ... xtrans-1.0.4 Abstract network code for X xtrap-1.0.2 XTrap sample clients for X xvid-1.1.3,1 An opensource MPEG-4 codec, based on OpenDivx xvidtune-1.0.1 Video mode tuner for X xvinfo-1.0.2 Print out X-Video extension adaptor information xwd-1.0.1 Dump an image of an X window xwininfo-1.0.3 Window information utility for X xwud-1.0.1 Image displayer for X yelp-2.20.0 A help browser for the GNOME 2 desktop zenity-2.20.0 Display GNOME dialogs from the command line |
#pkg_info
scripts-1.0.1 Various X related scripts scrnsaverproto-1.1.0 ScrnSaver extension headers sdl-1.2.11_1,2 Cross-platform multi-media development API sdocbook-xml-1.1,1 "Simplified" DocBook XML DTD seahorse-2.20.1 GNOME application for managing encryption keys (PGP, SSH) sessreg-1.0.3 Manage utmp/wtmp entries for non-init X clients setxkbmap-1.0.4 Set the keyboard using the X Keyboard Extension sgmlformat-1.7_2 Generates groff and HTML from linuxdoc and docbook SGML doc shared-mime-info-0.22_1 A MIME type database from the FreeDesktop project showfont-1.0.1 Font dumper for the X font server ... xtrans-1.0.4 Abstract network code for X xtrap-1.0.2 XTrap sample clients for X xvid-1.1.3,1 An opensource MPEG-4 codec, based on OpenDivx xvidtune-1.0.1 Video mode tuner for X xvinfo-1.0.2 Print out X-Video extension adaptor information xwd-1.0.1 Dump an image of an X window xwininfo-1.0.3 Window information utility for X xwud-1.0.1 Image displayer for X yelp-2.20.0 A help browser for the GNOME 2 desktop zenity-2.20.0 Display GNOME dialogs from the command line |
#man pkg_add
|
#man pkg_add
|
#ee /etc/mail/sendmail.cf
|
#mzn mv
bash: mzn: command not found |
#ma mv
MV(1) FreeBSD General Commands Manual MV(1) NAME mv -- move files SYNOPSIS mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory DESCRIPTION In its first form, the mv utility renames the file named by the source operand to the destination path named by the target operand. This form is assumed when the last operand does not name an already existing direc- ... rm -f destination_path && \ cp -pRP source_file destination && \ rm -rf source_file EXIT STATUS The mv utility exits 0 on success, and >0 if an error occurs. COMPATIBILITY The -n and -v options are non-standard and their use in scripts is not recommended. SEE ALSO cp(1), rm(1), symlink(7) |
#man &&
|
#man
|
#man 1
|
#man 1 1
|
#man 11
|
#man 1
|
#man man
|
#man man
|
#man -f &&
|
#man && ping
|
#man |ing
What manual page do you want? usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize] [-g sweepminsize] [-h sweepincrsize] [-i wait] [-l preload] [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout] [-W waittime] [-z tos] host ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload] [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime] [-z tos] mcast-group |
#man | ping 192.168.16.254
What manual page do you want? PING 192.168.16.254 (192.168.16.254): 56 data bytes 64 bytes from 192.168.16.254: icmp_seq=0 ttl=64 time=0.275 ms 64 bytes from 192.168.16.254: icmp_seq=1 ttl=64 time=0.194 ms 64 bytes from 192.168.16.254: icmp_seq=2 ttl=64 time=0.160 ms ^C --- 192.168.16.254 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.160/0.210/0.275/0.048 ms |
#man &&ing 192.168.16.254
|
#clear
|
#cd /etc/rc.d
|
#ls -l
total 370 -r-xr-xr-x 1 root wheel 292 Jan 16 2008 DAEMON -r-xr-xr-x 1 root wheel 405 Jan 16 2008 FILESYSTEMS -r-xr-xr-x 1 root wheel 454 Jan 16 2008 LOGIN -r-xr-xr-x 1 root wheel 400 Jan 16 2008 NETWORKING -r-xr-xr-x 1 root wheel 304 Jan 16 2008 SERVERS -r-xr-xr-x 1 root wheel 750 Jan 16 2008 abi -r-xr-xr-x 1 root wheel 1011 Jan 16 2008 accounting -r-xr-xr-x 1 root wheel 540 Jan 16 2008 addswap -r-xr-xr-x 1 root wheel 289 Jan 16 2008 adjkerntz ... -r-xr-xr-x 1 root wheel 3132 Jan 16 2008 var -r-xr-xr-x 1 root wheel 1664 Jan 16 2008 virecover -r-xr-xr-x 1 root wheel 1660 Jan 16 2008 watchdogd -r-xr-xr-x 1 root wheel 597 Jan 16 2008 wpa_supplicant -r-xr-xr-x 1 root wheel 670 Jan 16 2008 ypbind -r-xr-xr-x 1 root wheel 841 Jan 16 2008 yppasswdd -r-xr-xr-x 1 root wheel 754 Jan 16 2008 ypserv -r-xr-xr-x 1 root wheel 723 Jan 16 2008 ypset -r-xr-xr-x 1 root wheel 733 Jan 16 2008 ypupdated -r-xr-xr-x 1 root wheel 742 Jan 16 2008 ypxfrd |
#ls -l | less
|
#ls -lF less
-r-xr-xr-x 1 root wheel 2804 Jan 16 2008 ipfilter* total 370 -r-xr-xr-x 1 root wheel 292 Jan 16 2008 DAEMON* -r-xr-xr-x 1 root wheel 405 Jan 16 2008 FILESYSTEMS* -r-xr-xr-x 1 root wheel 454 Jan 16 2008 LOGIN* -r-xr-xr-x 1 root wheel 400 Jan 16 2008 NETWORKING* -r-xr-xr-x 1 root wheel 304 Jan 16 2008 SERVERS* -r-xr-xr-x 1 root wheel 750 Jan 16 2008 abi* -r-xr-xr-x 1 root wheel 1011 Jan 16 2008 accounting* -r-xr-xr-x 1 root wheel 540 Jan 16 2008 addswap* ... -r-xr-xr-x 1 root wheel 1227 Jan 16 2008 nfslocking* -r-xr-xr-x 1 root wheel 540 Jan 16 2008 nfsserver* -r-xr-xr-x 1 root wheel 1828 Jan 16 2008 nisdomain* -r-xr-xr-x 1 root wheel 3802 Jan 16 2008 nsswitch* -r-xr-xr-x 1 root wheel 1290 Jan 16 2008 ntpd* -r-xr-xr-x 1 root wheel 646 Jan 16 2008 ntpdate* -r-xr-xr-x 1 root wheel 350 Jan 16 2008 othermta* -r-xr-xr-x 1 root wheel 2177 Jan 16 2008 pccard* -r-xr-xr-x 1 root wheel 5047 Jan 16 2008 pcvt* -r-xr-xr-x 1 root wheel 1503 Jan 16 2008 pf* |
#ls -lF | le
|
#ee sendmail
|
#ssh dimashevchuk.com.ua -p 10222
The authenticity of host '[dimashevchuk.com.ua]:10222 ([92.249.122.111]:10222)' can't be established. DSA key fingerprint is ec:07:d4:5e:f1:42:59:98:ce:26:d1:bd:10:52:95:b3. Are you sure you want to continue connecting (yes/no)? ^C |
#ssh -p 10222
The authenticity of host '[dimashevchuk.com.ua]:10222 ([92.249.122.111]:10222)' can't be established. DSA key fingerprint is ec:07:d4:5e:f1:42:59:98:ce:26:d1:bd:10:52:95:b3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[dimashevchuk.com.ua]:10222' (DSA) to the list of known hosts. Password: |
#ssh -p 10222
The authenticity of host '[dimashevchuk.com.ua]:10222 ([92.249.122.111]:10222)' can't be established. DSA key fingerprint is ec:07:d4:5e:f1:42:59:98:ce:26:d1:bd:10:52:95:b3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[dimashevchuk.com.ua]:10222' (DSA) to the list of known hosts. Password: |
#ssh user@dimashevchuk.com.ua -p 10222
Password: Last login: Tue Aug 11 00:47:35 2009 from relay02.techexp Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-RELEASE (GENERIC) #0: Sun Feb 24 19:59:52 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
$exit
exit Connection to 127.0.0.1 closed. $ exit Connection to dimashevchuk.com.ua closed. |
#pkgnfo
gstreamer-plugins-vorbis-0.10.14_3,3 Gstreamer vorbis encoder/decoder plugin gstreamer-plugins-xvid-0.10.5_1,3 Gstreamer xvid plugin gtar-1.18_1 GNU version of the traditional tar archiver gtk-2.12.1_1 Gimp Toolkit for X11 GUI (current stable version) gtk-engines2-2.12.2 Theme engine for the gtk+-2.0 toolkit gtk-sharp-2.10.2_1 GTK+ and GNOME interfaces for the .NET runtime gtk-xfce-engine-2.4.1_1 An XFCE engine for GTK 2.0 gtkhtml3-3.16.1 Lightweight HTML rendering/printing/editing engine gtkmm-2.12.1 C++ wrapper for Gtk+, Pango, Atk gtksourceview-1.8.5_2 A text widget that adds syntax highlighting to the GtkTextV ... metacity-2.20.0 A window manager for the adult in you mime-support-3.39.1 MIME Media Types list mkcomposecache-1.2_1 Program to create Compose cache files mkfontdir-1.0.3 Create an index of X font files in a directory mkfontscale-1.0.3 Creates an index of scalable font files for X mono-1.2.5.1 An open source implementation of .NET Development Framework monodoc-1.2.5 Documentation for Mono and Mono libraries mousepad-0.2.12_2 Simple xfce editor mutt-1.4.2.3_1 The Mongrel of Mail User Agents (part Elm, Pine, Mush, mh, nautilus-2.20.0 File manager for the GNOME desktop |
#man pkg_info
|
#pkg_info -a
gstreamer-plugins-hal-0.10.6_1,3 gtksourceview-1.8.5_2 py25-gnome-2.20.0 totem-2.20.1 py25-gnome-desktop-2.20.0 alacarte-0.11.3_2 dasher-4.6.1,1 py25-dbus-0.82.3 deskbar-applet-2.20.1 ekiga-2.0.9_1 ... Comment: A client for managing and downloading certificate revocation lists Required by: gnupg-2.0.4 seahorse-2.20.1 gnome2-2.20.1 p5-Mail-SpamAssassin-3.2.3 Description: Dirmngr is a client for managing and downloading certificate revocation lists (CRLs) for X509 certificates and for downloading the |
#pkg_info -a | grep sendmail
clamav with sendmail. Unix mail and sendmail commands, reading mbox mail boxes, and |
#man pkg_info
|
#pkg_info -i namedb
pkg_info: can't find package 'namedb' installed or in a file! |
#pkg_info -i named
pkg_info: can't find package 'named' installed or in a file! |
#pkg_info -i bind
pkg_info: can't find package 'bind' installed or in a file! |
#pkg_info -i clamav
pkg_info: can't find package 'clamav' installed or in a file! |
#pkg_info -i spam*
pkg_info: can't find package 'spam*' installed or in a file! |
#ps aux | grep l3-agent
root 9094 0,3 1,7 11184 8920 ?? Ss 19:19 1:03,44 l3-agent (perl5.8 root 17458 0,1 1,7 11168 8808 ?? Ss 20:00 0:37,48 l3-agent (perl5.8 root 2510 0,0 1,8 11540 9116 ?? Ss ×Ô19 1:39,57 l3-agent (perl5.8 user 6751 0,0 1,7 11136 8748 ?? Ss 18:15 1:33,32 l3-agent (perl5.8 user 6842 0,0 1,8 11572 9156 ?? Ss 18:17 1:31,83 l3-agent (perl5.8 user 7575 0,0 1,7 10828 8452 ?? Ss 18:26 1:31,25 l3-agent (perl5.8 root 7648 0,0 1,8 11676 9304 ?? Ss 18:27 1:24,01 l3-agent (perl5.8 user 82999 0,0 1,4 8860 7084 ?? Ss 22:14 0:11,87 l3-agent (perl5.8 |
#ps aux | grep l3
root 2510 0,1 1,8 11540 9116 ?? Ss ×Ô19 1:39,73 l3-agent (perl5.8.8) user 6751 0,0 1,7 11136 8748 ?? Ss 18:15 1:33,32 l3-agent (perl5.8.8) user 6842 0,0 1,8 11572 9156 ?? Ss 18:17 1:31,84 l3-agent (perl5.8.8) user 7575 0,0 1,7 10828 8452 ?? Ss 18:26 1:31,26 l3-agent (perl5.8.8) root 7648 0,0 1,8 11676 9304 ?? Ss 18:27 1:24,05 l3-agent (perl5.8.8) root 9094 0,0 1,7 11184 8924 ?? Ss 19:19 1:03,49 l3-agent (perl5.8.8) root 17458 0,0 1,7 11168 8812 ?? Ss 20:00 0:37,53 l3-agent (perl5.8.8) user 82999 0,0 1,4 8860 7084 ?? Ss 22:14 0:11,88 l3-agent (perl5.8.8) |
#ps aux | grep l3 | awk '{print $2}'
7648 17458 2510 6751 6842 7575 9094 82999 |
#kill -9 grep l3 | awk '{print $2}'`
bash: kill: (86499) - No such process |
#ps aux | grep l3
|
#l3-agent
Removing stale pidfile |
#shutdown -r now
Shutdown NOW! shutdown: [pid 87096] wall: /dev/:2: No such file or directory |
#pkg_info -a | grep mail
WWW: http://www.inf.enst.fr/~demaille/a2ps/ clamav with sendmail. An integrated mail, calendar and address book distributed suite management solution for UNIX. Evolution seamlessly integrates email, create and save powerful contextual views of email messages. The data backends for the Evolution integrated mail/PIM suite Evolution integrated mail/PIM suite, including the Berkeley database users can access public folders, Global Address Lists, email, calendar, our electronic mailing list. Mailing list members are notified of updates part slrn, part everything else) is an interactive screen-oriented mailer ... Perl5 modules for dealing with Internet e-mail messages e-mail messages. parsing e-mail addresses, parsing mailcap files, manipulating Unix mail and sendmail commands, reading mbox mail boxes, and Razor Filtering Agents (end-users and MTAs) check their incoming mail against speech data (e.g. voice mail), and audio books. In some sense, it is There is a mailing list that receives announcements whenever a new This package contains xbiff, which displays a little image of a mailbox in the X Window System. The flag on the mailbox is down when there is no mail, and the flag goes up when new mail arrives. |
#cd /usr/ports
|
#cd mail
|
#ls
kiltdown raysfilter kshowmail razor-agents lbdb rbl-milter lens rblcheck libdomainkeys regm libesmtp relay-ctrl libetpan relaydb libnewmail renattach libpst reply-o-matic librfc822 rftp ... p5-IMAP-Client xfce4-mailwatch-plugin p5-IMAP-Sieve xfmail p5-LMAP-CID2SPF xlbiff p5-Log-Procmail xmail p5-MIME-Charset xmailbox p5-MIME-EncWords xmailwatcher p5-MIME-Explode xpbiff p5-MIME-Fast xpi-displayquota p5-MIME-Lite zabit p5-MIME-Lite-HTML zmailer |
#ls | less
|
#ls
Makefile distinfo pkg-descr pkg-plist bsd.milter.mk files pkg-message |
#pkg_info -i
pkg_info: missing package name(s) usage: pkg_info [-bcdDEfgGiIjkKLmopPqQrRsvVxX] [-e package] [-l prefix] [-t template] -a | pkg-name ... pkg_info [-qQ] -W filename pkg_info [-qQ] -O origin pkg_info |
#pkg_info
scripts-1.0.1 Various X related scripts scrnsaverproto-1.1.0 ScrnSaver extension headers sdl-1.2.11_1,2 Cross-platform multi-media development API sdocbook-xml-1.1,1 "Simplified" DocBook XML DTD seahorse-2.20.1 GNOME application for managing encryption keys (PGP, SSH) sessreg-1.0.3 Manage utmp/wtmp entries for non-init X clients setxkbmap-1.0.4 Set the keyboard using the X Keyboard Extension sgmlformat-1.7_2 Generates groff and HTML from linuxdoc and docbook SGML doc shared-mime-info-0.22_1 A MIME type database from the FreeDesktop project showfont-1.0.1 Font dumper for the X font server ... xtrans-1.0.4 Abstract network code for X xtrap-1.0.2 XTrap sample clients for X xvid-1.1.3,1 An opensource MPEG-4 codec, based on OpenDivx xvidtune-1.0.1 Video mode tuner for X xvinfo-1.0.2 Print out X-Video extension adaptor information xwd-1.0.1 Dump an image of an X window xwininfo-1.0.3 Window information utility for X xwud-1.0.1 Image displayer for X yelp-2.20.0 A help browser for the GNOME 2 desktop zenity-2.20.0 Display GNOME dialogs from the command line |
#man pkg_info
|
Время первой команды журнала | 19:53:46 2009- 8-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:34:35 2009- 8-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 28.71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.94 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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