/l3/trainings/nt-ladm/2006-01-23/linux3.linux.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
$ll
итого 68 -rw-r--r-- 1 user user 3845 Дек 6 2003 base drwxr-xr-x 2 user user 4096 Дек 6 2003 bin -rw-r--r-- 1 user user 12718 Дек 6 2003 body drwxr-xr-x 2 user user 4096 Дек 6 2003 c drwxr-xr-x 2 user user 4096 Янв 20 16:59 Desktop drwxr-xr-x 3 user user 4096 Дек 6 2003 files drwxr-xr-x 2 user user 4096 Дек 6 2003 names drwxr-xr-x 3 user user 4096 Дек 6 2003 proj drwxr-xr-x 2 user user 4096 Дек 6 2003 projectX drwxr-xr-x 2 user user 4096 Дек 6 2003 sh drwxr-xr-x 2 user user 4096 Янв 20 16:56 Templates drwxr-xr-x 4 user user 4096 Дек 6 2003 test drwxr-xr-x 2 user user 4096 Дек 6 2003 text -rw-r--r-- 1 user user 18 Дек 6 2003 touchlist -rw-r--r-- 1 user user 0 Дек 6 2003 very_long_file_name |
$cd /
|
$pwd
/home/user |
$cd /
|
$whoiam
bash: whoiam: command not found |
$loganme
bash: loganme: command not found |
$logname
logname: no login name |
$uname -a
Linux linux3.linux.nt 2.6.9-1.667asp #1 Fri Nov 12 22:29:40 EET 2004 i686 i686 i386 GNU/Linux |
$uname -a
Linux linux3.linux.nt 2.6.9-1.667asp #1 Fri Nov 12 22:29:40 EET 2004 i686 i686 i386 GNU/Linux |
$cat /etc/issue
ASPLinux release 10 (Karelia) Kernel 2.6.9-1.667asp on an i686 |
$cat /etc/issue
ASPLinux release 10 (Karelia) Kernel 2.6.9-1.667asp on an i686 cat /etc/issue - UNIX Invitation can be changed |
$rpm gif /lib/
RPM версия 4.3.1 Copyright (C) 1998-2002 - Red Hat, Inc. Эту программу можно свободно распространять на условиях GNU GPL Использование: rpm [-aKfgpqV] [-aKfgpqVcdils] [-aKfgpqVcdilsaKfgpqV] [-aKfgpqVcdilsaKfgpqV] [-aKfgpqVcdilsaKfgpqVK] [-aKfgpqVcdilsaKfgpqVK] [-aKfgpqVcdilsaKfgpqVKi] [-aKfgpqVcdilsaKfgpqVKiv] [-aKfgpqVcdilsaKfgpqVKiv] [-aKfgpqVcdilsaKfgpqVKiv?] [-a|--all] [-f|--file] [-g|--group] [-p|--package] [--specfile] [--whatrequires] [--whatprovides] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list] [--queryformat=QUERYFORMAT] [-s|--state] [--nomd5] [--nofiles] [--nodeps] [--noscript] [--addsign] [-K|--checksig] [--import] [--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb] [--aid] [--allfiles] [--allmatches] [--badreloc] ... [-D|--define 'MACRO EXPR'] [-E|--eval 'EXPR'] [--macros=<FILE:...>] [--nodigest] [--nosignature] [--rcfile=<FILE:...>] [-r|--root ROOT] [--querytags] [--showrc] [--quiet] [-v|--verbose] [--version] [-?|--help] [--usage] [--scripts] [--setperms] [--setugids] [--conflicts] [--obsoletes] [--provides] [--requires] [--info] [--changelog] [--triggers] [--last] [--filesbypkg] [--fileclass] [--filecolor] [--filecontext] [--fscontext] [--recontext] [--fileprovide] [--filerequire] [--redhatprovides] [--redhatrequires] [--buildpolicy=<правило>] [--with=<параметр>] [--without=<параметр>] |
$rpm -gif /lib/
rpm: за один раз может быть исполнен только один тип проверки или запроса |
$лrpm -gif /lib/
rpm: за один раз может быть исполнен только один тип проверки или запроса |
$hostname
linux3.linux.nt |
$pwd
/home/user |
$cat /etc/pro
profile profile.d/ protocols |
$cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 1 model name : Intel(R) Celeron(R) CPU 1.80GHz stepping : 3 cpu MHz : 1800.848 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 3547.13 |
$free
total used free shared buffers cached Mem: 1027772 360780 666992 0 19352 172852 -/+ buffers/cache: 168576 859196 Swap: 1024088 0 1024088 |
$cat /proc/ide/hd
hda/ hdc/ |
$cat /proc/ide/hda/model
WDC WD400BB-23FJA0 |
$cat /proc/ide/hda/capacity
78156288 |
$ghg
Display all 3077 possibilities? (y or n) |
$/etc/cron.weekly/0
bash: /etc/cron.weekly/0: No such file or directory |
$/etc/cron.weekly/00-makewhatis.cron
touch: невозможно выполнить touch для `/var/lock/makewhatis.lock': Permission denied cp: невозможно создать обычный файл `/var/cache/man/whatis': Permission denied /usr/bin/makewhatis: line 385: /var/cache/man/whatis: No such file or directory chmod: невозможно получить доступ к `/var/cache/man/whatis': No such file or directory /usr/bin/makewhatis: line 385: /var/cache/man/whatis: No such file or directory chmod: невозможно получить доступ к `/var/cache/man/whatis': No such file or directory [1]+ Stopped /etc/cron.weekly/00-makewhatis.cron |
$kill %1
Terminated [1]+ Terminated /etc/cron.weekly/00-makewhatis.cron |
$su
Password: /usr/bin/makewhatis: line 385: /tmp/whatis.Nh3451: No such file or directory /usr/bin/makewhatis: line 385: /var/cache/man/whatis: No such file or directory chmod: невозможно получить доступ к `/var/cache/man/whatis': No such file or directory |
#top
top - 10:48:45 up 51 min, 2 users, load average: 1.07, 0.39, 0.22 Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie Cpu(s): 63.3% us, 35.7% sy, 0.0% ni, 0.0% id, 0.7% wa, 0.3% hi, 0.0% si Mem: 1027772k total, 381820k used, 645952k free, 21704k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1024088k total, 0k used, 1024088k free, 182428k cached 3434 user 25 0 4932 1368 3932 S 4.0 0.1 0:03.22 makewhatis 2456 root 15 0 171m 38m 138m S 1.3 3.8 0:37.76 X 1985 root 16 0 6424 3952 3020 S 0.3 0.4 0:01.20 hald 2871 user 15 0 42124 17m 21m S 0.3 1.8 0:19.35 gnome-terminal ... 27 root 15 0 0 0 0 S 0.0 0.0 0:00.01 pdflush 29 root 11 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0 17 root 25 0 0 0 0 S 0.0 0.0 0:00.00 khubd 28 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0 102 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod 182 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 948 root 6 -10 2344 436 1288 S 0.0 0.0 0:00.00 udevd 1146 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald 1147 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 1148 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald |
#kill 3434
|
#top
top - 10:48:58 up 51 min, 2 users, load average: 1.28, 0.47, 0.24 Tasks: 82 total, 3 running, 79 sleeping, 0 stopped, 0 zombie Cpu(s): 68.1% us, 30.2% sy, 0.0% ni, 0.0% id, 1.7% wa, 0.0% hi, 0.0% si Mem: 1027772k total, 384772k used, 643000k free, 21808k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1024088k total, 0k used, 1024088k free, 185144k cached 2696 user 17 0 9540 5812 5132 R 20.6 0.6 0:04.39 l3-agent 3434 user 25 0 4932 1368 3932 S 3.7 0.1 0:03.75 makewhatis 2456 root 15 0 171m 38m 138m S 1.7 3.8 0:37.99 X 2871 user 15 0 42124 17m 21m S 0.3 1.8 0:19.41 gnome-terminal ... 29 root 11 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0 17 root 25 0 0 0 0 S 0.0 0.0 0:00.00 khubd 28 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0 102 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod 182 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 948 root 6 -10 2344 436 1288 S 0.0 0.0 0:00.00 udevd 1146 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald 1147 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 1148 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 1149 root 15 0 0 0 0 S 0.0 0.0 0:00.02 kjournald |
#kill -9 3434
|
#top
top - 10:49:07 up 51 min, 2 users, load average: 1.23, 0.49, 0.25 Tasks: 80 total, 1 running, 79 sleeping, 0 stopped, 0 zombie Cpu(s): 6.7% us, 2.2% sy, 0.0% ni, 90.1% id, 0.9% wa, 0.1% hi, 0.0% si Mem: 1027772k total, 385228k used, 642544k free, 21872k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1024088k total, 0k used, 1024088k free, 186020k cached 15838 root 16 0 2364 880 1620 R 1.9 0.1 0:00.01 top 1 root 20 0 1992 524 1312 S 0.0 0.1 0:01.01 init 2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0 3 root 5 -10 0 0 0 S 0.0 0.0 0:00.01 events/0 ... 102 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod 182 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 948 root 6 -10 2344 436 1288 S 0.0 0.0 0:00.00 udevd 1146 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald 1147 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 1148 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 1149 root 15 0 0 0 0 S 0.0 0.0 0:00.02 kjournald 1563 root 16 0 2816 564 1300 S 0.0 0.1 0:00.09 syslogd 1567 root 16 0 3296 448 1248 S 0.0 0.0 0:00.01 klogd 1588 rpc 15 0 3072 568 1376 S 0.0 0.1 0:00.00 portmap |
#cd /
|
#/etc/cron.weekly/00-makewhatis.cron
|
#quit
bash: quit: command not found |
#exit
exit |
$man patch
www.centos.org - non comercial =RedHat= |
$apropos user | egrep -i 'delete|remove|erase'
userdel (8) - Delete a user account and related files |
$whatis intro
intro (1) - Introduction to user commands intro (2) - Introduction to system calls intro (3) - Introduction to library functions intro (4) - Introduction to special files intro (5) - Introduction to file formats intro (6) - Introduction to games intro (7) - Introduction to conventions and miscellany section intro (8) - Introduction to administration and privileged commands |
$ma nls
bash: ma: command not found |
$man ls
|
$echo $LANG
ru_RU.UTF-8 |
$dp
dprof2calltree dprofpp dpsexec dpsinfo |
$cat /etc/sysconfig/i18n
LANG="ru_RU.UTF-8" SYSFONT="latarcyrheb-sun16" SYSFONTACM="" |
$cat /etc/sysconfig/keyboard
KEYTABLE=ruwin_UTF-8:CTRL_SHFT |
$cat /etc/X11/
applnk/ lbxproxy/ starthere/ xdm/ xorg.conf dm/ prefdm sysconfig/ xinit/ Xresources fs/ proxymngr/ twm/ xkb/ xserver/ gdm/ serverconfig/ X Xmodmap xsm/ |
$less cat /etc/X11/xorg.conf
|
$less cat /etc/X11/xkb/
|
$less cat /etc/X11/xkb/key
|
$find /etc/X11/xkb/keymap
/etc/X11/xkb/keymap /etc/X11/xkb/keymap/digital /etc/X11/xkb/keymap/digital/us /etc/X11/xkb/keymap/README /etc/X11/xkb/keymap/amiga /etc/X11/xkb/keymap/ataritt /etc/X11/xkb/keymap/sgi /etc/X11/xkb/keymap/sgi/cz_qwerty /etc/X11/xkb/keymap/sgi/be /etc/X11/xkb/keymap/sgi/bg ... /etc/X11/xkb/keymap/sun/fi /etc/X11/xkb/keymap/sun/fr /etc/X11/xkb/keymap/sun/no /etc/X11/xkb/keymap/sun/pl /etc/X11/xkb/keymap/sun/ru /etc/X11/xkb/keymap/sun/se /etc/X11/xkb/keymap/sun/uk /etc/X11/xkb/keymap/sun/us /etc/X11/xkb/keymap/xfree86 /etc/X11/xkb/keymap/xfree98 |
$find /etc/X11/xkb/keymap
keymap/ keymap.dir |
$find /etc/X11/xkb/keymap/
amiga digital/ README sony xfree86 ataritt macintosh sgi/ sun/ xfree98 |
$find /etc/X11/
applnk/ lbxproxy/ starthere/ xdm/ xorg.conf dm/ prefdm sysconfig/ xinit/ Xresources fs/ proxymngr/ twm/ xkb/ xserver/ gdm/ serverconfig/ X Xmodmap xsm/ |
$find /etc/X11/xkb/
compat/ keycodes/ README.config symbols.dir compat.dir keycodes.dir README.enhancing types/ compiled/ keymap/ rules/ types.dir geometry/ keymap.dir semantics/ xkbcomp geometry.dir README symbols/ |
$find /etc/X11/xkb/keymap
keymap/ keymap.dir |
$find /etc/X11/xkb/keymap/
amiga digital/ README sony xfree86 ataritt macintosh sgi/ sun/ xfree98 |
$cd /
|
$ll
итого 88 drwxr-xr-x 2 root root 4096 Янв 23 11:26 bin drwxr-xr-x 4 root root 4096 Янв 20 06:54 boot drwxr-xr-x 10 root root 4980 Янв 23 09:58 dev drwxr-xr-x 91 root root 8192 Янв 23 11:27 etc drwxr-xr-x 4 root root 4096 Янв 20 16:56 home drwxr-xr-x 2 root root 4096 Июл 13 2004 initrd drwxr-xr-x 11 root root 4096 Янв 23 11:20 lib drwx------ 2 root root 16384 Янв 20 06:31 lost+found drwxr-xr-x 4 root root 4096 Янв 23 09:58 media ... drwxr-xr-x 2 root root 4096 Июл 13 2004 opt dr-xr-xr-x 102 root root 0 Янв 23 11:57 proc drwxr-x--- 13 root root 4096 Янв 23 11:01 root drwxr-xr-x 2 root root 8192 Янв 23 11:27 sbin drwxr-xr-x 2 root root 4096 Июл 13 2004 selinux lrwxrwxrwx 1 1000 1000 30 Янв 21 19:07 skeleton -> ../../nt-ladm/INSTALL/skeleton drwxr-xr-x 9 root root 0 Янв 23 11:57 sys drwxrwxrwt 15 root root 4096 Янв 23 11:36 tmp drwxr-xr-x 16 root root 4096 Янв 20 06:54 usr drwxr-xr-x 20 root root 4096 Янв 20 06:48 var |
$cat /root/mymotd
cat: /root/mymotd: Permission denied |
$sudo cat /root/mymotd
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these two things: #1) Respect the privacy of others. #2) Think before you type. Password: Sorry, try again. Password: sudo: 1 incorrect password attempt |
$sudo cat /root/mymotd
Password: Sorry, try again. Password: Sorry, try again. Password: ^XSorry, try again. sudo: 3 incorrect password attempts |
$cat /root/mymotd
cat: /root/mymotd: Permission denied |
$su
bash: suat: command not found |
$su
Password: |
#exit
exit |
$sudo cat /root/mymotd
Password: ÷ÁÓ ÐÒÉ×ÅÔÓÔ×ÕÅÔ ÕÞÅÂÎÙÊ ÃÅÎÔÒ óÅÔÅ×ÙÅ ôÅÈÎÏÌÏÇÉÉ. äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ × ÓÉÓÔÅÍÕ! |
$sudo cat /root/mymotd | iconv -f UTF-8 -t KOI8-R
iconv: illegal input sequence at position 0 |
$sudo cat /root/mymotd | iconv -f KOI8-R -t UTF-8
Вас приветствует учебный центр Сетевые Технологии. Добро пожаловать в систему! |
$echo $LANG
ru_RU.UTF-8 |
$whatis ls
ls (1) - list directory contents |
$apropos ls
set_thread_area (2) - Set a Thread Local Storage (TLS) area setusershell [getusershell] (3) - get legal user shells SGBSV [sgbsv] (l) - compute the solution to a real system of linear equations A * X = B, where A is a band matrix of order N with KL subdiagonals and KU superdiagonals, and X and B are N-by-NRHS matrices SGELSD [sgelsd] (l) - compute the minimum-norm solution to a real linear least squares problem SGELS [sgels] (l) - solve overdetermined or underdetermined real linear systems involving an M-by-N matrix A, or its transpose, using a QR or LQ factorization of A SGELSS [sgelss] (l) - compute the minimum norm solution to a real linear least squares problem SGELSX [sgelsx] (l) - routine is deprecated and has been replaced by routine SGELSY SGELSY [sgelsy] (l) - compute the minimum-norm solution to a real linear least squares problem SGGLSE [sgglse] (l) - solve the linear equality-constrained least squares (LSE) problem sgmlpre (1) - handle SGML conditionalization for SGML-tools ... ZLALSA [zlalsa] (l) - i an itermediate step in solving the least squares problem by computing the SVD of the coefficient matrix in compact form (The singular vectors are computed as products of simple orthorgonal matrices.) ZLALSD [zlalsd] (l) - use the singular value decomposition of A to solve the least squares problem of finding X to minimize the Euclidean norm of each column of A*X-B, where A is N-by-N upper bidiagonal, and X and B are N-by-NRHS ZLANGB [zlangb] (l) - return the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of an n by n band matrix A, with kl sub-diagonals and ku super-diagonals ZLANHB [zlanhb] (l) - return the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of an n by n hermitian band matrix A, with k super-diagonals ZLANSB [zlansb] (l) - return the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of an n by n symmetric band matrix A, with k super-diagonals ZLANTB [zlantb] (l) - return the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of an n by n triangular band matrix A, with ( k + 1 ) diagonals ZLAQGB [zlaqgb] (l) - equilibrate a general M by N band matrix A with KL subdiagonals and KU superdiagonals using the row and scaling factors in the vectors R and C ZLASET [zlaset] (l) - initialize a 2-D array A to BETA on the diagonal and ALPHA on the offdiagonals ZTGEXC [ztgexc] (l) - reorder the generalized Schur decomposition of a complex matrix pair (A, B), using an unitary equivalence transformation (A, B) := Q * (A, B) * Z', so that the diagonal block of (A, B) with row index IFST is moved to row ILST ZTREXC [ztrexc] (l) - reorder the Schur factorization of a complex matrix A = Q*T*Q**H, so that the diagonal element of T with row index IFST is moved to row ILST man -k = apropos |
$info gcc
/usr/share/doc - Информация по каждому пакету |
$сcd /etc/
Display all 248 possibilities? (y or n) |
$cd /etc/
|
$cd -
/ |
$ls /
bin dev home lib media mnt proc sbin skeleton tmp var boot etc initrd lost+found misc opt root selinux sys usr |
$aliases
bash: aliases: command not found |
$alias
alias l.='ls -d .* --color=tty' alias ll='ls -l --color=tty' alias ls='ls --color=tty' alias mc='. /usr/share/mc/bin/mc-wrapper.sh' alias vi='vim' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' |
$ls -a /
. .automount dev initrd media opt sbin sys var .. bin etc lib misc proc selinux tmp .autofsck boot home lost+found mnt root skeleton usr |
$ls -A /
.autofsck boot home lost+found mnt root skeleton usr .automount dev initrd media opt sbin sys var bin etc lib misc proc selinux tmp |
$ls -l /
итого 88 drwxr-xr-x 2 root root 4096 Янв 23 11:26 bin drwxr-xr-x 4 root root 4096 Янв 20 06:54 boot drwxr-xr-x 10 root root 4980 Янв 23 09:58 dev drwxr-xr-x 91 root root 8192 Янв 23 12:08 etc drwxr-xr-x 4 root root 4096 Янв 20 16:56 home drwxr-xr-x 2 root root 4096 Июл 13 2004 initrd drwxr-xr-x 11 root root 4096 Янв 23 11:20 lib drwx------ 2 root root 16384 Янв 20 06:31 lost+found drwxr-xr-x 4 root root 4096 Янв 23 09:58 media ... drwxr-xr-x 2 root root 4096 Июл 13 2004 opt dr-xr-xr-x 103 root root 0 Янв 23 11:57 proc drwxr-x--- 13 root root 4096 Янв 23 12:10 root drwxr-xr-x 2 root root 8192 Янв 23 11:27 sbin drwxr-xr-x 2 root root 4096 Июл 13 2004 selinux lrwxrwxrwx 1 1000 1000 30 Янв 21 19:07 skeleton -> ../../nt-ladm/INSTALL/skeleton drwxr-xr-x 9 root root 0 Янв 23 11:57 sys drwxrwxrwt 15 root root 4096 Янв 23 12:09 tmp drwxr-xr-x 16 root root 4096 Янв 20 06:54 usr drwxr-xr-x 20 root root 4096 Янв 20 06:48 var |
$ls -lA /
итого 92 -rw-r--r-- 1 root root 0 Янв 23 09:57 .autofsck drwxr-xr-x 2 root root 4096 Окт 7 2004 .automount drwxr-xr-x 2 root root 4096 Янв 23 11:26 bin drwxr-xr-x 4 root root 4096 Янв 20 06:54 boot drwxr-xr-x 10 root root 4980 Янв 23 09:58 dev drwxr-xr-x 91 root root 8192 Янв 23 12:08 etc drwxr-xr-x 4 root root 4096 Янв 20 16:56 home drwxr-xr-x 2 root root 4096 Июл 13 2004 initrd drwxr-xr-x 11 root root 4096 Янв 23 11:20 lib ... drwxr-xr-x 2 root root 4096 Июл 13 2004 opt dr-xr-xr-x 103 root root 0 Янв 23 11:57 proc drwxr-x--- 13 root root 4096 Янв 23 12:10 root drwxr-xr-x 2 root root 8192 Янв 23 11:27 sbin drwxr-xr-x 2 root root 4096 Июл 13 2004 selinux lrwxrwxrwx 1 1000 1000 30 Янв 21 19:07 skeleton -> ../../nt-ladm/INSTALL/skeleton drwxr-xr-x 9 root root 0 Янв 23 11:57 sys drwxrwxrwt 15 root root 4096 Янв 23 12:09 tmp drwxr-xr-x 16 root root 4096 Янв 20 06:54 usr drwxr-xr-x 20 root root 4096 Янв 20 06:48 var |
$mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hda6 on /tmp type ext3 (rw) /dev/hda7 on /var type ext3 (rw) /dev/hda9 on /usr type ext3 (rw) /dev/hda8 on /home type ext3 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) |
$ls -l /etc/
-rw-r--r-- 1 root root 2241 Июл 11 2004 krb.conf -rw-r--r-- 1 root root 1296 Июл 11 2004 krb.realms -rw-r--r-- 1 root root 848 Мар 5 2003 ksysguarddrc drwxr-xr-x 2 root root 4096 Янв 20 06:53 lam -rw-r--r-- 1 root root 6928 Сен 29 2004 ldap.conf -rw-r--r-- 1 root root 105044 Янв 20 06:53 ld.so.cache -rw-r--r-- 1 root root 57 Янв 20 06:48 ld.so.conf drwxr-xr-x 2 root root 4096 Янв 20 06:38 ld.so.conf.d -rw-r--r-- 1 root root 3243 Июл 12 2004 lftp.conf drwxr-xr-x 2 root root 4096 Янв 20 06:46 libgda ... drwxr-xr-x 2 root root 4096 Янв 20 06:48 wine drwxr-xr-x 2 root root 4096 Янв 20 06:54 wordtrans drwxr-xr-x 16 root root 4096 Янв 20 16:56 X11 drwxr-xr-x 3 root root 4096 Янв 20 06:39 xdg -rw-r--r-- 1 root root 289 Июл 12 2004 xinetd.conf drwxr-xr-x 2 root root 4096 Янв 20 06:47 xinetd.d drwxr-xr-x 2 root root 4096 Янв 20 06:39 xml -rw-r--r-- 1 root root 585 Июл 12 2004 yp.conf -rw-r--r-- 1 root root 255 Ноя 15 2004 yum.conf drwxr-xr-x 2 root root 4096 Ноя 15 2004 yum.repos.d |
$ls -l /etc/ | awk {s=0;if($5>s)s=$5;} END {print s;)
bash: syntax error near unexpected token `s=$5' |
$ls -l /etc/ | awk {s=0;if($5>s){s=$5;}} END {print s;)
bash: syntax error near unexpected token `{s=$5' |
$ls -l /etc/ | awk '{if($5>s) s=$5;} END {print s;)'
awk: cmd. line:1: {if($5>s) s=$5;} END {print s;) awk: cmd. line:1: ^ syntax error |
$ls -l /etc/ | awk '{if($5>s) s=$5;} END {print s;}'
737414 |
applnk/ lbxproxy/ starthere/ xdm/ xorg.conf dm/ prefdm sysconfig/ xinit/ Xresources fs/ proxymngr/ twm/ xkb/ xserver/ gdm/ serverconfig/ X Xmodmap xsm/
ASPLinux release 10 (Karelia) Kernel 2.6.9-1.667asp on an i686
profile profile.d/ protocols
LANG="ru_RU.UTF-8" SYSFONT="latarcyrheb-sun16" SYSFONTACM=""
KEYTABLE=ruwin_UTF-8:CTRL_SHFT
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 1 model name : Intel(R) Celeron(R) CPU 1.80GHz stepping : 3 cpu MHz : 1800.848 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 3547.13
hda/ hdc/
78156288
WDC WD400BB-23FJA0
Password: ÷ÁÓ ÐÒÉ×ÅÔÓÔ×ÕÅÔ ÕÞÅÂÎÙÊ ÃÅÎÔÒ óÅÔÅ×ÙÅ ôÅÈÎÏÌÏÇÉÉ. äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ × ÓÉÓÔÅÍÕ!
Время первой команды журнала | 10:03:31 2006- 1-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:13:23 2006- 1-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.89 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 8.51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.54 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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