| /l3/users/GL/adm/debian10.clinika.local/root :1 :2 :3 :4 |
|
|
#echo $2
|
|
#cd tmp
l3script: cd: tmp: No such file or directory |
|
#cd tmp
l3script: cd: tmp: No such file or directory |
|
#touch file
|
|
#ln file file2
|
|
#ls
file file2 |
|
#ls -l
total 0 -rw-r--r-- 2 root root 0 Jun 19 16:28 file -rw-r--r-- 2 root root 0 Jun 19 16:28 file2 |
|
#ls -li
total 0 23556 -rw-r--r-- 2 root root 0 Jun 19 16:28 file 23556 -rw-r--r-- 2 root root 0 Jun 19 16:28 file2 |
|
#ln -s file file3
|
|
#ls -l
total 0 -rw-r--r-- 2 root root 0 Jun 19 16:28 file -rw-r--r-- 2 root root 0 Jun 19 16:28 file2 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file |
|
#ls -li
total 0 23556 -rw-r--r-- 2 root root 0 Jun 19 16:28 file 23556 -rw-r--r-- 2 root root 0 Jun 19 16:28 file2 23660 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file |
|
#echo file > file
|
|
#cat file
file |
|
#cat file2
file |
|
#cat file4
cat: file4: No such file or directory |
|
#cat file3
file |
|
#touch new
|
|
#ln -s new sym_ne
|
|
#echo new > new
|
|
#echo new > sym_ne
|
|
#echo new0 > sym_ne
|
|
#cat new
new0 |
|
#ls -li
total 12 23556 -rw-r--r-- 2 root root 5 Jun 19 16:30 file 23556 -rw-r--r-- 2 root root 5 Jun 19 16:30 file2 23660 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file 24128 -rw-r--r-- 1 root root 5 Jun 19 16:31 new 24140 lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#bdf
l3script: bdf: command not found |
|
#apt-get install bdf
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package bdf |
|
#ls -lh
total 12K -rw-r--r-- 2 root root 5 Jun 19 16:30 file -rw-r--r-- 2 root root 5 Jun 19 16:30 file2 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file -rw-r--r-- 1 root root 5 Jun 19 16:31 new lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#ls -li
total 12 23556 -rw-r--r-- 2 root root 5 Jun 19 16:30 file 23556 -rw-r--r-- 2 root root 5 Jun 19 16:30 file2 23660 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file 24128 -rw-r--r-- 1 root root 5 Jun 19 16:31 new 24140 lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#ln /root/
.bash_history .bashrc .lilalo/ .ssh/ 200[0-9]/ 2012/ 2014/ install .bash_profile .l3rc .profile .viminfo 2011/ 2013/ 2015/ |
|
#ln /root/2012/1\{0
1{01/ 1{02/ 1{03/ 1{04/ 1{05/
|
|
#ln /root/2012/1\{0
1{01/ 1{02/ 1{03/ 1{04/ 1{05/
|
|
#ln /root/2012/1\{02/ folder
ln: `/root/2012/1{02/': hard link not allowed for directory
|
|
#ls -ls
total 12 4 -rw-r--r-- 2 root root 5 Jun 19 16:30 file 4 -rw-r--r-- 2 root root 5 Jun 19 16:30 file2 0 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file 4 -rw-r--r-- 1 root root 5 Jun 19 16:31 new 0 lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#ls -li
total 12 23556 -rw-r--r-- 2 root root 5 Jun 19 16:30 file 23556 -rw-r--r-- 2 root root 5 Jun 19 16:30 file2 23660 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file 24128 -rw-r--r-- 1 root root 5 Jun 19 16:31 new 24140 lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#ln file /root/file3
|
|
#ls -li
total 12 23556 -rw-r--r-- 3 root root 5 Jun 19 16:30 file 23556 -rw-r--r-- 3 root root 5 Jun 19 16:30 file2 23660 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file 24128 -rw-r--r-- 1 root root 5 Jun 19 16:31 new 24140 lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#rm file
|
|
#ls -l
total 8 -rw-r--r-- 2 root root 5 Jun 19 16:30 file2 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file -rw-r--r-- 1 root root 5 Jun 19 16:31 new lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#cat file3
cat: file3: No such file or directory |
|
#echo qwe > file3
|
|
#cat file3
qwe |
|
#ls
file file2 file3 new sym_ne |
|
#ls -l
total 12 -rw-r--r-- 1 root root 4 Jun 19 16:39 file -rw-r--r-- 2 root root 5 Jun 19 16:30 file2 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file -rw-r--r-- 1 root root 5 Jun 19 16:31 new lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#ln -s /root/2012/ dira
|
|
#ls -
ls: cannot access -: No such file or directory |
|
#ls -l
total 12 lrwxrwxrwx 1 root root 11 Jun 19 16:41 dira -> /root/2012/ -rw-r--r-- 1 root root 4 Jun 19 16:39 file -rw-r--r-- 2 root root 5 Jun 19 16:30 file2 lrwxrwxrwx 1 root root 4 Jun 19 16:29 file3 -> file -rw-r--r-- 1 root root 5 Jun 19 16:31 new lrwxrwxrwx 1 root root 3 Jun 19 16:30 sym_ne -> new |
|
#qwedqw
l3script: qwedqw: command not found |
|
#vim .bashrc
--- /tmp/l3-saved-704.951.6456 2012-06-21 16:08:50.000000000 +0000 +++ .bashrc 2012-06-21 16:09:37.000000000 +0000 @@ -16,4 +16,7 @@ # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i' +LANG=C + + [ $0 == l3script ] && . /root/.lilalo/l3bashrc && _l3_start |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:0e:00:10
inet addr:192.168.7.20 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe0e:10/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:931 errors:0 dropped:0 overruns:0 frame:0
TX packets:717 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:68932 (67.3 KiB) TX bytes:122038 (119.1 KiB)
Interrupt:247
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
|
|
#rm -rf 20*
|
|
#ls
file3 install |
|
#ls
file3 install |
|
#ls -l
total 12 -rw-r--r-- 1 root root 5 Jun 19 16:30 file3 -rwxr-xr-x 1 root root 5342 Jun 11 18:50 install |
|
#vim
|
|
#base
base64 basename |
|
#base
base64 basename |
|
#basename /usr/bin/bas
base64 basename bashbug |
|
#basename /usr/bin/bas
base64 basename bashbug |
|
#basename /usr/bin/bashbug
bashbug |
|
#basename /bin/bash
bash |
|
#man basename
|
|
#basename /home/user/
user |
|
#wich cd
l3script: wich: command not found |
|
#ssh 192.168.7.10
root@192.168.7.10's password: Linux debian0 2.6.32-5-xen-686 #1 SMP Wed Mar 9 01:27:54 UTC 2011 i686 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: Thu Jun 21 16:16:55 2012 from 192.168.7.254 l3-agent is already running: pid=583; pidfile=/root/.lilalo/l3-agent.pid root@debian0:~# ... There is no screen to be attached. root@debian0:~# screen -x There are several suitable screens on: 800.pts-2.debian0 (21.06.2012 16:17:34) (Attached) 760.pts-8.debian0 (21.06.2012 16:17:26) (Attached) Type "screen [-d] -r [pid.]tty.host" to resume one of them. root@debian0:~# root@debian0:~# ^C root@debian0:~# logout Connection to 192.168.7.10 closed. |
|
#ssh 192.168.7.10
root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# root@debian0:~# l3script [root@debian0:~]# -------------------------------------------------------------------------------------------------------------------------- |
|
#echo $0
l3script |
|
#echo $1
|
|
#man fork
|
|
#mesg n
|
|
#man mesgn
|
|
#man mesg
|
|
#man jobs
|
|
#top &
[1] 1270 |
|
#top &
[2] 1278 [1]- Stopped top [2]+ Stopped top |
|
#top &
[3] 1286 [3]+ Stopped top |
|
#which jobs
|
|
#echo $H
$HISTCMD $HISTFILE $HISTFILESIZE $HISTSIZE $HOME $HOSTNAME $HOSTTYPE |
|
#echo $HIST
$HISTCMD $HISTFILE $HISTFILESIZE $HISTSIZE |
|
#echo $HISTCMD
417 |
|
#man history
|
|
#lasst
l3script: lasst: command not found |
|
#last
root pts/2 195.238.93.36 Thu Jun 21 17:04 still logged in root pts/2 195.238.93.36 Thu Jun 21 16:07 - 17:03 (00:56) root pts/0 195.238.93.36 Thu Jun 21 16:06 still logged in reboot system boot 2.6.32-5-xen-686 Thu Jun 21 10:41 - 17:43 (07:02) root pts/1 195.238.93.36 Tue Jun 19 16:00 - crash (1+18:40) root pts/0 195.238.93.36 Tue Jun 19 15:59 - crash (1+18:41) reboot system boot 2.6.32-5-xen-686 Tue Jun 19 11:06 - 17:43 (2+06:36) root pts/1 195.238.93.36 Thu Jun 14 16:07 - 18:04 (01:57) root pts/0 195.238.93.36 Thu Jun 14 16:03 - 18:04 (02:00) reboot system boot 2.6.32-5-xen-686 Thu Jun 14 11:12 - 17:43 (7+06:30) ... root pts/0 192.168.7.254 Mon Jun 11 14:00 - 14:01 (00:01) root hvc0 Mon Jun 11 13:54 - 13:54 (00:00) root hvc0 Mon Jun 11 13:54 - 13:54 (00:00) root pts/0 192.168.7.254 Mon Jun 11 12:59 - 12:59 (00:00) root hvc0 Mon Jun 11 12:40 - 12:59 (00:18) root hvc0 Mon Jun 11 12:40 - 12:40 (00:00) reboot system boot 2.6.32-5-xen-686 Mon Jun 11 12:39 - 16:40 (04:00) reboot system boot 2.6.32-5-xen-686 Mon Jun 11 12:36 - 12:37 (00:01) reboot system boot 2.6.18-5-xen-686 Mon Jun 11 12:26 - 12:27 (00:00) wtmp begins Mon Jun 11 12:26:40 2012 |
|
#whatis last
last (1) - show listing of last logged in users |
|
#whereis last
last: /usr/bin/last /usr/share/man/man1/last.1.gz |
|
#vim /usr/share/man/man1/last.1.gz
|
|
#.RI [ tty... ]
8 @^@^E^@^@^@û A ^@^@@
1h^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@2.6.32-5-xen-686^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@~^_ÖOÐ~H
2^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@2.6.32-5-xen-686^@^@^@^@^@^@^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