/l3/users/slm/2018-12-minsk-aws/student05.BigClassRoom/user :1 :2 |
|
$lscpu
Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel ... CPU MHz: 2000.000 CPU max MHz: 2500.0000 CPU min MHz: 2000.0000 BogoMIPS: 5000.37 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 3072K NUMA node0 CPU(s): 0-3 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm kaiser tpr_shadow vnmi flexpriority dtherm |
$cat /proc/c
cgroups cmdline consoles cpuinfo crypto |
$cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping : 7 microcode : 0x705 cpu MHz : 2000.000 cache size : 3072 KB physical id : 0 ... fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm kaiser tpr_shadow vnmi flexpriority dtherm bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf bogomips : 5000.37 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: |
$free -m
total used free shared buff/cache available Mem: 7952 748 6547 152 656 6821 Swap: 8154 0 8154 |
$df -h
Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 796M 9.2M 787M 2% /run /dev/sda1 450G 4.2G 423G 1% / tmpfs 3.9G 8.9M 3.9G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup tmpfs 796M 20K 796M 1% /run/user/117 tmpfs 796M 36K 796M 1% /run/user/1001 |
$ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 1c:6f:65:e4:ab:ca brd ff:ff:ff:ff:ff:ff inet 172.20.13.188/25 brd 172.20.13.255 scope global dynamic enp2s0 valid_lft 688224sec preferred_lft 688224sec inet6 fe80::1e6f:65ff:fee4:abca/64 scope link valid_lft forever preferred_lft forever |
$ssh user@172.20.13.183
The authenticity of host '172.20.13.183 (172.20.13.183)' can't be established. ECDSA key fingerprint is SHA256:OmAUOGefATc3fUfxoq0a8q0SorClVWEnwAh7KqphL8A. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '172.20.13.183' (ECDSA) to the list of known hosts. user@172.20.13.183's password: Linux instructor 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) 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: Mon Dec 17 12:24:00 2018 from 172.20.13.180 l3-agent is already running: pid=2101; pidfile=/home/user/.lilalo/l3-agent.pid user@instructor:~$ screen -X Please specify a command. user@instructor:~$ exit logout Connection to 172.20.13.183 closed. |
$ssh user@172.20.13.183 screen -X
user@172.20.13.183's password: Please specify a command. |
$ssh user@172.20.13.183
user@172.20.13.183's password: Linux instructor 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) 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: Mon Dec 17 12:24:38 2018 from 172.20.13.192 l3-agent is already running: pid=2101; pidfile=/home/user/.lilalo/l3-agent.pid user@instructor:~$ screen -x ... NUMA node0 CPU(s): 0-3 | Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca | cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp| lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperf| mperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid | sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm epb ka| iser tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm id| a arat pln pts | [user@instructor:~]$ | -------------------------------------------------------------------------------- |
$dmidecode
bash: dmidecode: command not found |
$sudo dmidecode
>>> /etc/sudoers: syntax error near line 24 <<< sudo: parse error in /etc/sudoers near line 24 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin |
$sudo dmidecode
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for user: # dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.4 present. 37 structures occupying 1173 bytes. ... Ending Address: 0x000000003FF Range Size: 1 kB Physical Device Handle: 0x001D Memory Array Mapped Address Handle: 0x001E Partition Row Position: 1 Handle 0x0023, DMI type 32, 11 bytes System Boot Information Status: No errors detected Handle 0x0024, DMI type 127, 4 bytes End Of Table |
$bash
bash bashbug |
$bash
bash bashbug |
$vi .bash
|
$vi .bashrc
|
$i
i386 identify-im6.q16 in ipcs iagno iecset infocmp ipod-read-sysinfo-extended iccdump if infotocap ipod-time-sync iccgamut igawk inkscape iptables-xml icclu ijoin inkview ischroot iceauth ijs_pxljr install isdv4-serial-debugger ico ilbmtoppm instmodsh isdv4-serial-inputattach icombine illumread intel-virtual-output isodump icontopbm imagetops invprofcheck isoinfo iconv imgtoppm ionice isovfy id import ip ispell identify import-im6 ipcmk ispell-wrapper identify-im6 import-im6.q16 ipcrm itweb-settings |
$ls
ls lsattr lsb_release lsinitramfs lslocks lsmod lsof lspgpot ls2ti3 lsblk lscpu lsipc lslogins lsns lspci lsusb |
$cat .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells. # Note: PS1 and umask are already set in /etc/profile. You should not # need this unless you want different defaults for root. # PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' # umask 022 # You may uncomment the following lines if you want `ls' to be colorized: # export LS_OPTIONS='--color=auto' # eval "`dircolors`" # alias ls='ls $LS_OPTIONS' # alias ll='ls $LS_OPTIONS -l' # alias l='ls $LS_OPTIONS -lA' # # Some more alias to avoid making mistakes: # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i' . /etc/bash_completion . /home/user/.lilalo/l3bashrc && _l3_start |
$sudo dmidecode
# dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.4 present. 37 structures occupying 1173 bytes. Table at 0x000F0100. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: Award Software International, Inc. Version: F3 Release Date: 06/09/2010 ... Ending Address: 0x000000003FF Range Size: 1 kB Physical Device Handle: 0x001D Memory Array Mapped Address Handle: 0x001E Partition Row Position: 1 Handle 0x0023, DMI type 32, 11 bytes System Boot Information Status: No errors detected Handle 0x0024, DMI type 127, 4 bytes End Of Table |
$sudo apt install hdparm
Reading package lists... Done Building dependency tree Reading state information... Done hdparm is already the newest version (9.51+ds-1+deb9u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
$sudo hdparm
hdparm - get/set hard disk parameters - version v9.51, by Mark Lord. clue=6 Usage: hdparm [options] [device ...] Options: -a Get/set fs readahead -A Get/set the drive look-ahead flag (0/1) -b Get/set bus state (0 == off, 1 == on, 2 == tristate) -B Set Advanced Power Management setting (1-255) -c Get/set IDE 32-bit IO setting -C Check drive power mode status ... --sanitize-block-erase Start block erase operation --sanitize-crypto-scramble Change the internal encryption keys that used for used data --sanitize-freeze-lock Lock drive's sanitize features until next power cycle --sanitize-overwrite PATTERN Overwrite the internal media with constant PATTERN --sanitize-status Show sanitize status information --security-help Display help for ATA security commands --trim-sector-ranges Tell SSD firmware to discard unneeded data sectors: lba:count .. --trim-sector-ranges-stdin Same as above, but reads lba:count pairs from stdin --verbose Display extra diagnostics from some commands --write-sector Repair/overwrite a (possibly bad) sector directly on the media (VERY DANGEROUS) |
$b
b2sum bf_compact bluetoothctl bogoupgrade btattach bzegrep baobab bf_compact-bdb bluetooth-sendto bogoupgrade-bdb btmgmt bzexe base32 bf_copy bmptopnm bogoutil btmon bzfgrep base64 bf_copy-bdb bmptoppm bogoutil-bdb buildhash bzgrep basename bf_tar bmtoa bootctl builtin bzip2 bash bf_tar-bdb bogofilter brasero bunzip2 bzip2recover bashbug bg bogofilter-bdb break busctl bzless bc bind bogolexer broadwayd busybox bzmore bccmd bioradtopgm bogolexer-bdb brushtopbm bzcat bdftopcf bitmap bogotune bsd-from bzcmp bdftruncate bluemoon bogotune-bdb bsd-write bzdiff |
$blue
bluemoon bluetoothctl bluetooth-sendto |
$cat /proc/pa
pagetypeinfo partitions |
$cat /proc/partitions
major minor #blocks name 8 0 488386584 sda 8 1 480032768 sda1 8 2 1 sda2 8 5 8350720 sda5 |
$df -h
Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 796M 9.2M 787M 2% /run /dev/sda1 450G 4.2G 423G 1% / tmpfs 3.9G 8.9M 3.9G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup tmpfs 796M 20K 796M 1% /run/user/117 tmpfs 796M 40K 796M 1% /run/user/1001 |
$sudo fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x6c76fd06 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 960067583 960065536 457.8G 83 Linux /dev/sda2 960069630 976771071 16701442 8G 5 Extended /dev/sda5 960069632 976771071 16701440 8G 82 Linux swap / Solaris |
$swell-foop
.bash_history .bashrc Desktop/ .gnupg/ .lilalo/ Music/ Public/ Videos/ .bash_logout .cache/ Documents/ .ICEauthority .local/ Pictures/ .ssh/ .viminfo .bash_profile .config/ Downloads/ .l3rc .mozilla/ .profile Templates/ |
$sudo bonnie
bonnie bonnie++ |
$sudo bonnie
You must use the "-u" switch when running as root. usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.97 |
$sudo bonnie++
You must use the "-u" switch when running as root. usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.97 |
$sudo bonnie /dev/sda
usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.97 |
$sudo bonnie -d /tmp/
You must use the "-u" switch when running as root. usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.97 |
$sudo bonnie -d /tmp/ -s 1600M -n 0 -m TEST -f -b -u user
Using uid:1001, gid:1001. File size should be double RAM for good results, RAM is 7952M. usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.97 |
$sudo bonnie -d /tmp/ -s 8000M -n 0 -m TEST -f -b -u user
Using uid:1001, gid:1001. File size should be double RAM for good results, RAM is 7952M. usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.97 |
$sudo bonnie -d /tmp/ -s 8000M -n 0 -m TEST -f -b -u user
bonnie bonnie++ |
$sudo bonnie++ -d /tmp/ -s 7952M -n 0 -m TEST -f -b -u user
Using uid:1001, gid:1001. File size should be double RAM for good results, RAM is 7952M. usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.97 |
$sudo bonnie++ -d /tmp/ -s 6000M -n 0 -m TEST -f -b -u user
Using uid:1001, gid:1001. File size should be double RAM for good results, RAM is 7952M. usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.97 |
$sudo bonnie++ -d /tmp/ -s 16000M -n 0 -m TEST -f -b -u user
Using uid:1001, gid:1001. Writing intelligently...done Rewriting...done Reading intelligently...done start 'em...done...done...done...done...done... Version 1.97 ------Sequential Output------ --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP TEST 16000M 59965 10 27407 4 59815 5 85.4 2 Latency 419ms 3421ms 299ms 672ms 1.97,1.97,TEST,1,1545042075,16000M,,,,59965,10,27407,4,,,59815,5,85.4,2,,,,,,,,,,,,,,,,,,,419ms,3421ms,,299ms,672ms,,,,,, |
$6n1mjkguyo
bash: 6n1mjkguyo: command not found |
$]
bash: ]: command not found |
$ls /tmp
pulse-PKdhtXMmr18n ssh-CHtmyIwcB83x systemd-private-299bd81fd2f149e180d3f96d36647003-colord.service-60gpLF systemd-private-299bd81fd2f149e180d3f96d36647003-rtkit-daemon.service-0fqIdD systemd-private-299bd81fd2f149e180d3f96d36647003-systemd-timesyncd.service-3MA7bA tracker-extract-files.1001 |
$sudo apt install curl
Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcurl3 The following NEW packages will be installed: curl libcurl3 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 519 kB of archives. After this operation, 989 kB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://ftp.by.debian.org/debian stretch/main amd64 libcurl3 amd64 7.52.1-5+deb9u8 Cannot initiate the connection to 172.20.13.183:3128 (172.20.13.183). - connect (101: Network is unreachable) Err:2 http://ftp.by.debian.org/debian stretch/main amd64 curl amd64 7.52.1-5+deb9u8 Cannot initiate the connection to 172.20.13.183:3128 (172.20.13.183). - connect (101: Network is unreachable) E: Failed to fetch http://ftp.by.debian.org/debian/pool/main/c/curl/libcurl3_7.52.1-5+deb9u8_amd64.deb Cannot initiate the connection to 172.20.13.183:3128 (172.20.13.183). - connect (101: Network is unreachable) E: Failed to fetch http://ftp.by.debian.org/debian/pool/main/c/curl/curl_7.52.1-5+deb9u8_amd64.deb Cannot initiate the connection to 172.20.13.183:3128 (172.20.13.183). - connect (101: Network is unreachable) E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
$ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether 1c:6f:65:e4:ab:ca brd ff:ff:ff:ff:ff:ff |
$sudo apt install curl
curl libcurl3 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 519 kB of archives. After this operation, 989 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ftp.by.debian.org/debian stretch/main amd64 libcurl3 amd64 7.52.1-5+deb9u8 [292 kB] Get:2 http://ftp.by.debian.org/debian stretch/main amd64 curl amd64 7.52.1-5+deb9u8 [228 kB] Fetched 519 kB in 0s (33.3 MB/s) Selecting previously unselected package libcurl3:amd64. (Reading database ... 135979 files and directories currently installed.) Preparing to unpack .../libcurl3_7.52.1-5+deb9u8_amd64.deb ... Unpacking libcurl3:amd64 (7.52.1-5+deb9u8) ... Selecting previously unselected package curl. Preparing to unpack .../curl_7.52.1-5+deb9u8_amd64.deb ... Unpacking curl (7.52.1-5+deb9u8) ... Setting up libcurl3:amd64 (7.52.1-5+deb9u8) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up curl (7.52.1-5+deb9u8) ... Progress: [ 90%] [############################################################################################..........] |
$nc
Cmd line: : forward host lookup failed: Unknown host |
$clear
|
$curl cheat.sh/ls
# Displays everything in the target directory ls path/to/the/target/directory # Displays everything including hidden files ls -a # Displays all files, along with the size (with unit suffixes) and timestamp ls -lh # Display files, sorted by size ls -S # Display directories only ls -d */ # Display directories only, include hidden ls -d .*/ */ |
$curl cheat.sh/apt
# To search a package: apt search package # To show package informations: apt show package # To fetch package list: apt update # To download and install updates without installing new package: apt upgrade # To download and install the updates AND install new necessary packages: apt dist-upgrade # Full command: apt update && apt dist-upgrade # To install a new package(s): apt install package(s) # To uninstall package(s) apt remove package(s) |
$curl cheat.sh/df
# Printout disk free space in a human readable format df -h # Disk free space for ext2 file systems df -t ext2 # Disk free space for file systems except ext2 df -x ext2 # Show inode usage df -i # Show information about a distinct file system /path df /path |
$ls
Desktop df Documents Downloads Music Pictures Public Templates Videos |
$cat df
# Printout disk free space in a human readable format df -h # Disk free space for ext2 file systems df -t ext2 # Disk free space for file systems except ext2 df -x ext2 # Show inode usage df -i # Show information about a distinct file system /path df /path |
$rm df
|
$curl wttr.in?2n
Weather report: Minsk, Belarus Overcast .--. -12--5 °C .-( ). ← 22 km/h (___.__)__) 7 km 0.3 mm ┌─────────────┐ ┌───────────────────────┤ Mon 17 Dec ├───────────────────────┐ │ Noon └──────┬──────┘ Night │ ├──────────────────────────────┼──────────────────────────────┤ ... ┌───────────────────────┤ Tue 18 Dec ├───────────────────────┐ │ Noon └──────┬──────┘ Night │ ├──────────────────────────────┼──────────────────────────────┤ │ .-. Moderate snow │ Freezing fog │ │ ( ). -9--6 °C │ _ - _ - _ - -10 °C │ │ (___(__) ↖ 8-10 km/h │ _ - _ - _ ↑ 5-8 km/h │ │ * * * * 12 km │ _ - _ - _ - 15 km │ │ * * * * 0.1 mm | 0% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┘ Follow @igor_chubin for wttr.in updates |
$curl qrenco.de/bla bla
█████████████████████████████ █████████████████████████████ ████ ▄▄▄▄▄ ███▄█ █ ▄▄▄▄▄ ████ ████ █ █ █▄█▄█▀█ █ █ ████ ████ █▄▄▄█ ██ ▀ ▄█ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█ █ █▄█▄▄▄▄▄▄▄████ ████▄▄ ▀▄▄▄▄ ▀▄▀▄ ▄▀██ ▀▀████ ████▄█▀█▄ ▄▀█▄▀ ▀ ▄ ▀█▄ ████ ████████▄█▄▄ █ ▄█▄ ▄█▀█▀ ████ ████ ▄▄▄▄▄ █ ▀██▄█▀█▄ ▄ ▄████ ████ █ █ █▄▄▄▀▄▀▄▀▄▀ ▄████ ████ █▄▄▄█ █ █ ▀ ▄ ▀▀█▀▄████ ████▄▄▄▄▄▄▄█▄█▄▄█▄▄▄██▄▄▄████ █████████████████████████████ █████████████████████████████ curl: (6) Could not resolve host: bla |
$curl qrenco.de/"bla bla"
█████████████████████████████ █████████████████████████████ ████ ▄▄▄▄▄ █▀▄█▀▄█ ▄▄▄▄▄ ████ ████ █ █ █▀▄█▀██ █ █ ████ ████ █▄▄▄█ █▀▀ ▄ █ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█▄█ ▀ █▄▄▄▄▄▄▄████ ████▄▄▄▄ ▀▄▄ ▀█ ▄▀ █ █▄▀████ ████▀▄██▀▄▄▀ ▀▄▄██▄▄█▀ ▄▀████ █████▄▄█▄█▄█ ▀ ▀▀▀ ▀█▀█▀████ ████ ▄▄▄▄▄ █▄▄█▀ ▀ ▀█▄ ▄█████ ████ █ █ █ ▄██ ██▀ █▀█▄████ ████ █▄▄▄█ █ █ ▄█▄█▀▀▀ ██████ ████▄▄▄▄▄▄▄█▄▄█▄█▄█▄███▄█████ █████████████████████████████ █████████████████████████████ |
$curl qrenco.de/bla+bla
█████████████████████████████ █████████████████████████████ ████ ▄▄▄▄▄ █ ▀█▀▄█ ▄▄▄▄▄ ████ ████ █ █ █ ▄ ▄ █ █ █ ████ ████ █▄▄▄█ █▀▄ ▄ █ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█▄█▄█▄█▄▄▄▄▄▄▄████ ████▄▄█▀ ▄▄▀▀███ ▀█▄█ ▄ ▄████ █████▀▀▄ ▀▄▄▄▀▄▀ █▄▄ ▄█▄▀████ ████▄▄█▄██▄█ ▄▀ ▀▄▄█▀█▀ ▄████ ████ ▄▄▄▄▄ █▀▄▄▄█▀ ▀ ▀█▄█████ ████ █ █ █▄▄ █ ▄ ██ ▀████ ████ █▄▄▄█ █▀██▀ ▄█▀▄█▄██████ ████▄▄▄▄▄▄▄█▄▄▄▄██▄█████▄████ █████████████████████████████ █████████████████████████████ |
$clear
|
$"dsd"
bash: dsd: command not found |
$echo "dsd"
dsd |
$echo "dsd" | curl -F-=\<- qrenco.de
█████████████████████████████ █████████████████████████████ ████ ▄▄▄▄▄ ██ ▀ ▄█ ▄▄▄▄▄ ████ ████ █ █ █▄ █ ▄█ █ █ ████ ████ █▄▄▄█ ███▄█ █ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█ ▀▄▀ █▄▄▄▄▄▄▄████ ████▄ ▄█ ▄▄▄ ▄ ▄█▄ ██▀▄█▀████ ████ ▀▀█▄▄▄▄▀▄▀█▄█▀█▄▄█ ▄████ ████▄█▄▄██▄█▀▀▀▀▄▀▄▀▄██ ████ ████ ▄▄▄▄▄ █ ▄█ ▀ ▄ ▀▀▄▄▄████ ████ █ █ █▄ ▀▄█▄ █▀ ▄████ ████ █▄▄▄█ █ ▀ █▄█▀▀ ▀█▀▄████ ████▄▄▄▄▄▄▄█▄███▄█▄███▄▄▄████ █████████████████████████████ █████████████████████████████ |
$echo "dsd efefefe" | curl -F-=\<- qrenco.de
█████████████████████████████ █████████████████████████████ ████ ▄▄▄▄▄ █▀ █ ▄█ ▄▄▄▄▄ ████ ████ █ █ █▄ █▀▄█ █ █ ████ ████ █▄▄▄█ █ ██▀ █ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█ ▀ ▀ █▄▄▄▄▄▄▄████ ████ ▄█▄▀▀▄ ▀▄ ▀██▄ ▀▄▄▀████ █████▄█▄▀█▄ ▄█▀█ ▄▀▄█ █▀ ████ ████▄▄██▄▄▄▄ ▀ ▀█▀█ ▄██▄ ████ ████ ▄▄▄▄▄ █▄█▀ ▄█ ▄▄█████ ████ █ █ █▀ ██▄▀ ▀██▀▀████ ████ █▄▄▄█ █▀▀▀█▄▀█▄ █▄█▄████ ████▄▄▄▄▄▄▄█▄█▄█▄█▄▄▄▄█▄█████ █████████████████████████████ █████████████████████████████ |
$clear
|
$echo "dsd efefefe" | curl -F-=\<- qrenco.de
█████████████████████████████ █████████████████████████████ ████ ▄▄▄▄▄ █▀ █ ▄█ ▄▄▄▄▄ ████ ████ █ █ █▄ █▀▄█ █ █ ████ ████ █▄▄▄█ █ ██▀ █ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█ ▀ ▀ █▄▄▄▄▄▄▄████ ████ ▄█▄▀▀▄ ▀▄ ▀██▄ ▀▄▄▀████ █████▄█▄▀█▄ ▄█▀█ ▄▀▄█ █▀ ████ ████▄▄██▄▄▄▄ ▀ ▀█▀█ ▄██▄ ████ ████ ▄▄▄▄▄ █▄█▀ ▄█ ▄▄█████ ████ █ █ █▀ ██▄▀ ▀██▀▀████ ████ █▄▄▄█ █▀▀▀█▄▀█▄ █▄█▄████ ████▄▄▄▄▄▄▄█▄█▄█▄█▄▄▄▄█▄█████ █████████████████████████████ █████████████████████████████ |
$clear
|
$sudo apt install jq
Get:1 http://ftp.by.debian.org/debian stretch/main amd64 libonig4 amd64 6.1.3-2 [146 kB] Get:2 http://ftp.by.debian.org/debian stretch/main amd64 libjq1 amd64 1.5+dfsg-1.3 [123 kB] Get:3 http://ftp.by.debian.org/debian stretch/main amd64 jq amd64 1.5+dfsg-1.3 [58.6 kB] Fetched 327 kB in 0s (27.4 MB/s) Selecting previously unselected package libonig4:amd64. (Reading database ... 135996 files and directories currently installed.) Preparing to unpack .../libonig4_6.1.3-2_amd64.deb ... Unpacking libonig4:amd64 (6.1.3-2) ... Selecting previously unselected package libjq1:amd64. Preparing to unpack .../libjq1_1.5+dfsg-1.3_amd64.deb ... Unpacking libjq1:amd64 (1.5+dfsg-1.3) ... Selecting previously unselected package jq. Preparing to unpack .../jq_1.5+dfsg-1.3_amd64.deb ... Unpacking jq (1.5+dfsg-1.3) ... Setting up libonig4:amd64 (6.1.3-2) ... Setting up libjq1:amd64 (1.5+dfsg-1.3) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up jq (1.5+dfsg-1.3) ... Progress: [ 93%] [###############################################################################################.......] |
$vim
|
$[
1 Desktop Documents Downloads Music Pictures Public Templates Videos |
$mv 1 1.json
|
$ls
1.json Desktop Documents Downloads Music Pictures Public Templates Videos |
$cat 1.json | jq
[ { "name": "Vladimir", "hostname": "m5" } ] |
$cat 1.json | jq .[1].name
null |
$cat 1.json | jq .[0].name
"Vladimir" |
$cat 1.json | jq -r .[0].name
Vladimir |
$cat 1.json | jq -r .[]
{ "name": "Vladimir", "hostname": "m5" } |
$cat 1.json | jq -r '.[]'
{ "name": "Vladimir", "hostname": "m5" } |
$cat 1.json | jq -r '.[] | .name + .hostname'
Vladimirm5 |
$cat 1.json | jq -r '.[] | .name + " " + .hostname'
Vladimir m5 |
$git
bash: git: command not found |
$sudo apt install git
git git-cola git-flow gitmagic git-restore-mtime git2cl git-core git-ftp git-man git-review git-all git-crypt gitg git-mediawiki git-sh git-annex git-cvs git-gui git-merge-changelog gitso gitano git-daemon-run git-hub git-notifier gitstats git-arch git-daemon-sysvinit github-backup gitolite3 git-svn git-big-picture git-doc gitinspector git-phab gitweb git-buildpackage git-dpm gitit gitpkg git-buildpackage-rpm git-el gitk git-reintegrate git-build-recipe git-email gitlab-shell git-remote-bzr git-bzr git-extras gitlab-workhorse git-remote-gcrypt |
$sudo apt install git
Selecting previously unselected package liberror-perl. (Reading database ... 136016 files and directories currently installed.) Preparing to unpack .../liberror-perl_0.17024-1_all.deb ... Unpacking liberror-perl (0.17024-1) ... Selecting previously unselected package git-man. Preparing to unpack .../git-man_1%3a2.11.0-3+deb9u4_all.deb ... Unpacking git-man (1:2.11.0-3+deb9u4) ... Selecting previously unselected package git. Preparing to unpack .../git_1%3a2.11.0-3+deb9u4_amd64.deb ... Unpacking git (1:2.11.0-3+deb9u4) ... Selecting previously unselected package rsync. Preparing to unpack .../rsync_3.1.2-1+deb9u1_amd64.deb ... Unpacking rsync (3.1.2-1+deb9u1) ... Setting up git-man (1:2.11.0-3+deb9u4) ... Setting up liberror-perl (0.17024-1) ... Setting up rsync (3.1.2-1+deb9u1) ... Created symlink /etc/systemd/system/multi-user.target.wants/rsync.service → /lib/systemd/system/rsync.service. Processing triggers for systemd (232-25+deb9u6) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up git (1:2.11.0-3+deb9u4) ... Progress: [ 95%] [#################################################################################################.....] |
$sudo apt install git-co
git-cola git-core |
$sudo apt install git-co
git-cola git-core |
$sudo apt install git-core
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: git-core 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,414 B of archives. After this operation, 8,192 B of additional disk space will be used. Get:1 http://ftp.by.debian.org/debian stretch/main amd64 git-core all 1:2.11.0-3+deb9u4 [1,414 B] Fetched 1,414 B in 0s (0 B/s) Selecting previously unselected package git-core. (Reading database ... 136918 files and directories currently installed.) Preparing to unpack .../git-core_1%3a2.11.0-3+deb9u4_all.deb ... Unpacking git-core (1:2.11.0-3+deb9u4) ... Setting up git-core (1:2.11.0-3+deb9u4) ... Progress: [ 83%] [####################################################################################..................] |
$vi github.txt
|
$cat github.txt
pisanny |
$git https://github.com/pisanny
git: 'https://github.com/pisanny' is not a git command. See 'git --help'. |
$git --help
usage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] These are common Git commands used in various situations: start a working area (see also: git help tutorial) clone Clone a repository into a new directory init Create an empty Git repository or reinitialize an existing one work on the current change (see also: git help everyday) ... merge Join two or more development histories together rebase Reapply commits on top of another base tip tag Create, list, delete or verify a tag object signed with GPG collaborate (see also: git help workflows) fetch Download objects and refs from another repository pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects 'git help -a' and 'git help -g' list available subcommands and some concept guides. See 'git help <command>' or 'git help <concept>' to read about a specific subcommand or concept. |
$man git
|
$git clone https://github.com/pisanny/ps
Cloning into 'ps'... remote: Enumerating objects: 94, done. remote: Counting objects: 100% (94/94), done. remote: Compressing objects: 100% (65/65), done. remote: Total 94 (delta 50), reused 67 (delta 26), pack-reused 0 Unpacking objects: 100% (94/94), done. |
$ls
1.json Desktop Documents Downloads github.txt Music Pictures ps Public Templates Videos |
$ls ps
Command_handler.ps1 Message_handler.ps1 Registration _Completed.ps1 Request_registration.ps1 Get_ChatId_To_Email.ps1 README.md reg.ps1 |
$rm -R ps
rm: remove write-protected regular file 'ps/.git/objects/db/fcdd9589d3bda7a77f67b711fe745bb5feb155'? rm: cannot remove 'ps/.git/objects/db': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/c5/527bd70dc68168e986c46c64a4c7b3f6c41c46'? rm: remove write-protected regular file 'ps/.git/objects/c5/8a9e932ee27ed0eaff1ede1a6bd2fbc90c7286'? rm: cannot remove 'ps/.git/objects/c5': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/2f/20c5aad7c411dc01f05f1f069ea1538b908dfd'? rm: cannot remove 'ps/.git/objects/2f': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/b9/918b17ba278700c2fe0e8a8d368d436a60d96f'? rm: cannot remove 'ps/.git/objects/b9': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/1c/bdb477d8b290c98ea4e645255cd8c7e4cb8dff'? ... rm: cannot remove 'ps/.git/objects/58': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/fd/ae90305a4e51c3ab47d15bf0ba97db90e889d2'? rm: cannot remove 'ps/.git/objects/fd': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/5f/6a231de410b8ac68c094f09dc934d67da56541'? rm: cannot remove 'ps/.git/objects/5f': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/1f/12947c92750ed88b73f99d2413e72ec13b4b2c'? rm: cannot remove 'ps/.git/objects/1f': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/82/65e5e7ed940ecbe5dfa7b0d936d1b9e33ddcd8'? rm: cannot remove 'ps/.git/objects/82': Directory not empty rm: remove write-protected regular file 'ps/.git/objects/10/aff60135d245613d1c9204b1f47588af3be4e1'? ^C |
$rm -Rf ps
|
$ls
1.json Desktop Documents Downloads github.txt Music Pictures Public Templates Videos |
$cd aws
|
$ls
README.md |
# ~/.bashrc: executed by bash(1) for non-login shells. # Note: PS1 and umask are already set in /etc/profile. You should not # need this unless you want different defaults for root. # PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' # umask 022 # You may uncomment the following lines if you want `ls' to be colorized: # export LS_OPTIONS='--color=auto' # eval "`dircolors`" # alias ls='ls $LS_OPTIONS' # alias ll='ls $LS_OPTIONS -l' # alias l='ls $LS_OPTIONS -lA' # # Some more alias to avoid making mistakes: # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i' . /etc/bash_completion . /home/user/.lilalo/l3bashrc && _l3_start
cgroups cmdline consoles cpuinfo crypto
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping : 7 microcode : 0x705 cpu MHz : 2000.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm kaiser tpr_shadow vnmi flexpriority dtherm bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf bogomips : 5000.37 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping : 7 microcode : 0x705 cpu MHz : 2000.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm kaiser tpr_shadow vnmi flexpriority dtherm bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf bogomips : 5000.37 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping : 7 microcode : 0x705 cpu MHz : 2000.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm kaiser tpr_shadow vnmi flexpriority dtherm bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf bogomips : 5000.37 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping : 7 microcode : 0x705 cpu MHz : 2000.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm kaiser tpr_shadow vnmi flexpriority dtherm bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf bogomips : 5000.37 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
major minor #blocks name 8 0 488386584 sda 8 1 480032768 sda1 8 2 1 sda2 8 5 8350720 sda5
# Printout disk free space in a human readable format df -h # Disk free space for ext2 file systems df -t ext2 # Disk free space for file systems except ext2 df -x ext2 # Show inode usage df -i # Show information about a distinct file system /path df /path
pisanny
Время первой команды журнала | 10:17:04 2018-12-17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:51:38 2018-12-17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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