/l3/users/28-09-2015/NT-Ladm/debian5.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
#vi privet.sh
![]() --- /dev/null 2015-09-25 17:23:02.067999996 +0300 +++ privet.sh 2015-09-29 10:53:46.316319809 +0300 @@ -0,0 +1,2 @@ +#!/bin/bash +echo "Privet ${1}!" |
#privet.sh
![]() l3script: privet.sh: команда не найдена |
#ls
23423 234235325 file1 file4 privet.sh wetwet 23423523 234g23 file2 file5 report 234235232252352435 234g23hgfdfh file3 install shadow |
#echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
#pwd
/root |
#/root/privet.sh
![]() l3script: /root/privet.sh: Отказано в доступе |
#./privet.sh
![]() l3script: ./privet.sh: Отказано в доступе |
#ls -l
итого 16 -rw-r--r-- 1 root root 0 Сен 29 10:26 23423 -rw-r--r-- 1 root root 0 Сен 29 10:26 23423523 -rw-r--r-- 1 root root 0 Сен 29 10:26 234235232252352435 -rw-r--r-- 1 root root 0 Сен 29 10:26 234235325 -rw-r--r-- 1 root root 0 Сен 29 10:26 234g23 -rw-r--r-- 1 root root 0 Сен 29 10:26 234g23hgfdfh -rw-r--r-- 1 root root 0 Сен 29 10:35 file1 -rw-r--r-- 1 root root 0 Сен 29 10:35 file2 -rw-r--r-- 1 root root 0 Сен 29 10:35 file3 -rw-r--r-- 1 root root 0 Сен 29 10:35 file4 -rw-r--r-- 1 root root 0 Сен 29 10:35 file5 -rw-r--r-- 1 root root 5268 Сен 28 16:43 install -rw-r--r-- 1 root root 32 Сен 29 10:53 privet.sh -rw-r--r-- 1 root root 0 Сен 28 14:24 report -rw-r----- 1 root root 1029 Сен 28 14:23 shadow -rw-r--r-- 1 root root 0 Сен 29 10:26 wetwet |
#chmod u+x privet.sh
|
#ls -l
итого 16 -rw-r--r-- 1 root root 0 Сен 29 10:26 23423 -rw-r--r-- 1 root root 0 Сен 29 10:26 23423523 -rw-r--r-- 1 root root 0 Сен 29 10:26 234235232252352435 -rw-r--r-- 1 root root 0 Сен 29 10:26 234235325 -rw-r--r-- 1 root root 0 Сен 29 10:26 234g23 -rw-r--r-- 1 root root 0 Сен 29 10:26 234g23hgfdfh -rw-r--r-- 1 root root 0 Сен 29 10:35 file1 -rw-r--r-- 1 root root 0 Сен 29 10:35 file2 -rw-r--r-- 1 root root 0 Сен 29 10:35 file3 -rw-r--r-- 1 root root 0 Сен 29 10:35 file4 -rw-r--r-- 1 root root 0 Сен 29 10:35 file5 -rw-r--r-- 1 root root 5268 Сен 28 16:43 install -rwxr--r-- 1 root root 32 Сен 29 10:53 privet.sh -rw-r--r-- 1 root root 0 Сен 28 14:24 report -rw-r----- 1 root root 1029 Сен 28 14:23 shadow -rw-r--r-- 1 root root 0 Сен 29 10:26 wetwet |
#ls -l --color
итого 16 -rw-r--r-- 1 root root 0 Сен 29 10:26 23423 -rw-r--r-- 1 root root 0 Сен 29 10:26 23423523 -rw-r--r-- 1 root root 0 Сен 29 10:26 234235232252352435 -rw-r--r-- 1 root root 0 Сен 29 10:26 234235325 -rw-r--r-- 1 root root 0 Сен 29 10:26 234g23 -rw-r--r-- 1 root root 0 Сен 29 10:26 234g23hgfdfh -rw-r--r-- 1 root root 0 Сен 29 10:35 file1 -rw-r--r-- 1 root root 0 Сен 29 10:35 file2 -rw-r--r-- 1 root root 0 Сен 29 10:35 file3 -rw-r--r-- 1 root root 0 Сен 29 10:35 file4 -rw-r--r-- 1 root root 0 Сен 29 10:35 file5 -rw-r--r-- 1 root root 5268 Сен 28 16:43 install -rwxr--r-- 1 root root 32 Сен 29 10:53 privet.sh -rw-r--r-- 1 root root 0 Сен 28 14:24 report -rw-r----- 1 root root 1029 Сен 28 14:23 shadow -rw-r--r-- 1 root root 0 Сен 29 10:26 wetwet |
#./privet.sh Andrey
Privet Andrey! |
#vi privet.sh
|
#~
Privet Noname! |
#./privet.sh Andrey
Privet Andrey! |
#vi privet.sh
--- /tmp/l3-saved-7671.2617.20523 2015-09-29 10:58:53.944319807 +0300 +++ privet.sh 2015-09-29 10:59:54.232319809 +0300 @@ -1,2 +1,2 @@ #!/bin/bash -echo "Privet ${1:-Noname}!" +echo "Privet ${1:+Noname}!" |
#./privet.sh Andrey
Privet Noname! |
#./privet.sh
Privet ! |
#echo $((7+5))
12 |
#echo $[7+5]
12 |
#i=1
|
#echo $i
1 |
#i=$[$i+1]
|
#echo $i
2 |
#i=$[56/9]
|
#echo $[56/9]
6 |
#top
top - 11:05:09 up 3 days, 17:42, 3 users, load average: 1,01, 1,03, 1,05 Tasks: 57 total, 2 running, 55 sleeping, 0 stopped, 0 zombie %Cpu(s): 0,0 us, 0,0 sy, 52,7 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 47,3 st KiB Mem: 507368 total, 307792 used, 199576 free, 89936 buffers KiB Swap: 0 total, 0 used, 0 free, 116672 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5939 root 39 19 20608 6360 856 R 99,7 1,3 1086:48 john 7371 root 20 0 0 0 0 S 0,3 0,0 0:00.81 kworker/0:0 7393 root 20 0 71292 3724 2904 S 0,3 0,7 0:00.99 sshd 1 root 20 0 10648 832 696 S 0,0 0,2 0:04.72 init ... 8 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 cpuset 9 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 khelper 10 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs 11 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns 12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 xenwatch 13 root 20 0 0 0 0 S 0,0 0,0 0:00.00 xenbus 14 root 20 0 0 0 0 S 0,0 0,0 0:01.14 sync_supers 15 root 20 0 0 0 0 S 0,0 0,0 0:00.02 bdi-default 16 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd 17 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd |
#ps ax
PID TTY STAT TIME COMMAND 1 ? Ss 0:04 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 5 ? S 0:00 [kworker/u:0] 6 ? S 0:00 [migration/0] 7 ? S 0:02 [watchdog/0] 8 ? S< 0:00 [cpuset] 9 ? S< 0:00 [khelper] 10 ? S 0:00 [kdevtmpfs] ... 7471 ? Ss 0:00 sshd: ivan [priv] 7473 ? S 0:00 sshd: ivan@pts/2 7474 pts/2 Ss+ 0:00 -bash 7555 ? Ss 0:00 sshd: petr [priv] 7557 ? S 0:00 sshd: petr@pts/3 7558 pts/3 Ss+ 0:00 -bash 7639 pts/0 S+ 0:00 script -f -c l3script -q /root/.lilalo//3214919816900 7670 pts/0 S+ 0:00 script -f -c l3script -q /root/.lilalo//3214919816900 7671 pts/4 Ss 0:00 l3script 8624 pts/4 R+ 0:00 ps ax |
#ps ax | wc -l
59 |
#top
top - 11:06:28 up 3 days, 17:43, 3 users, load average: 1,03, 1,04, 1,05 Tasks: 57 total, 2 running, 55 sleeping, 0 stopped, 0 zombie %Cpu(s): 0,2 us, 0,0 sy, 13,1 ni, 75,2 id, 0,1 wa, 0,0 hi, 0,0 si, 11,4 st KiB Mem: 507368 total, 308040 used, 199328 free, 89996 buffers KiB Swap: 0 total, 0 used, 0 free, 116728 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5939 root 39 19 20608 6360 856 R 99,0 1,3 1088:06 john 1 root 20 0 10648 832 696 S 0,0 0,2 0:04.72 init 2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0,0 0,0 0:00.23 ksoftirqd/0 ... 8 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 cpuset 9 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 khelper 10 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs 11 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns 12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 xenwatch 13 root 20 0 0 0 0 S 0,0 0,0 0:00.00 xenbus 14 root 20 0 0 0 0 S 0,0 0,0 0:01.14 sync_supers 15 root 20 0 0 0 0 S 0,0 0,0 0:00.02 bdi-default 16 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd 17 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd |