/l3/users/16-10-2018/NT-Ladm/debian2.net.nt/user :1 :2 :3 :4 |
|
$cat > file
|
$cat >> file
|
$cat bigfile | more
|
$cat bigfile | less
|
$mkdir /tmp/etccopy
|
$cp -v /etc/* /tmp/etccopy/ 2>&1 | less
|
$cp -v /etc/* /tmp/etccopy | less
|
$cp -v /etc/* /tmp/etccopy/ | less
|
$cp -v /etc/* /tmp/etccopy/ 2>&1 | less
|
$cp -v /etc/* /tmp/etccopy/ | less
|
$ssh 192.168.13.4
The authenticity of host '192.168.13.4 (192.168.13.4)' can't be established. ECDSA key fingerprint is bb:7b:f3:72:0e:3d:91:4c:a0:5b:88:ff:0d:0d:33:1d. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.13.4' (ECDSA) to the list of known hosts. user@192.168.13.4's password: Linux debian4 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Oct 16 10:49:23 2018 from 192.168.15.170 l3-agent is already running: pid=3440; pidfile=/home/user/.lilalo/l3-agent.pid user@debian4:~$ l3script |
$cd
|
$cp /etc/passwd .
|
$sed 's/:/ /g' passwd
root x 0 0 root /root /bin/bash daemon x 1 1 daemon /usr/sbin /bin/sh bin x 2 2 bin /bin /bin/sh sys x 3 3 sys /dev /bin/sh sync x 4 65534 sync /bin /bin/sync games x 5 60 games /usr/games /bin/sh man x 6 12 man /var/cache/man /bin/sh lp x 7 7 lp /var/spool/lpd /bin/sh mail x 8 8 mail /var/mail /bin/sh news x 9 9 news /var/spool/news /bin/sh ... list x 38 38 Mailing List Manager /var/list /bin/sh irc x 39 39 ircd /var/run/ircd /bin/sh gnats x 41 41 Gnats Bug-Reporting System (admin) /var/lib/gnats /bin/sh nobody x 65534 65534 nobody /nonexistent /bin/sh libuuid x 100 101 /var/lib/libuuid /bin/sh Debian-exim x 101 103 /var/spool/exim4 /bin/false user x 1000 1000 user,,, /home/user /bin/bash sshd x 102 65534 /var/run/sshd /usr/sbin/nologin ivan x 1001 1001 /home/ivan /bin/bash petr x 1002 1002 /home/petr /bin/bash |
$sed 's/[^a]//g' passwd | wc -c
71 |
$for i in *\*
> do > mv "$i" "'echo $i | sed 's/ /_/g' '" > done mv: cannot stat `**': No such file or directory |
$for i in *\ *; do mv "$i" "'echo $i | sed 's/ /_/g' '"; done
mv: cannot move `lpi 1' to `\'echo lpi 1 | sed \'s/ /_/g\' \'': No such file or directory mv: cannot move `lpi 2' to `\'echo lpi 2 | sed \'s/ /_/g\' \'': No such file or directory |
$for i in *\ *; do mv "$i" "`echo $i | sed 's/ /_/g' `"; done
|
$iconv -f CP1251 -t KOI8-R
бÐÐÐÐÐЯ ^D ^C |
$cat passwd | tr -d '\n'
|
$cat passwd | tr -cd 'a' | wc -c
47 |
$for i in *
> do > mv "$i" "`echo $i | tr '[:lower:]' '[:upper:]'~" > done > for i in *; do mv "$i" "`echo $i | tr '[:lower:]' '[:upper:]'~" > for i in *; do mv "$i" "`echo $i | tr '[:lower:]' '[:upper:]'~" dodo > mv "$i" "`echo $i | tr '[:lower:]' '[:upper:]'`" > done > done > ^C |
$for i in *; do mv "$i" "`echo $i | tr '[:lower:]' '[:upper:]'~"
done for i in * do > do > mv "$i" "`echo $i | tr '[:lower:]' '[:upper:]'`" > done |
$ls
BIGFILE LIGHT_ALLOY_4.4.784_RC2_BY_FAFNIR.EXE MATRIX.JPG PASSWD TEXT BIN LPI_1 NAMES PRESS_ANY_KEY_TO_CONTINUE.JPG TOUCHLIST FREEBSD.JPG LPI_2 OGO.JPG PROJ GRANATA.JPG MAN_SMB_CONF PAMYATKA.PDF SH |
$for i in *; do mv "$i" "`echo $i | tr '[:upper:]' '[:lower:]'`"; done
|
$ps -aux
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.1 10648 836 ? Ss Oct14 0:04 init [2] root 2 0.0 0.0 0 0 ? S Oct14 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S Oct14 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S Oct14 0:00 [kworker/u:0] root 6 0.0 0.0 0 0 ? S Oct14 0:00 [migration/0] root 7 0.0 0.0 0 0 ? S Oct14 0:02 [watchdog/0] root 8 0.0 0.0 0 0 ? S< Oct14 0:00 [cpuset] ... root 6541 0.0 0.7 71288 3608 ? Ss 14:48 0:00 sshd: ivan [priv] ivan 6634 0.0 0.3 71288 1748 ? S 14:48 0:00 sshd: ivan@pts/9 ivan 6635 0.0 0.6 22584 3192 pts/9 Ss+ 14:48 0:00 -bash root 6716 0.0 0.7 71380 3716 ? Ss 14:48 0:00 sshd: petr [priv] petr 6804 0.0 0.3 71380 1860 ? S 14:48 0:00 sshd: petr@pts/11 petr 6805 0.0 0.6 22584 3196 pts/11 Ss+ 14:48 0:00 -bash user 6995 0.0 0.1 18164 840 pts/6 S+ 15:12 0:00 script -f -c l3script -q /home/user/.lilalo//222189 user 7066 0.0 0.0 18168 468 pts/6 S+ 15:12 0:00 script -f -c l3script -q /home/user/.lilalo//222189 user 7067 0.0 0.5 22240 3036 pts/13 Ss 15:12 0:00 l3script user 7453 0.0 0.2 18948 1272 pts/13 R+ 15:28 0:00 ps -aux |
$cat passwd | awk -F: '{ if ($3>999) print; }'
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh user:x:1000:1000:user,,,:/home/user:/bin/bash ivan:x:1001:1001::/home/ivan:/bin/bash petr:x:1002:1002::/home/petr:/bin/bash |
$echo $PATH | awk -F: '{for (n=1;n<=NF;n++) print $n;}'
/usr/local/bin /usr/bin /bin /usr/local/games /usr/games |
$echo $PATH | awk -F: '{for (n=1;n<=NF;n++) print $n; }' | xargs ls
/bin: bash df fuser lessfile more open run-parts tar zcmp busybox dir grep lesskey mount openvt sed tempfile zdiff cat dmesg gunzip lesspipe mountpoint pidof setfont touch zegrep chgrp dnsdomainname gzexe ln mt ping setupcon true zfgrep chmod domainname gzip loadkeys mt-gnu ping6 sh umount zforce chown dumpkeys hostname login mv ps sh.distrib uname zgrep chvt echo ip ls nano pwd sleep uncompress zless cp egrep kbd_mode lsblk nc rbash ss unicode_start zmore cpio false kill lsmod nc.traditional readlink stty vdir znew ... gcc man setarch xzless gcc-4.7 mandb setkeycodes xzmore gcc-ar manpath setleds yes gcc-ar-4.7 mapscrn setlogcons zdump gcc-nm mawk setmetamode zsoelim gcc-nm-4.7 mcookie setpci /usr/games: /usr/local/bin: l3-agent l3-config l3script /usr/local/games: |
$exit
exit user@debian4:~$ exit logout Connection to 192.168.13.4 closed. |
$l3script
|
$find / -name find\*
/lib/udev/findkeyboards find: `/etc/ssl/private': Permission denied /usr/bin/find2perl /usr/bin/find /usr/share/man/man1/find2perl.1.gz /usr/share/man/man1/find.1.gz /usr/share/man/man8/findfs.8.gz /usr/share/man/man8/findmnt.8.gz /usr/share/info/find.info.gz /usr/share/bash-completion/completions/find_member ... find: `/proc/7786/task/7786/ns': Permission denied find: `/proc/7786/fd': Permission denied find: `/proc/7786/fdinfo': Permission denied find: `/proc/7786/ns': Permission denied find: `/proc/7787/task/7787/fd': Permission denied find: `/proc/7787/task/7787/fdinfo': Permission denied find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied |
$find / -name find\*
/lib/udev/findkeyboards find: `/etc/ssl/private': Permission denied /usr/bin/find2perl /usr/bin/find /usr/share/man/man1/find2perl.1.gz /usr/share/man/man1/find.1.gz /usr/share/man/man8/findfs.8.gz /usr/share/man/man8/findmnt.8.gz /usr/share/info/find.info.gz /usr/share/bash-completion/completions/find_member ... find: `/proc/7786/task/7786/ns': Permission denied find: `/proc/7786/fd': Permission denied find: `/proc/7786/fdinfo': Permission denied find: `/proc/7786/ns': Permission denied find: `/proc/7787/task/7787/fd': Permission denied find: `/proc/7787/task/7787/fdinfo': Permission denied find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied |
$find / -regex ".*\.jpe?g"
find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied /home/user/matrix.jpg ... find: `/proc/7786/task/7786/ns': Permission denied find: `/proc/7786/fd': Permission denied find: `/proc/7786/fdinfo': Permission denied find: `/proc/7786/ns': Permission denied find: `/proc/7787/task/7787/fd': Permission denied find: `/proc/7787/task/7787/fdinfo': Permission denied find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied |
$find / -regex ".*\.jpe?g"
find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied /home/user/matrix.jpg ... find: `/proc/7786/task/7786/ns': Permission denied find: `/proc/7786/fd': Permission denied find: `/proc/7786/fdinfo': Permission denied find: `/proc/7786/ns': Permission denied find: `/proc/7787/task/7787/fd': Permission denied find: `/proc/7787/task/7787/fdinfo': Permission denied find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied |
$find . -regex ".*\.jpe?g"
./matrix.jpg ./freebsd.jpg ./press_any_key_to_continue.jpg ./granata.jpg ./ogo.jpg |
$find . -regex ".*\.jpe?g"
./matrix.jpg ./freebsd.jpg ./press_any_key_to_continue.jpg ./granata.jpg ./ogo.jpg |
$find / -size +10240 -ls
4000 0 -rw------- 1 root root 33554432 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:02.0/resource0 4001 0 -rw------- 1 root root 33554432 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:02.0/resource0_wc 4007 0 -rw------- 1 root root 16777216 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:03.0/resource1 4008 0 -rw------- 1 root root 16777216 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:03.0/resource1_wc find: `/etc/ssl/private': Permission denied 136920 11524 -rwxr-xr-x 1 root root 11800376 Jan 6 2013 /usr/lib/gcc/x86_64-linux-gnu/4.7/lto1 136887 12152 -rwxr-xr-x 1 root root 12440264 Jan 6 2013 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1 find: `/lost+found': Permission denied 783412 18048 -rw-r--r-- 1 root root 18478594 Jul 12 2014 /var/lib/apt/lists/ftp.ua.debian.org_debian_dists_wheezy_main_i18n_Translation-en 783497 27808 -rw-r--r-- 1 root root 28474810 Jul 12 2014 /var/lib/apt/lists/ftp.ua.debian.org_debian_dists_wheezy_main_binary-amd64_Packages ... find: `/proc/7787/task/7787/fd': Permission denied find: `/proc/7787/task/7787/fdinfo': Permission denied find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9537/task/9537/fd/5': No such file or directory find: `/proc/9537/task/9537/fdinfo/5': No such file or directory find: `/proc/9537/fd/5': No such file or directory find: `/proc/9537/fdinfo/5': No such file or directory |
$find / -size +10240 -ls
4000 0 -rw------- 1 root root 33554432 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:02.0/resource0 4001 0 -rw------- 1 root root 33554432 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:02.0/resource0_wc 4007 0 -rw------- 1 root root 16777216 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:03.0/resource1 4008 0 -rw------- 1 root root 16777216 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:03.0/resource1_wc find: `/etc/ssl/private': Permission denied 136920 11524 -rwxr-xr-x 1 root root 11800376 Jan 6 2013 /usr/lib/gcc/x86_64-linux-gnu/4.7/lto1 136887 12152 -rwxr-xr-x 1 root root 12440264 Jan 6 2013 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1 find: `/lost+found': Permission denied 783412 18048 -rw-r--r-- 1 root root 18478594 Jul 12 2014 /var/lib/apt/lists/ftp.ua.debian.org_debian_dists_wheezy_main_i18n_Translation-en 783497 27808 -rw-r--r-- 1 root root 28474810 Jul 12 2014 /var/lib/apt/lists/ftp.ua.debian.org_debian_dists_wheezy_main_binary-amd64_Packages ... find: `/proc/7787/task/7787/fd': Permission denied find: `/proc/7787/task/7787/fdinfo': Permission denied find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9537/task/9537/fd/5': No such file or directory find: `/proc/9537/task/9537/fdinfo/5': No such file or directory find: `/proc/9537/fd/5': No such file or directory find: `/proc/9537/fdinfo/5': No such file or directory |
$find / -size +10240 -ls
4000 0 -rw------- 1 root root 33554432 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:02.0/resource0 4001 0 -rw------- 1 root root 33554432 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:02.0/resource0_wc 4007 0 -rw------- 1 root root 16777216 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:03.0/resource1 4008 0 -rw------- 1 root root 16777216 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:03.0/resource1_wc find: `/etc/ssl/private': Permission denied 136920 11524 -rwxr-xr-x 1 root root 11800376 Jan 6 2013 /usr/lib/gcc/x86_64-linux-gnu/4.7/lto1 136887 12152 -rwxr-xr-x 1 root root 12440264 Jan 6 2013 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1 find: `/lost+found': Permission denied 783412 18048 -rw-r--r-- 1 root root 18478594 Jul 12 2014 /var/lib/apt/lists/ftp.ua.debian.org_debian_dists_wheezy_main_i18n_Translation-en 783497 27808 -rw-r--r-- 1 root root 28474810 Jul 12 2014 /var/lib/apt/lists/ftp.ua.debian.org_debian_dists_wheezy_main_binary-amd64_Packages ... find: `/proc/7787/task/7787/fd': Permission denied find: `/proc/7787/task/7787/fdinfo': Permission denied find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9553/task/9553/fd/5': No such file or directory find: `/proc/9553/task/9553/fdinfo/5': No such file or directory find: `/proc/9553/fd/5': No such file or directory find: `/proc/9553/fdinfo/5': No such file or directory |
$find / -size +10240 -ls
4000 0 -rw------- 1 root root 33554432 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:02.0/resource0 4001 0 -rw------- 1 root root 33554432 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:02.0/resource0_wc 4007 0 -rw------- 1 root root 16777216 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:03.0/resource1 4008 0 -rw------- 1 root root 16777216 Oct 17 10:42 /sys/devices/pci0000:00/0000:00:03.0/resource1_wc find: `/etc/ssl/private': Permission denied 136920 11524 -rwxr-xr-x 1 root root 11800376 Jan 6 2013 /usr/lib/gcc/x86_64-linux-gnu/4.7/lto1 136887 12152 -rwxr-xr-x 1 root root 12440264 Jan 6 2013 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1 find: `/lost+found': Permission denied 783412 18048 -rw-r--r-- 1 root root 18478594 Jul 12 2014 /var/lib/apt/lists/ftp.ua.debian.org_debian_dists_wheezy_main_i18n_Translation-en 783497 27808 -rw-r--r-- 1 root root 28474810 Jul 12 2014 /var/lib/apt/lists/ftp.ua.debian.org_debian_dists_wheezy_main_binary-amd64_Packages ... find: `/proc/7787/task/7787/fd': Permission denied find: `/proc/7787/task/7787/fdinfo': Permission denied find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9553/task/9553/fd/5': No such file or directory find: `/proc/9553/task/9553/fdinfo/5': No such file or directory find: `/proc/9553/fd/5': No such file or directory find: `/proc/9553/fdinfo/5': No such file or directory |
$find ~ -atime +2
/home/user/lpi 1/LPI_101-104.pdf /home/user/lpi 1/LPI_101-103.pdf /home/user/lpi 1/LPI_102-106.pdf /home/user/lpi 1/LPI_102-111.pdf /home/user/lpi 1/LPI_101-102.pdf /home/user/lpi 1/LPI_101-101.pdf /home/user/lpi 1/LPI_102-108.pdf /home/user/lpi 1/LPI_101-110.pdf /home/user/lpi 1/LPI_102-105.pdf /home/user/text/hellow ... /home/user/names/_kik_my /home/user/names/__asterisk /home/user/names/.j_bash /home/user/names/term.h /home/user/names/_hrypun /home/user/names/.passwd /home/user/sh/file.Cs /home/user/sh/C.C /home/user/sh/rn /home/user/sh/file.C |
$find ~ -atime +2
/home/user/lpi 1/LPI_101-104.pdf /home/user/lpi 1/LPI_101-103.pdf /home/user/lpi 1/LPI_102-106.pdf /home/user/lpi 1/LPI_102-111.pdf /home/user/lpi 1/LPI_101-102.pdf /home/user/lpi 1/LPI_101-101.pdf /home/user/lpi 1/LPI_102-108.pdf /home/user/lpi 1/LPI_101-110.pdf /home/user/lpi 1/LPI_102-105.pdf /home/user/text/hellow ... /home/user/names/_kik_my /home/user/names/__asterisk /home/user/names/.j_bash /home/user/names/term.h /home/user/names/_hrypun /home/user/names/.passwd /home/user/sh/file.Cs /home/user/sh/C.C /home/user/sh/rn /home/user/sh/file.C |
$find ~ -mmin -5
/home/user/.lilalo /home/user/.lilalo/.report.dat /home/user/.lilalo/2360713135725919612-1539780334.script /home/user/.lilalo/2360713135725919612-1539780334.info /home/user/.lilalo/11514264161281828959-1539766030.script |
$find ~ -mmin -5
/home/user/.lilalo /home/user/.lilalo/.report.dat /home/user/.lilalo/2360713135725919612-1539780334.script /home/user/.lilalo/2360713135725919612-1539780334.info /home/user/.lilalo/11514264161281828959-1539766030.script |
$find / -type l
/sys/devices/system/cpu/cpu0/subsystem /sys/devices/system/cpu/cpu0/node0 /sys/devices/system/memory/memory0/node0 /sys/devices/system/memory/memory1/node0 /sys/devices/system/memory/memory2/node0 /sys/devices/system/memory/memory3/node0 /sys/devices/system/node/node0/memory0 /sys/devices/system/node/node0/memory1 /sys/devices/system/node/node0/memory2 /sys/devices/system/node/node0/memory3 ... find: `/proc/9578/task/9578/ns': Permission denied /proc/9578/task/9578/cwd /proc/9578/task/9578/root /proc/9578/task/9578/exe find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied /proc/9578/cwd /proc/9578/root /proc/9578/exe |
$find / -type l
/sys/devices/system/cpu/cpu0/subsystem /sys/devices/system/cpu/cpu0/node0 /sys/devices/system/memory/memory0/node0 /sys/devices/system/memory/memory1/node0 /sys/devices/system/memory/memory2/node0 /sys/devices/system/memory/memory3/node0 /sys/devices/system/node/node0/memory0 /sys/devices/system/node/node0/memory1 /sys/devices/system/node/node0/memory2 /sys/devices/system/node/node0/memory3 ... find: `/proc/9578/task/9578/ns': Permission denied /proc/9578/task/9578/cwd /proc/9578/task/9578/root /proc/9578/task/9578/exe find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied /proc/9578/cwd /proc/9578/root /proc/9578/exe |
$find / -user user
find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied /tmp/etccopy /tmp/etccopy/console-cyrillic /tmp/etccopy/sysctl.conf /tmp/etccopy/screenrc /tmp/etccopy/logrotate.conf /tmp/etccopy/hosts.deny /tmp/etccopy/bash.bashrc /tmp/etccopy/blkid.tab.old ... /proc/9586/stack /proc/9586/cpuset /proc/9586/cgroup /proc/9586/oom_score /proc/9586/oom_adj /proc/9586/oom_score_adj /proc/9586/loginuid /proc/9586/sessionid /proc/9586/coredump_filter /proc/9586/io |
$find / -user user
find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied /tmp/etccopy /tmp/etccopy/console-cyrillic /tmp/etccopy/sysctl.conf /tmp/etccopy/screenrc /tmp/etccopy/logrotate.conf /tmp/etccopy/hosts.deny /tmp/etccopy/bash.bashrc /tmp/etccopy/blkid.tab.old ... /proc/9586/stack /proc/9586/cpuset /proc/9586/cgroup /proc/9586/oom_score /proc/9586/oom_adj /proc/9586/oom_score_adj /proc/9586/loginuid /proc/9586/sessionid /proc/9586/coredump_filter /proc/9586/io |
$find / -perm +6000
find: `/etc/ssl/private': Permission denied /usr/lib/openssh/ssh-keysign /usr/lib/pt_chown /usr/lib/eject/dmcrypt-get-device /usr/bin/chage /usr/bin/crontab /usr/bin/passwd /usr/bin/dotlockfile /usr/bin/mail-lock /usr/bin/mail-unlock ... find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied find: `/proc/9594/task/9594/fd/5': No such file or directory find: `/proc/9594/task/9594/fdinfo/5': No such file or directory find: `/proc/9594/fd/5': No such file or directory find: `/proc/9594/fdinfo/5': No such file or directory |
$find / -perm +6000
find: `/etc/ssl/private': Permission denied /usr/lib/openssh/ssh-keysign /usr/lib/pt_chown /usr/lib/eject/dmcrypt-get-device /usr/bin/chage /usr/bin/crontab /usr/bin/passwd /usr/bin/dotlockfile /usr/bin/mail-lock /usr/bin/mail-unlock ... find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied find: `/proc/9594/task/9594/fd/5': No such file or directory find: `/proc/9594/task/9594/fdinfo/5': No such file or directory find: `/proc/9594/fd/5': No such file or directory find: `/proc/9594/fdinfo/5': No such file or directory |
$ls
backup granata.jpg names sh touchlist bigfile Light_Alloy_4.4.784_RC2_by_FAFNIR.exe newfile soft < touchlist bin lpi 1 ogo.jpg sorted unsorted errlog lpi 2 pamyatka.pdf sorted_passwd file man_smb_conf press_any_key_to_continue.jpg source freebsd.jpg matrix.jpg proj text |
$ls
backup granata.jpg names sh touchlist bigfile Light_Alloy_4.4.784_RC2_by_FAFNIR.exe newfile soft < touchlist bin lpi 1 ogo.jpg sorted unsorted errlog lpi 2 pamyatka.pdf sorted_passwd file man_smb_conf press_any_key_to_continue.jpg source freebsd.jpg matrix.jpg proj text |
$find / -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied find: `/run/exim4': Permission denied ... find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied |
$find / -regex '.*(\.tar\.gz|\.tgz|\.rpm)'
find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied find: `/run/exim4': Permission denied ... find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied |
$ls
backup granata.jpg names sh touchlist bigfile Light_Alloy_4.4.784_RC2_by_FAFNIR.exe newfile soft < touchlist bin lpi 1 ogo.jpg sorted unsorted errlog lpi 2 pamyatka.pdf sorted_passwd file man_smb_conf press_any_key_to_continue.jpg source freebsd.jpg matrix.jpg proj text |
$ls
backup granata.jpg names sh touchlist bigfile Light_Alloy_4.4.784_RC2_by_FAFNIR.exe newfile soft < touchlist bin lpi 1 ogo.jpg sorted unsorted errlog lpi 2 pamyatka.pdf sorted_passwd file man_smb_conf press_any_key_to_continue.jpg source freebsd.jpg matrix.jpg proj text |
$find / -regex '.*(\.tar\.gz|\.tgz|\.rpm)' | exec cp {} /tmp
cp: cannot stat `{}': No such file or directory find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied ... find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied |
$find / -regex '.*(\.tar\.gz|\.tgz|\.rpm)' | exec cp {} /tmp
cp: cannot stat `{}': No such file or directory find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied ... find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied |
$find / -regex '.*(\.tar\.gz|\.tgz|\.rpm)' | exec cp {} /tmp \;
cp: target `;' is not a directory find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied ... find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied |
$find / -regex '.*(\.tar\.gz|\.tgz|\.rpm)' | exec cp {} /tmp \;
cp: target `;' is not a directory find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied ... find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied |
$find / -path \/tmp -prune -regex '.*(\.tar\.gz|\.tgz|\.rpm)' | exec cp {} /tmp \;
cp: target `;' is not a directory find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied ... find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied |
$find / -path \/tmp -prune -regex '.*(\.tar\.gz|\.tgz|\.rpm)' | exec cp {} /tmp \;
cp: target `;' is not a directory find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied ... find: `/proc/7787/task/7787/ns': Permission denied find: `/proc/7787/fd': Permission denied find: `/proc/7787/fdinfo': Permission denied find: `/proc/7787/ns': Permission denied find: `/proc/9578/task/9578/fd': Permission denied find: `/proc/9578/task/9578/fdinfo': Permission denied find: `/proc/9578/task/9578/ns': Permission denied find: `/proc/9578/fd': Permission denied find: `/proc/9578/fdinfo': Permission denied find: `/proc/9578/ns': Permission denied |
$find / -path \/proc -prune -regex '.*(\.tar\.gz|\.tgz|\.rpm)' | exec cp {} /tmp \;
cp: target `;' is not a directory find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied find: `/run/exim4': Permission denied find: `/root': Permission denied |
$find / -path \/proc -prune -regex '.*(\.tar\.gz|\.tgz|\.rpm)' | exec cp {} /tmp \;
cp: target `;' is not a directory find: `/etc/ssl/private': Permission denied find: `/lost+found': Permission denied find: `/var/cache/ldconfig': Permission denied find: `/var/spool/exim4': Permission denied find: `/var/spool/cron/crontabs': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/iptraf': Permission denied find: `/home/petr/.ssh': Permission denied find: `/home/ivan/.ssh': Permission denied find: `/run/exim4': Permission denied find: `/root': Permission denied |
$find / -name core -ok rm -f {} \;
< rm ... /lib/modules/3.2.0-4-amd64/kernel/drivers/mmc/core > ? n < rm ... /lib/modules/3.2.0-4-amd64/kernel/drivers/infiniband/core > ? n^C |
$find / -name core -ok rm -f {} \;
< rm ... /lib/modules/3.2.0-4-amd64/kernel/drivers/mmc/core > ? n < rm ... /lib/modules/3.2.0-4-amd64/kernel/drivers/infiniband/core > ? n^C |
$cp no_file_with_this_name /tmp
cp: cannot stat `no_file_with_this_name': No such file or directory |
$echo $?
1 |
$test 5 -gt 1
|
$echo $?
0 |
$test 5 -lt 1
|
$echo $?
1 |
$test -z "$STRING"
|
$test -z $STRING
|
$echo $?
0 |
$test -z "$STRING"
|
$echo $?
0 |
$test "$P" != print
|
$echo $?
0 |
$test -e /etc/motd
|
$echo $?
0 |
$test -d /usr/local/bin/
|
$test -r /etc/shadow
|
$echo $?
1 |
$test -k /tmp/
|
$echo $?
0 |
Время первой команды журнала | 10:54:36 2018-10-17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:12:55 2018-10-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 27.72 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.01 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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