/l3/users/eb/2009/linux1/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 :27 :28 :29 :30 :31 :32 :33 |
|
#/usr/local/bin/fixcon
|
#/usr/local/bin/gdm
bash: /usr/local/bin/gdm: No such file or directory |
#luit -encoding koi8-r ssh host
ssh: Could not resolve hostname host: Name or service not known |
#/etc/init.d/gdm
Usage: /etc/init.d/gdm {start|stop|restart|reload|force-reload|status} |
#echo $LANG
ru_RU.UTF-8 |
#date
Пнд Май 25 12:38:08 EEST 2009 |
#date
Пнд Май 25 12:39:51 EEST 2009 |
#ls /tmp
f install keyring-gJDwxM orbit-user ssh-iapLWy6862 |
#ls -la /tmp
итого 48 drwxrwxrwt 7 root root 4096 Май 25 12:40 . drwxr-xr-x 21 root root 4096 Ноя 24 16:08 .. -rw-r--r-- 1 root root 119 Май 25 12:40 f drwxrwxrwt 2 root root 4096 Май 25 12:22 .ICE-unix -rw-r--r-- 1 root root 5245 Май 25 09:09 install drwx------ 2 user user 4096 Май 25 12:22 keyring-gJDwxM drwx------ 2 user user 4096 Май 25 12:22 orbit-user drwx------ 2 user user 4096 Май 25 12:22 ssh-iapLWy6862 -r--r--r-- 1 root root 11 Май 25 12:22 .X0-lock drwxrwxrwt 2 root root 4096 Май 25 12:22 .X11-unix -rw------- 1 user user 406 Май 25 12:22 .xfsm-ICE-TNE5TU |
#ls -la /tmp
итого 48 drwxrwxrwt 7 root root 4096 Май 25 12:40 . drwxr-xr-x 21 root root 4096 Ноя 24 16:08 .. -rw-r--r-- 1 root root 119 Май 25 12:40 f drwxrwxrwt 2 root root 4096 Май 25 12:22 .ICE-unix -rw-r--r-- 1 root root 5245 Май 25 09:09 install drwx------ 2 user user 4096 Май 25 12:22 keyring-gJDwxM drwx------ 2 user user 4096 Май 25 12:22 orbit-user drwx------ 2 user user 4096 Май 25 12:22 ssh-iapLWy6862 -r--r--r-- 1 root root 11 Май 25 12:22 .X0-lock drwxrwxrwt 2 root root 4096 Май 25 12:22 .X11-unix -rw------- 1 user user 406 Май 25 12:22 .xfsm-ICE-TNE5TU |
#cat /tmp/f
<script type="text/javascript" language="JavaScript" src="/shared/js/menudata.js"></script> </head> <body bgcolor="#FFFFFF"> <!--script>write_div()</script--> <table border="0" cellspacing="0" cellpadding="10" width="100%"><tr><td width="250"><a href="http://www.nt.com.ua/"><img border="0" src="/pic/logo.gif" width="154" height="60" alt="logo-nt" /></a></td><td> <!--HNEWS--> <table border="0" cellspacing="0" cellpadding="0"> <tr><td nowrap="nowrap"><A href="/courses/microsoft/M5060.shtml">09.06.2009</A> </td><td nowrap="nowrap">M5060 - Ïðèìåíåíèå Windows SharePoint Services 3.0</td></tr> <tr><td nowrap="nowrap"><A href="/courses/microsoft/M5061.shtml">10.06.2009</A> </td><td nowrap="nowrap">M5061 - Âíåäðåíèå Microsoft Office SharePoint Server 2007</td></tr> <tr><td nowrap="nowrap"><A href="/courses/microsoft/NT-PM101.shtml">09.06.2009</A> </td><td nowrap="nowrap">NT-PM101 - Ìåòîäîëîãèÿ óïðàâëåíèÿ ïðîåêòàìè</td></tr> ... <a href="/about/about.shtml">Îá Ó÷åáíîì Öåíòðå</a> </td></tr></table></td><td bgcolor="#FFFFFF"> <table border=0 cellspacing=0 cellpadding=2 width="100%"> <tr><th bgcolor="#EEEEEE"> <a href="#top">Íàâåðõ</a> </td></tr></table></td> </tr></table></td></tr></table> </td></tr></table> </body> </html> |
#cat /tmp/f | iconv -c -f CP1251 | less
|
#man mkdir
|
#man mkdir
|
#echo $TERM
linux |
#kgfkjdas kgfjkdjklg kjdfkljdas lkjdgfkls kldfjkljas
bash: kgfkjdas: command not found |
#lgfkldsf
bash: lgfkldsf: command not found |
#jdsklfj jdfkls kjdfkljas jdfklasj
bash: jdsklfj: command not found |
#data
bash: data: command not found |
#date
Пнд Май 25 13:58:31 EEST 2009 |
#/usr/local/bin/fixcon
|
#date
Пнд Май 25 13:58:57 EEST 2009 |
#koko
bash: koko: command not found |
#pas
passwd paste |
#pastouch /etc/
Display all 154 possibilities? (y or n) .pwd.lock hesiod.conf pango/ ConsoleKit/ host.conf papersize PolicyKit/ hostname passwd X11/ hosts.allow passwd- a2ps-site.cfg hosts.deny perl/ a2ps.cfg iceweasel/ pm/ adduser.conf init.d/ printcap adjtime initramfs-tools/ profile alternatives/ inittab protocols ... ca-certificates/ kde3/ rc1.d/ ca-certificates.conf kernel/ rc2.d/ calendar/ kernel-img.conf rc3.d/ console/ ld.so.cache rc4.d/ console-cyrillic ld.so.conf rc5.d/ console-setup/ ld.so.conf.d/ rc6.d/ cron.d/ ldap/ rcS.d/ cron.daily/ libaudit.conf resolv.conf cron.hourly/ libpaper.d/ rmt cron.monthly/ lilalo/ rpc |
#$
$BASH $HOSTNAME $PIPESTATUS $BASH_ARGC $HOSTTYPE $PPID $BASH_ARGV $HUSHLOGIN $PS1 $BASH_COMMAND $IFS $PS2 $BASH_LINENO $L3_HOME $PS4 $BASH_SOURCE $L3_PARENT_TTY $PWD $BASH_SUBSHELL $L3_SESSION_ID $RANDOM $BASH_VERSINFO $L3_TAMPERED_EDITORS $SECONDS $BASH_VERSION $LANG $SHELL $COLUMNS $LINENO $SHELLOPTS $COMP_WORDBREAKS $LINES $SHLVL $DIRSTACK $LOGNAME $TERM $EUID $MACHTYPE $UID $GROUPS $MAIL $USER $HISTCMD $MAILCHECK $XDG_SESSION_COOKIE $HISTFILE $OPTERR $_ $HISTFILESIZE $OPTIND $editor_file $HISTSIZE $OSTYPE $editor_name $HOME $PATH |
#LANG=C
|
#apt-get install bash-completion
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: bash-completion 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 102kB of archives. After this operation, 537kB of additional disk space will be used. Get:1 http://10.0.35.1 sid/main bash-completion 1:1.0-2 [102kB] Fetched 102kB in 0s (8798kB/s) Selecting previously deselected package bash-completion. (Reading database ... 42040 files and directories currently installed.) Unpacking bash-completion (from .../bash-completion_1%3a1.0-2_all.deb) ... Processing triggers for man-db ... Setting up bash-completion (1:1.0-2) ... |
#apt-cash show bash-completion
bash: apt-cash: command not found |
#apt-cach show bash-completion
bash: apt-cach: command not found |
#man apt
|
#apt-cache show bash-completion | less
|
#. /etc/bash_completion
|
#passwd
backup gnats lp nobody sync bin haldaemon mail polkituser sys daemon irc man proxy user games libuuid messagebus root uucp gdm list news sshd www-data |
#apt-get install u
Display all 229 possibilities? (y or n) u++ ultrastar-ng-gstreamer update-notifier-common u++-doc ultrastar-ng-xine upgrade-notifier u3-tool umbrello upgrade-system uae umich-ldap-utils uphpmvault ubh umich-ldapd uprecords-cgi uboot-envtools uml-utilities ups-monitor uboot-mkimage umlrun upsd ucarp umlrun-uml upse-audacious ucblogo umview upse123 ... uisp untex uuid-runtime ukolovnik unworkable uuid-runtime-dbg uligo unzip uuidcdef ulog-acctd unzip-crypt uutraf ulogd update-cluster uvccapture ulogd-mysql update-cluster-hosts uw-imapd ulogd-pcap update-inetd uw-mailutils ulogd-pgsql update-manager uwm ulogd-sqlite3 update-manager-core ultrastar-ng update-notifier |
#vi /etc/bash.bashrc
|
#fi
if [ -x /usr/lib/command-not-found ]; then function command_not_found_handle { # check because c-n-f could've been removed in the meantime if [ -f /etc/bash_completion ]; then if [ -x /usr/lib/command-not-found ]; then /usr/bin/python /usr/lib/command-not-found -- $1 return $? else return 127 fi } fi "/etc/bash.bashrc" 47 lines, 1452 characters written |
#cat /etc/bash.bashrc
# System-wide .bashrc file for interactive bash(1) shells. # To enable the settings / commands in this file for login shells as well, # this file has to be sourced in /etc/profile. # If not running interactively, don't do anything [ -z "$PS1" ] && return # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then ... function command_not_found_handle { # check because c-n-f could've been removed in the meantime if [ -x /usr/lib/command-not-found ]; then /usr/bin/python /usr/lib/command-not-found -- $1 return $? else return 127 fi } fi |
#vi /etc/bash.bashrc
--- /tmp/l3-saved-7404.22438.18397 2009-05-25 14:22:48.000000000 +0300 +++ /etc/bash.bashrc 2009-05-25 14:23:20.000000000 +0300 @@ -30,8 +30,8 @@ # enable bash completion in interactive shells if [ -f /etc/bash_completion ]; then -# . /etc/bash_completion -#fi + . /etc/bash_completion +fi # if the command-not-found package is installed, use it if [ -x /usr/lib/command-not-found ]; then |
#cat /etc/bash.bashrc
# System-wide .bashrc file for interactive bash(1) shells. # To enable the settings / commands in this file for login shells as well, # this file has to be sourced in /etc/profile. # If not running interactively, don't do anything [ -z "$PS1" ] && return # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then ... function command_not_found_handle { # check because c-n-f could've been removed in the meantime if [ -x /usr/lib/command-not-found ]; then /usr/bin/python /usr/lib/command-not-found -- $1 return $? else return 127 fi } fi |
#ls -la
total 40 drwxr-xr-x 4 root root 4096 May 25 08:46 . drwxr-xr-x 21 root root 4096 Nov 24 16:08 .. -rw------- 1 root root 1553 May 25 12:51 .bash_history -rw-r--r-- 1 root root 21 May 25 09:34 .bash_profile -rw-r--r-- 1 root root 450 May 25 09:34 .bashrc -rw-r--r-- 1 root root 32 May 25 11:07 .l3rc -rw------- 1 root root 78 May 25 14:13 .lesshst drwxr-xr-x 2 root root 4096 May 25 14:23 .lilalo -rw-r--r-- 1 root root 140 Nov 19 2007 .profile drwxr-xr-x 2 root root 4096 Nov 25 01:40 .ssh |
#history
56 rm install 57 wget http://xgu.ru/lilalo/install 58 vi install 59 sh install 60 less ~/.lilalo/l3bashrc 61 vi ~/.bashrc 62 vi ~/.bash_profile 63 exit 64 exit 65 apt-get install locales ... 195 apt-cache show bash-completion 196 apt-cache show bash-completion | less 197 . /etc/bash_completion 198 vi /etc/bash.bashrc 199 vi /etc/bash.bashrc 200 cat /etc/bash.bashrc 201 vi /etc/bash.bashrc 202 cat /etc/bash.bashrc 203 ls -la 204 history |
#history | less
|
#history | less
|
#ls -la
total 40 drwxr-xr-x 4 root root 4096 May 25 08:46 . drwxr-xr-x 21 root root 4096 Nov 24 16:08 .. -rw------- 1 root root 1553 May 25 12:51 .bash_history -rw-r--r-- 1 root root 21 May 25 09:34 .bash_profile -rw-r--r-- 1 root root 450 May 25 09:34 .bashrc -rw-r--r-- 1 root root 32 May 25 11:07 .l3rc -rw------- 1 root root 78 May 25 14:13 .lesshst drwxr-xr-x 2 root root 4096 May 25 14:26 .lilalo -rw-r--r-- 1 root root 140 Nov 19 2007 .profile drwxr-xr-x 2 root root 4096 Nov 25 01:40 .ssh |
#history -c
|
#cat .bash_history
ifconfig -a ls /boot/ ls / vi /boot/grub/menu.lst mount /dev/sdc1 /mnt ls /mnt/ cp /boot/grub/menu.lst /mnt/boot/grub/ vi /mnt/etc/network/interfaces vi /etc/network/interfaces vi /mnt/mnt2/etc/network/interfaces ... exit UXterm echo $LANG date date± date~ exit date UXterm exit |
#cat .bash_history | less
|
#cat .bash_history
ifconfig -a ls /boot/ ls / vi /boot/grub/menu.lst mount /dev/sdc1 /mnt ls /mnt/ cp /boot/grub/menu.lst /mnt/boot/grub/ vi /mnt/etc/network/interfaces vi /etc/network/interfaces vi /mnt/mnt2/etc/network/interfaces ... exit UXterm echo $LANG date date± date~ exit date UXterm exit |
#ping linux2
ping: unknown host linux2 |
#ldd /bin/ls
linux-gate.so.1 => (0xb7fef000) librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7fdc000) libselinux.so.1 => /lib/libselinux.so.1 (0xb7fc3000) libacl.so.1 => /lib/libacl.so.1 (0xb7fbb000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7e5b000) libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7e42000) /lib/ld-linux.so.2 (0xb7ff0000) libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7e3e000) libattr.so.1 => /lib/libattr.so.1 (0xb7e39000) |
#which sshd
/usr/sbin/sshd |
#ldd `!!`
ldd `which sshd` linux-gate.so.1 => (0xb8028000) libwrap.so.0 => /lib/libwrap.so.0 (0xb8016000) libpam.so.0 => /lib/libpam.so.0 (0xb800b000) libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb8006000) libselinux.so.1 => /lib/libselinux.so.1 (0xb7fed000) libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb7fd7000) libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb7e84000) libutil.so.1 => /lib/i686/cmov/libutil.so.1 (0xb7e80000) libz.so.1 => /usr/lib/libz.so.1 (0xb7e6a000) libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb7e51000) libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb7e1f000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb7df6000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb7d4d000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb7d24000) libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7d20000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7bc0000) /lib/ld-linux.so.2 (0xb8029000) libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb7bb9000) libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb7bb6000) libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7b9d000) |
#ls /tmp
f install keyring-gJDwxM orbit-user ssh-iapLWy6862 |
|