/l3/users/silentw/nt-scale/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#/etc/init.d/network-manager-dispatcher stop
Stopping network events dispatcher: NetworkManagerDispatcher. |
#cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 10.0.35.1 search unix.nt |
#ntpdate ntp.lucky.net
21 Feb 14:58:54 ntpdate[32391]: adjust time server 193.193.193.107 offset 0.031901 sec |
#dpkg-reconfigure tzdata
│ Guernsey ▮ │ │ Helsinki ▒ │ │ Isle of Man ▒ │ │ Istanbul ▒ │ │ Jersey ▒ │ │ Kaliningrad ▒ │ │ Kiev ↓ │ │ │ │ │ │ <Ok> <Cancel> │ │ │ └──────────────────────────────────────────────────────────────┘ Current default timezone: 'Europe/Kiev' Local time is now: Mon Feb 21 14:59:14 EET 2011. Universal Time is now: Mon Feb 21 12:59:14 UTC 2011. |
#apt-get install console-cyrillic
│ Both Windows logo keys ↓ │ │ │ │ │ │ <Ok> <Cancel> │ │ │ └───────────────────────────────────────────────────────────────────────────┘ Selecting previously deselected package console-terminus. (Reading database ... 94072 files and directories currently installed.) Unpacking console-terminus (from .../console-terminus_4.26-2.1_all.deb) ... Selecting previously deselected package console-cyrillic. Unpacking console-cyrillic (from .../console-cyrillic_0.9-15.2_all.deb) ... Processing triggers for man-db ... Setting up console-terminus (4.26-2.1) ... Setting up console-cyrillic (0.9-15.2) ... |
#dpkg-reconfigure locales
│ ru_RU.KOI8-R │ │ ru_UA.UTF-8 │ │ uk_UA.UTF-8 │ │ │ │ │ │ <Ok> <Cancel> │ │ │ └───────────────────────────────────────────────────────────────────────────┘ Generating locales (this might take a while)... en_US.UTF-8... done ru_RU.KOI8-R... done ru_UA.UTF-8... done uk_UA.UTF-8... done en_US.UTF-8... done Generation complete. |
#apt-get install mc
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: xpdf dbview odt2txt The following NEW packages will be installed: mc 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 2140kB of archives. After this operation, 6402kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main mc 2:4.6.2~git20080311-4 [2140kB] Fetched 2140kB in 0s (2381kB/s) Selecting previously deselected package mc. (Reading database ... 94473 files and directories currently installed.) Unpacking mc (from .../mc_2%3a4.6.2~git20080311-4_i386.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up mc (2:4.6.2~git20080311-4) ... Processing triggers for menu ... |
#apt-get install strace
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: strace 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 160kB of archives. After this operation, 287kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main strace 4.5.17+cvs080723-2 [160kB] Fetched 160kB in 0s (2324kB/s) Selecting previously deselected package strace. (Reading database ... 94667 files and directories currently installed.) Unpacking strace (from .../strace_4.5.17+cvs080723-2_i386.deb) ... Processing triggers for man-db ... Setting up strace (4.5.17+cvs080723-2) ... |
#strace rote
strace: rote: command not found |
#strace route
execve("/sbin/route", ["route"], [/* 33 vars */]) = 0 brk(0) = 0x9b4d000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7789000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=52224, ...}) = 0 mmap2(NULL, 52224, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb777c000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ... write(4, "RESOLVE-ADDRESS 192.168.15.253\n"..., 31) = 31 read(4, "-15 Timeout reached\n"..., 4096) = 20 close(4) = 0 munmap(0xb741f000, 4096) = 0 write(1, "default 192.168.15.253 0"..., 77default 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 ) = 77 read(3, ""..., 1024) = 0 close(3) = 0 munmap(0xb7787000, 4096) = 0 exit_group(0) = ? |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-26lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Thu Jan 27 00:28:05 UTC 2011 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 00000000bf790000 (usable) [ 0.000000] BIOS-e820: 00000000bf790000 - 00000000bf79e000 (ACPI data) [ 0.000000] BIOS-e820: 00000000bf79e000 - 00000000bf7e0000 (ACPI NVS) ... [ 7821.738685] eth1: no IPv6 routers present [ 7824.921228] lp0: using parport0 (interrupt-driven). [ 7824.943556] ppdev: user-space parallel port driver [ 7888.298748] eth1: no IPv6 routers present [ 8413.763867] [drm] Initialized drm 1.1.0 20060810 [ 8413.767862] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16 [ 8413.767862] PCI: Setting latency timer of device 0000:00:02.0 to 64 [ 8413.767862] [drm] Initialized i915 1.6.0 20060119 on minor 0 [ 8413.905353] mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combining [ 8445.949391] mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combining |
#cfdisk
|
#dpkg -S `which cfdisk `
util-linux: /sbin/cfdisk |
#apt-get install apt-file
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl The following NEW packages will be installed: apt-file libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 171kB of archives. After this operation, 565kB of additional disk space will be used. ... Selecting previously deselected package liblist-moreutils-perl. Unpacking liblist-moreutils-perl (from .../liblist-moreutils-perl_0.22-1+b1_i386.deb) ... Selecting previously deselected package apt-file. Unpacking apt-file (from .../apt-file_2.1.5_all.deb) ... Processing triggers for man-db ... Setting up libconfig-file-perl (1.42-1) ... Setting up libapt-pkg-perl (0.1.22+b1) ... Setting up liblist-moreutils-perl (0.22-1+b1) ... Setting up apt-file (2.1.5) ... You need to run 'apt-file update' as root to update the cache. |
#apt-file update
|
#apt-get install parted
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: parted-doc The following NEW packages will be installed: parted 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 64.5kB of archives. After this operation, 176kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main parted 1.8.8.git.2008.03.24-11.1 [64.5kB] Fetched 64.5kB in 0s (1455kB/s) Selecting previously deselected package parted. (Reading database ... 94740 files and directories currently installed.) Unpacking parted (from .../parted_1.8.8.git.2008.03.24-11.1_i386.deb) ... Processing triggers for man-db ... Setting up parted (1.8.8.git.2008.03.24-11.1) ... |
#cfdisk
|
#cfdisk /sdb
|
#cfdisk /dev/sdb
|
#file -s /dev/sdb
/dev/sdb: x86 boot sector; partition 1: ID=0x83, starthead 1, startsector 63, 40001787 sectors |
#fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xf7189e91 Device Boot Start End Blocks Id System /dev/sdb1 1 2490 20000893+ 83 Linux |
#mkfs.ext3 /dev/sdb1
mke2fs 1.41.3 (12-Oct-2008) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 1250928 inodes, 5000223 blocks 250011 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 153 block groups 32768 blocks per group, 32768 fragments per group 8176 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 20 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xf7189e91 Device Boot Start End Blocks Id System /dev/sdb1 1 2490 20000893+ 83 Linux |
#file -s /dev/sdb
/dev/sdb: x86 boot sector; partition 1: ID=0x83, starthead 1, startsector 63, 40001787 sectors |
#file -l /dev/sdb
file: invalid option -- l Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file... file -C -m magicfiles Try `file --help' for more information. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bd:0e inet addr:192.168.15.1 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bd0e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:136 errors:0 dropped:0 overruns:0 frame:0 TX packets:286 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:15266 (14.9 KiB) TX bytes:22090 (21.5 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:174 errors:0 dropped:0 overruns:0 frame:0 TX packets:174 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:15974 (15.5 KiB) TX bytes:15974 (15.5 KiB) |
#ping www.lib.ru
^C |
#vi /etc/ap
--- /tmp/l3-saved-4206.30726.7798 2011-02-22 10:48:18.000000000 +0200 +++ /etc/apt/sources.list 2011-02-22 10:48:37.000000000 +0200 @@ -3,7 +3,7 @@ #deb cdrom:[Debian GNU/Linux 5.0.8 _Lenny_ - Official i386 NETINST Binary-1 20110123-01:19]/ squeeze main -deb http://10.0.35.1:9999/debian/ lenny main +deb http://10.0.35.1:9999/debian/ sqeeze main #deb-src http://10.0.35.1:9999/debian/ squeeze main #deb http://security.debian.org/ squeeze/updates main |
#vi /etc/ap
--- /tmp/l3-saved-4206.14121.21776 2011-02-22 10:49:02.000000000 +0200 +++ /etc/apt/sources.list 2011-02-22 10:49:11.000000000 +0200 @@ -3,7 +3,7 @@ #deb cdrom:[Debian GNU/Linux 5.0.8 _Lenny_ - Official i386 NETINST Binary-1 20110123-01:19]/ squeeze main -deb http://10.0.35.1:9999/debian/ sqeeze main +deb http://10.0.35.1:9999/debian/ squeeze main #deb-src http://10.0.35.1:9999/debian/ squeeze main #deb http://security.debian.org/ squeeze/updates main |
#vi /etc/ap
|
#vi /etc/apt/sources.list
|
#apt-get update
Ign http://10.0.35.1 sqeeze Release.gpg Ign http://10.0.35.1 sqeeze/main Translation-en_US Ign http://10.0.35.1 sqeeze Release Ign http://10.0.35.1 sqeeze/main Packages Ign http://10.0.35.1 sqeeze/main Packages Err http://10.0.35.1 sqeeze/main Packages 404 Not Found W: Failed to fetch http://10.0.35.1:9999/debian/dists/sqeeze/main/binary-i386/Packages 404 Not Found E: Some index files failed to download, they have been ignored, or old ones used instead. |
#apt-get update
Ign http://10.0.35.1 sqeeze Release.gpg Ign http://10.0.35.1 sqeeze/main Translation-en_US Ign http://10.0.35.1 sqeeze Release Ign http://10.0.35.1 sqeeze/main Packages Ign http://10.0.35.1 sqeeze/main Packages Err http://10.0.35.1 sqeeze/main Packages 404 Not Found W: Failed to fetch http://10.0.35.1:9999/debian/dists/sqeeze/main/binary-i386/Packages 404 Not Found E: Some index files failed to download, they have been ignored, or old ones used instead. |
#vi /etc/apt/sources.list
|
#apt-get upgrade
Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: abiword abiword-plugin-grammar abiword-plugin-mathview alacarte apt apt-file apt-utils aptitude at at-spi avahi-daemon bash bc bind9-host binutils bluez-audio bluez-utils bogofilter-bdb build-essential capplets-data cdrdao cheese cpio cpp cpp-4.3 cron cups cups-client dasher dasher-data dbus dbus-x11 dc debianutils deskbar-applet dhcp3-client dhcp3-common diff djvulibre-desktop dnsutils dpkg dpkg-dev e2fsprogs ed ekiga empathy eog epiphany-browser epiphany-browser-data ... Installing new version of config file /etc/vpnc/vpnc-script ... Installing new version of config file /etc/vpnc/example.conf ... Setting up xkb-data (1.8-2) ... Setting up tasksel-data (2.88) ... Setting up tasksel (2.88) ... Processing triggers for menu ... Processing triggers for python-support ... Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-2.6.26-2-686 Processing triggers for python-central ... |
#apt-get --help
apt 0.7.20.2 for i386 compiled on May 12 2010 20:23:50 Usage: apt-get [options] command apt-get [options] install|remove pkg1 [pkg2 ...] apt-get [options] source pkg1 [pkg2 ...] apt-get is a simple command line interface for downloading and installing packages. The most frequently used commands are update and install. Commands: update - Retrieve new lists of packages upgrade - Perform an upgrade ... -f Attempt to correct a system with broken dependencies in place -m Attempt to continue if archives are unlocatable -u Show a list of upgraded packages as well -b Build the source package after fetching it -V Show verbose version numbers -c=? Read this configuration file -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp See the apt-get(8), sources.list(5) and apt.conf(5) manual pages for more information and options. This APT has Super Cow Powers. |
#apt-get dist-upgrade
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: abiword-plugin-goffice bluez-gnome gimp-gnomevfs gimp-python gnome-mount gnome-network-admin gnome-volume-manager gstreamer0.10-gnomevfs gstreamer0.10-plugins-farsight gtkhtml3.14 hal-cups-utils libao2 libavcodec51 libdatrie0 libempathy-common libempathy-gtk-common libempathy-gtk14 libempathy14 libept0 libgdl-1-0 libgnomekbd2 libgnomekbdui2 libgraphviz4 libgvfscommon0 ... Failed to fetch http://10.0.35.1:9999/debian/pool/main/i/isc-dhcp/dhcp3-common_4.1.1-P1-15_all.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) Failed to fetch http://10.0.35.1:9999/debian/pool/main/g/gnome-pilot/gnome-pilot_2.0.17-2_i386.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) Failed to fetch http://10.0.35.1:9999/debian/pool/main/g/gnome-pilot-conduits/gnome-pilot-conduits_2.0.17-2_i386.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) Failed to fetch http://10.0.35.1:9999/debian/pool/main/l/lyx/latex-xft-fonts_1.6.7-1_all.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) Failed to fetch http://10.0.35.1:9999/debian/pool/main/o/os-prober/os-prober_1.42_i386.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) Failed to fetch http://10.0.35.1:9999/debian/pool/main/p/python-mechanize/python-mechanize_0.1.11-1.1_all.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) Failed to fetch http://10.0.35.1:9999/debian/pool/main/g/gnash/swfdec-gnome_0.8.8-5_i386.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) Failed to fetch http://10.0.35.1:9999/debian/pool/main/u/usb-modeswitch-data/usb-modeswitch-data_20100826-1_all.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) Failed to fetch http://10.0.35.1:9999/debian/pool/main/u/usb-modeswitch/usb-modeswitch_1.1.4-2_i386.deb Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (111 Connection refused) E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#top
top - 12:11:20 up 2:16, 4 users, load average: 0.17, 0.12, 0.09 Tasks: 111 total, 1 running, 110 sleeping, 0 stopped, 0 zombie Cpu(s): 1.8%us, 0.2%sy, 0.0%ni, 98.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 1884520k used, 1215384k free, 117492k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 7815612k total, 0k used, 7815612k free, 1456356k cached 2807 root 20 0 361m 20m 7220 S 9 0.7 9:10.36 Xorg 3408 user 20 0 42144 16m 9632 S 1 0.5 0:17.20 gnome-terminal 1 root 20 0 2112 616 524 S 0 0.0 0:01.16 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd ... 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 138 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod 179 root 20 0 0 0 0 S 0 0.0 0:00.00 pdflush 180 root 20 0 0 0 0 S 0 0.0 0:01.14 pdflush 181 root 15 -5 0 0 0 S 0 0.0 0:00.00 kswapd0 182 root 15 -5 0 0 0 S 0 0.0 0:00.00 aio/0 183 root 15 -5 0 0 0 S 0 0.0 0:00.00 aio/1 667 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksuspend_usbd 668 root 15 -5 0 0 0 S 0 0.0 0:00.00 khubd |
#ps aux |grep gimp
user 28045 0.5 1.0 58904 31552 ? Sl 12:09 0:00 gimp-2.4 user 28075 0.1 0.1 25768 3716 ? Sl 12:09 0:00 /usr/lib/gimp/2.0/plug-ins/xsane -gimp 9 8 -query 0 |
#kill 28045
|
#ps aux |grep gimp
user 28075 0.1 0.1 25768 3716 ? Sl 12:09 0:00 /usr/lib/gimp/2.0/plug-ins/xsane -gimp 9 8 -query 0 root 28105 0.0 0.0 3912 724 pts/4 S+ 12:11 0:00 grep gimp |
#kill 28075
|
#ps aux |grep gimp
root 28121 0.0 0.0 3912 724 pts/4 S+ 12:12 0:00 grep gimp |
#apt-get dist-upgrade
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: abiword-plugin-goffice bluez-gnome gimp-gnomevfs gimp-python gnome-mount gnome-network-admin gnome-volume-manager gstreamer0.10-gnomevfs gstreamer0.10-plugins-farsight gtkhtml3.14 hal-cups-utils libao2 libavcodec51 libdatrie0 libempathy-common libempathy-gtk-common libempathy-gtk14 libempathy14 libept0 libgdl-1-0 libgnomekbd2 libgnomekbdui2 libgraphviz4 libgvfscommon0 ... Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) Err http://10.0.35.1 squeeze/main libpcap0.8 1.1.1-2 Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) Err http://10.0.35.1 squeeze/main tcptraceroute 1.5beta7+debian-4 Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) Err http://10.0.35.1 squeeze/main gnome-nettool 2.30.0-3 Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) Err http://10.0.35.1 squeeze/main gnome-system-monitor 2.28.1-1 Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) 21% [Connecting to 10.0.35.1 (10.0.35.1)]^C |
#dmesg |grep sda
[ 0.000000] Kernel command line: root=/dev/sda1 ro quiet [ 6.679407] sd 0:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB) [ 6.679407] sd 0:0:0:0: [sda] Write Protect is off [ 6.679407] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 6.679407] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.679407] sd 0:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB) [ 6.679407] sd 0:0:0:0: [sda] Write Protect is off [ 6.679407] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 6.679407] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.679407] sda: sda1 sda2 [ 6.704024] sd 0:0:0:0: [sda] Attached SCSI disk [ 10.561609] Adding 7815612k swap on /dev/sda2. Priority:-1 extents:1 across:7815612k [ 10.905746] EXT3 FS on sda1, internal journal |
#dmesg |grep sd
[ 0.000000] Kernel command line: root=/dev/sda1 ro quiet [ 6.679407] Driver 'sd' needs updating - please use bus_type methods [ 6.679407] sd 0:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB) [ 6.679407] sd 0:0:0:0: [sda] Write Protect is off [ 6.679407] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 6.679407] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.679407] sd 0:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB) [ 6.679407] sd 0:0:0:0: [sda] Write Protect is off [ 6.679407] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 6.679407] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA ... [ 6.704024] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00 [ 6.704024] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.704024] sd 3:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) [ 6.704024] sd 3:0:0:0: [sdb] Write Protect is off [ 6.704024] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00 [ 6.704024] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.704024] sdb: sdb1 [ 6.713712] sd 3:0:0:0: [sdb] Attached SCSI disk [ 10.561609] Adding 7815612k swap on /dev/sda2. Priority:-1 extents:1 across:7815612k [ 10.905746] EXT3 FS on sda1, internal journal |
#fdisk -l /dev/sda
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0009825c Device Boot Start End Blocks Id System /dev/sda1 1 2432 19535008+ 83 Linux /dev/sda2 2433 3405 7815622+ 82 Linux swap / Solaris |
#apt-get dist-upgrade
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: abiword-plugin-goffice bluez-gnome gimp-gnomevfs gimp-python gnome-mount gnome-network-admin gnome-volume-manager gstreamer0.10-gnomevfs gstreamer0.10-plugins-farsight gtkhtml3.14 hal-cups-utils libao2 libavcodec51 libdatrie0 libempathy-common libempathy-gtk-common libempathy-gtk14 libempathy14 libept0 libgdl-1-0 libgnomekbd2 libgnomekbdui2 libgraphviz4 libgvfscommon0 ... Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) Err http://10.0.35.1 squeeze/main fast-user-switch-applet 2.24.0-6 Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) Err http://10.0.35.1 squeeze/main gcalctool 5.30.2-2 Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) Err http://10.0.35.1 squeeze/main gconf-editor 2.30.0-2 Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) Err http://10.0.35.1 squeeze/main gconf-defaults-service 2.28.1-6 Could not connect to 10.0.35.1:9999 (10.0.35.1). - connect (101 Network is unreachable) 0% [Connecting to 10.0.35.1 (10.0.35.1)]^C |
#apt-get dist-upgrade
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: abiword-plugin-goffice bluez-gnome gimp-gnomevfs gimp-python gnome-mount gnome-network-admin gnome-volume-manager gstreamer0.10-gnomevfs gstreamer0.10-plugins-farsight gtkhtml3.14 hal-cups-utils libao2 libavcodec51 libdatrie0 libempathy-common libempathy-gtk-common libempathy-gtk14 libempathy14 libept0 libgdl-1-0 libgnomekbd2 libgnomekbdui2 libgraphviz4 libgvfscommon0 ... Setting up libmono-i18n1.0-cil (2.6.7-5) ... Setting up libmono-sharpzip0.84-cil (2.6.7-5) ... Setting up libmono1.0-cil (2.6.7-5) ... Setting up update-inetd (4.38+nmu1) ... Setting up libmono-system-data-linq2.0-cil (2.6.7-5) ... Setting up libmono2.0-cil (2.6.7-5) ... Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-2.6.32-5-686 Processing triggers for python-support ... Processing triggers for menu ... |
#fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xf7189e91 Device Boot Start End Blocks Id System /dev/sdb1 1 2490 20000893+ 83 Linux |
#cat /proc/partitions
major minor #blocks name 8 0 488386584 sda 8 1 19535008 sda1 8 2 7815622 sda2 8 16 488386584 sdb 8 17 20000893 sdb1 |
#less /etc/sudoers
|
#uname -a
Linux linux1 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41 UTC 2011 i686 GNU/Linux |
#ssh user@192.168.15.253
[root@linux3:~]# cd /tmp/ [root@linux3:tmp]# dd if=/dev/zero of=file1.img count=100 bs=1024k 100+0 records in 100+0 records out 104857600 bytes (105 MB) copied, 0.253895 s, 413 MB/s [root@linux3:tmp]# [root@linux3:tmp]# [root@linux3:tmp]# dd if=/dev/zero of=file1.img seek=1000 count=1 bs=1024k 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.00375689 s, 279 MB/s |
#dd if=/dev/zero of=file1.img count=100 bs=1024k
100+0 records in 100+0 records out 104857600 bytes (105 MB) copied, 0.239407 s, 438 MB/s |
#ls -la
total 102572 drwxrwxrwt 15 root root 4096 Feb 22 14:10 . drwxr-xr-x 21 root root 4096 Feb 22 12:45 .. drwx------ 2 user user 4096 Feb 22 14:07 aptdaemon-kGsomF -rw-r--r-- 1 root root 104857600 Feb 22 14:10 file1.img -rw-r--r-- 1 user user 26 Feb 22 14:04 gnash-cookies.3251 drwxrwxrwt 2 root root 4096 Feb 22 12:53 .ICE-unix drwx------ 2 user user 4096 Feb 22 12:53 keyring-AoosjB drwx------ 2 root root 4096 Feb 22 14:08 libgksu-XUO1Nt drwx------ 2 root root 4096 Feb 22 14:08 orbit-root drwx------ 2 user user 4096 Feb 22 14:09 orbit-user drwx------ 2 user user 4096 Feb 22 13:55 plugtmp drwx------ 2 user user 4096 Feb 22 12:53 seahorse-4W52Kk drwx------ 2 user user 4096 Feb 22 12:50 seahorse-wF9eyt drwx------ 2 user user 4096 Feb 22 12:53 ssh-gsscYL2513 drwx------ 2 user user 4096 Feb 22 12:53 virtual-user.hd2XPV drwx------ 2 user user 4096 Feb 22 12:50 virtual-user.klCD9r -r--r--r-- 1 root root 11 Feb 22 12:52 .X0-lock drwxrwxrwt 2 root root 4096 Feb 22 12:52 .X11-unix |
#dd if=/dev/zero of=file2.img seek=1000 count=1 bs=1024k
1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.00336964 s, 311 MB/s |
#ll
bash: ll: command not found |
#df -h
Filesystem Size Used Avail Use% Mounted on /dev/sda1 19G 5.0G 13G 29% / tmpfs 1.5G 8.0K 1.5G 1% /lib/init/rw udev 1.5G 220K 1.5G 1% /dev tmpfs 1.5G 0 1.5G 0% /dev/shm |
#cd /tpm
bash: cd: /tpm: No such file or directory |
#cd /tmp
|
#ls -la
total 103612 drwxrwxrwt 16 root root 4096 Feb 22 14:15 . drwxr-xr-x 21 root root 4096 Feb 22 12:45 .. drwx------ 2 user user 4096 Feb 22 14:07 aptdaemon-kGsomF -rw-r--r-- 1 root root 104857600 Feb 22 14:10 file1.img -rw-r--r-- 1 root root 1049624576 Feb 22 14:14 file2.img -rw-r--r-- 1 user user 26 Feb 22 14:04 gnash-cookies.3251 drwxrwxrwt 2 root root 4096 Feb 22 12:53 .ICE-unix drwx------ 2 user user 4096 Feb 22 12:53 keyring-AoosjB drwx------ 2 root root 4096 Feb 22 14:08 libgksu-XUO1Nt drwx------ 2 root root 4096 Feb 22 14:14 mc-root drwx------ 2 root root 4096 Feb 22 14:08 orbit-root drwx------ 2 user user 4096 Feb 22 14:15 orbit-user drwx------ 2 user user 4096 Feb 22 13:55 plugtmp drwx------ 2 user user 4096 Feb 22 12:53 seahorse-4W52Kk drwx------ 2 user user 4096 Feb 22 12:50 seahorse-wF9eyt drwx------ 2 user user 4096 Feb 22 12:53 ssh-gsscYL2513 drwx------ 2 user user 4096 Feb 22 12:53 virtual-user.hd2XPV drwx------ 2 user user 4096 Feb 22 12:50 virtual-user.klCD9r -r--r--r-- 1 root root 11 Feb 22 12:52 .X0-lock drwxrwxrwt 2 root root 4096 Feb 22 12:52 .X11-unix |
#mkfs
mkfs mkfs.ext2 mkfs.ext4dev mkfs.ntfs mkfs.bfs mkfs.ext3 mkfs.minix mkfs.vfat mkfs.cramfs mkfs.ext4 mkfs.msdos |
#mkfs
mkfs mkfs.ext2 mkfs.ext4dev mkfs.ntfs mkfs.bfs mkfs.ext3 mkfs.minix mkfs.vfat mkfs.cramfs mkfs.ext4 mkfs.msdos |
#mkfs.ext3 ./file
file1.img file2.img |
#mkfs.ext3 ./file
file1.img file2.img |
#mkfs.ext3 ./file1.img
mke2fs 1.41.12 (17-May-2010) ./file1.img is not a block special device. Proceed anyway? (y,n) y Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) Stride=0 blocks, Stripe width=0 blocks 25688 inodes, 102400 blocks 5120 blocks (5.00%) reserved for the super user ... 13 block groups 8192 blocks per group, 8192 fragments per group 1976 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 31 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#mount -o loop file1.img /mnt
|
#ls la /mnt
ls: cannot access la: No such file or directory /mnt: lost+found |
#apt-get update
Hit http://10.0.35.1 squeeze Release.gpg Ign http://10.0.35.1/debian/ squeeze/main Translation-en Ign http://10.0.35.1/debian/ squeeze/main Translation-en_US Hit http://10.0.35.1 squeeze Release Ign http://10.0.35.1 squeeze/main i386 Packages Ign http://10.0.35.1 squeeze/main i386 Packages Hit http://10.0.35.1 squeeze/main i386 Packages Reading package lists... Done |
#apt-get install kpartx
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: sg3-utils libmono-i18n-west1.0-cil libopenal1 libstdc++6-4.3-dev libswfdec-0.6-90 bluez-alsa libfreebob0 libepc-ui-1.0-1 libtalloc1 planner libgsf-gnome-1-114 libmono2.0-cil libmtp7 libio-compress-zlib-perl libmono-security1.0-cil gthumb librpmbuild1 sharutils libcompress-raw-zlib-perl gs-esp libmono-data-tds2.0-cil libgoffice-0-common libmono-i18n2.0-cil libneon27 libepc-1.0-1 libmalaga7 libgksu1.2-0 ... 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 28.5 kB of archives. After this operation, 131 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main kpartx i386 0.4.8+git0.761c66f-9 [28.5 kB] Fetched 28.5 kB in 0s (1,587 kB/s) Selecting previously deselected package kpartx. (Reading database ... 126539 files and directories currently installed.) Unpacking kpartx (from .../kpartx_0.4.8+git0.761c66f-9_i386.deb) ... Processing triggers for man-db ... Setting up kpartx (0.4.8+git0.761c66f-9) ... |
#apt-get autoremove
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: abiword-help alsa-oss arj avahi-utils bluetooth bluez-alsa bluez-audio bluez-cups bluez-gstreamer bluez-utils cups cups-client cups-common cups-driver-gutenprint cups-ppdc deborphan dhcdbd djvulibre-desktop doc-base epiphany-gecko esound-clients fam festival festlex-cmu festlex-poslex festvox-kallpc16k finger foomatic-db foomatic-db-engine foomatic-filters g++-4.3 ggzcore-bin ghostscript-cups ghostscript-x gnome-app-install ... Processing triggers for man-db ... Processing triggers for menu ... Processing triggers for hicolor-icon-theme ... Processing triggers for gconf2 ... Processing triggers for gnome-menus ... Processing triggers for desktop-file-utils ... Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-2.6.32-5-686 Processing triggers for python-support ... Processing triggers for shared-mime-info ... |
#apt-get install kpartx
Reading package lists... Done Building dependency tree Reading state information... Done kpartx is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#apt-get install lvm2
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: lvm2 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 435 kB of archives. After this operation, 1,176 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main lvm2 i386 2.02.66-5 [435 kB] Fetched 435 kB in 0s (2,241 kB/s) ... Processing triggers for man-db ... Setting up lvm2 (2.02.66-5) ... Setting up LVM Volume Groups Reading all physical volumes. This may take a while... No volume groups found No volume groups found No volume groups found . update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-2.6.32-5-686 |
#kpartx -a /dev/loop0
|
#ls -l /dev/mapper/
total 0 crw------- 1 root root 10, 58 Feb 22 14:28 control |
#fdisk -l /dev/loop0
Disk /dev/loop0: 104 MB, 104857600 bytes 255 heads, 63 sectors/track, 12 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/loop0 doesn't contain a valid partition table |
#ls -l /dev/mapper/
total 0 crw------- 1 root root 10, 58 Feb 22 14:28 control |
#kpartx -d /dev/loop0
|
#losetup -d /dev/loop0
loop: can't delete device /dev/loop0: Device or resource busy |
#ping kernel.org
PING kernel.org (149.20.20.133) 56(84) bytes of data. ^C --- kernel.org ping statistics --- 47 packets transmitted, 0 received, 100% packet loss, time 45999ms |
#ping kernel.org
PING kernel.org (204.152.191.37) 56(84) bytes of data. 64 bytes from pub2.kernel.org (204.152.191.37): icmp_req=1 ttl=43 time=198 ms 64 bytes from pub2.kernel.org (204.152.191.37): icmp_req=2 ttl=43 time=199 ms 64 bytes from pub2.kernel.org (204.152.191.37): icmp_req=3 ttl=43 time=200 ms 64 bytes from pub2.kernel.org (204.152.191.37): icmp_req=4 ttl=43 time=200 ms 64 bytes from pub2.kernel.org (204.152.191.37): icmp_req=5 ttl=43 time=199 ms ^C --- kernel.org ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4003ms rtt min/avg/max/mdev = 198.583/199.873/200.982/1.003 ms |
#cfdisk
|
#cfdisk /dev /sdb
|
#cfdisk /dev/sdb
|
#cat /proc/partitions
major minor #blocks name 8 0 488386584 sda 8 1 19535008 sda1 8 2 7815622 sda2 8 16 488386584 sdb 8 17 19535008 sdb1 8 18 7815622 sdb2 8 19 20000925 sdb3 7 0 102400 loop0 |
#partprobe
|
#cat /proc/partitions
major minor #blocks name 8 0 488386584 sda 8 1 19535008 sda1 8 2 7815622 sda2 8 3 20000925 sda3 8 16 488386584 sdb 8 17 19535008 sdb1 8 18 7815622 sdb2 8 19 20000925 sdb3 7 0 102400 loop0 |
#apt-get install apt-gile
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package apt-gile |
#apt-get install apt-file
Reading package lists... Done Building dependency tree Reading state information... Done apt-file is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#apt-file update
Downloading complete file http://10.0.35.1:9999/debian/dists/squeeze/Contents-i386.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 16.6M 100 16.6M 0 0 455k 0 0:00:37 0:00:37 --:--:-- 444k |
#apt-file search parted
app-install-data: /usr/share/app-install/desktop/gparted.desktop app-install-data: /usr/share/app-install/icons/gparted.png fvwm-crystal: /usr/share/fvwm-crystal/fvwm/Applications/Settings/Hardware_Settings/~gparted~GParted fvwm-crystal: /usr/share/fvwm-crystal/fvwm/Applications/Settings/Hardware_Settings/~qtparted~QTParted gparted: /usr/sbin/gparted gparted: /usr/sbin/gpartedbin gparted: /usr/share/applications/gparted.desktop gparted: /usr/share/doc/gparted/README.gz gparted: /usr/share/doc/gparted/changelog.Debian.gz gparted: /usr/share/doc/gparted/changelog.gz ... python-parted: /usr/share/pyshared/parted/disk.py python-parted: /usr/share/pyshared/parted/filesystem.py python-parted: /usr/share/pyshared/parted/geometry.py python-parted: /usr/share/pyshared/parted/partition.py python-parted: /usr/share/python-support/python-parted.public python-parted-dbg: /usr/share/doc/python-parted-dbg/changelog.Debian.gz python-parted-dbg: /usr/share/doc/python-parted-dbg/changelog.gz python-parted-dbg: /usr/share/doc/python-parted-dbg/copyright python-parted-dbg: /usr/share/python-support/python-parted-dbg.public system-config-lvm: /usr/share/system-config-lvm/parted_wrapper.py |
#top
top - 15:26:00 up 2:36, 4 users, load average: 0.00, 0.00, 0.00 Tasks: 155 total, 1 running, 154 sleeping, 0 stopped, 0 zombie Cpu(s): 14.1%us, 2.9%sy, 0.0%ni, 83.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3106456k total, 1130060k used, 1976396k free, 2556k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 7815612k total, 0k used, 7815612k free, 799752k cached 20482 user 20 0 60284 18m 11m R 8 0.6 0:32.69 gtk-gnash 2487 root 20 0 86332 29m 11m S 4 1.0 1:17.03 Xorg 20483 user 20 0 59368 17m 11m S 2 0.6 0:09.69 gtk-gnash 20479 user 20 0 59264 18m 11m S 2 0.6 0:05.20 gtk-gnash ... 7 root 20 0 0 0 0 S 0 0.0 0:00.01 ksoftirqd/1 2584 user 20 0 22684 9576 6748 S 0 0.3 0:00.85 gnome-settings- 8 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/1 2597 user 20 0 150m 24m 19m S 0 0.8 0:02.34 nautilus 20676 user 20 0 59528 18m 11m S 0 0.6 0:00.67 gtk-gnash 1 root 20 0 2032 704 612 S 0 0.0 0:00.89 init 2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT 0 0 0 0 S 0 0.0 0:00.01 migration/0 4 root 20 0 0 0 0 S 0 0.0 0:00.02 ksoftirqd/0 5 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/0 |
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 10.0.35.1 search unix.nt
major minor #blocks name 8 0 488386584 sda 8 1 19535008 sda1 8 2 7815622 sda2 8 3 20000925 sda3 8 16 488386584 sdb 8 17 19535008 sdb1 8 18 7815622 sdb2 8 19 20000925 sdb3 7 0 102400 loop0
Время первой команды журнала | 13:52:44 2011- 2-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:58:00 2011- 2-22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.35 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.50 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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