| /l3/users/08-04-2013/NT-Ladm/debian7.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
|
#ls -l /etc/rc0.d
итого 4 lrwxrwxrwx 1 root root 17 Июл 5 2012 K01anacron -> ../init.d/anacron lrwxrwxrwx 1 root root 13 Июн 11 2012 K01atd -> ../init.d/atd lrwxrwxrwx 1 root root 15 Июн 11 2012 K01exim4 -> ../init.d/exim4 lrwxrwxrwx 1 root root 17 Июн 12 2012 K01netdiag -> ../init.d/netdiag lrwxrwxrwx 1 root root 23 Июн 12 2012 K01openbsd-inetd -> ../init.d/openbsd-inetd lrwxrwxrwx 1 root root 17 Июн 11 2012 K01urandom -> ../init.d/urandom lrwxrwxrwx 1 root root 18 Июн 11 2012 K02sendsigs -> ../init.d/sendsigs lrwxrwxrwx 1 root root 17 Июн 11 2012 K03rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 22 Июн 11 2012 K04umountnfs.sh -> ../init.d/umountnfs.sh lrwxrwxrwx 1 root root 20 Июн 11 2012 K05nfs-common -> ../init.d/nfs-common lrwxrwxrwx 1 root root 17 Июн 11 2012 K05portmap -> ../init.d/portmap lrwxrwxrwx 1 root root 20 Июн 11 2012 K06hwclock.sh -> ../init.d/hwclock.sh lrwxrwxrwx 1 root root 20 Июн 11 2012 K06networking -> ../init.d/networking lrwxrwxrwx 1 root root 18 Июн 11 2012 K07ifupdown -> ../init.d/ifupdown lrwxrwxrwx 1 root root 18 Июн 11 2012 K08umountfs -> ../init.d/umountfs lrwxrwxrwx 1 root root 20 Июн 11 2012 K09umountroot -> ../init.d/umountroot lrwxrwxrwx 1 root root 14 Июн 11 2012 K10halt -> ../init.d/halt -rw-r--r-- 1 root root 353 Мар 24 2012 README |
|
#ls -l /etc/rc5.d
итого 4 -rw-r--r-- 1 root root 677 Мар 27 2012 README lrwxrwxrwx 1 root root 17 Июл 5 2012 S15portmap -> ../init.d/portmap lrwxrwxrwx 1 root root 20 Июл 5 2012 S16nfs-common -> ../init.d/nfs-common lrwxrwxrwx 1 root root 17 Июл 5 2012 S18netdiag -> ../init.d/netdiag lrwxrwxrwx 1 root root 17 Июл 5 2012 S18rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 14 Апр 10 16:38 S18sudo -> ../init.d/sudo lrwxrwxrwx 1 root root 15 Июл 5 2012 S19acpid -> ../init.d/acpid lrwxrwxrwx 1 root root 17 Июл 5 2012 S19anacron -> ../init.d/anacron lrwxrwxrwx 1 root root 13 Июл 5 2012 S19atd -> ../init.d/atd lrwxrwxrwx 1 root root 14 Июл 5 2012 S19cron -> ../init.d/cron lrwxrwxrwx 1 root root 15 Июл 5 2012 S19exim4 -> ../init.d/exim4 lrwxrwxrwx 1 root root 23 Июл 5 2012 S19openbsd-inetd -> ../init.d/openbsd-inetd lrwxrwxrwx 1 root root 13 Июл 5 2012 S19ssh -> ../init.d/ssh lrwxrwxrwx 1 root root 18 Июл 5 2012 S21bootlogs -> ../init.d/bootlogs lrwxrwxrwx 1 root root 18 Июл 5 2012 S22rc.local -> ../init.d/rc.local lrwxrwxrwx 1 root root 19 Июл 5 2012 S22rmnologin -> ../init.d/rmnologin lrwxrwxrwx 1 root root 23 Июл 5 2012 S22stop-bootlogd -> ../init.d/stop-bootlogd |
|
#ls -l /etc/rc1.d
итого 4 lrwxrwxrwx 1 root root 17 Июл 5 2012 K01anacron -> ../init.d/anacron lrwxrwxrwx 1 root root 13 Июн 11 2012 K01atd -> ../init.d/atd lrwxrwxrwx 1 root root 15 Июн 11 2012 K01exim4 -> ../init.d/exim4 lrwxrwxrwx 1 root root 17 Июн 12 2012 K01netdiag -> ../init.d/netdiag lrwxrwxrwx 1 root root 23 Июн 12 2012 K01openbsd-inetd -> ../init.d/openbsd-inetd lrwxrwxrwx 1 root root 17 Июн 11 2012 K03rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 20 Июн 11 2012 K05nfs-common -> ../init.d/nfs-common lrwxrwxrwx 1 root root 17 Июн 11 2012 K05portmap -> ../init.d/portmap -rw-r--r-- 1 root root 369 Мар 24 2012 README lrwxrwxrwx 1 root root 19 Июн 11 2012 S01killprocs -> ../init.d/killprocs lrwxrwxrwx 1 root root 18 Июл 5 2012 S21bootlogs -> ../init.d/bootlogs lrwxrwxrwx 1 root root 16 Июл 5 2012 S22single -> ../init.d/single |
|
#vim /etc/inittab
|
|
#shutdown -h now -k
Shutdown cancelled. |
|
##
|
|
#----#
l3script: ----#: команда не найдена |
|
#----#
l3script: ----#: команда не найдена |
|
#----#
l3script: ----#: команда не найдена |
|
#----#
l3script: ----#: команда не найдена |
|
#mount
/dev/xvda1 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/xvdb1 on /mnt type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) |
|
#apt-cdrom
123 fail6 file.img mart/ script aprel/ fail7 folder3/ may/ .ssh/ .aptitude/ fail8 folder4/ new_fail vilen .bash_history file .l3rc new_link .viminfo .bash_profile file123 .lesshst pass_invert .vimrc .bashrc file124 .lilalo/ passwd .w3m/ chapaev file2 link .profile |
|
#. /etc/bash_completion
|
|
#apt-cdrom
123 fail6 file.img mart/ script aprel/ fail7 folder3/ may/ .ssh/ .aptitude/ fail8 folder4/ new_fail vilen .bash_history file .l3rc new_link .viminfo .bash_profile file123 .lesshst pass_invert .vimrc .bashrc file124 .lilalo/ passwd .w3m/ chapaev file2 link .profile |
|
#vim /etc/network/interfaces
|
|
#ps aux|less
|
|
#init 3
|
|
#ps aux|less
|
|
#ls /etc/init.d/
acpid ifupdown networking sendsigs anacron ifupdown-clean nfs-common single atd kbd openbsd-inetd skeleton bootlogd keyboard-setup pcmciautils ssh bootlogs killprocs portmap stop-bootlogd bootmisc.sh module-init-tools pppd-dns stop-bootlogd-single checkfs.sh mountall-bootclean.sh procps sudo checkroot.sh mountall.sh rc udev console-setup mountdevsubfs.sh rc.local udev-mtab cron mountkernfs.sh rcS umountfs exim4 mountnfs-bootclean.sh README umountnfs.sh halt mountnfs.sh reboot umountroot hostname.sh mountoverflowtmp rmnologin urandom hwclockfirst.sh mtab.sh rsyslog x11-common hwclock.sh netdiag screen-cleanup |
|
#/etc/init.d/ssh
Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart|try-restart|status}.
|
|
#/etc/init.d/ssh
Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart|try-restart|status}.
|
|
#/etc/init.d/ssh restart
Restarting OpenBSD Secure Shell server: sshd. |
|
#/etc/init.d/ssh status
sshd is running. |
|
#/etc/init.d/pppd-dns status
Usage: /etc/init.d/pppd-dns {start|stop|restart|force-reload}
|
|
#service ssh
force-reload restart status try-restart reload start stop |
|
#service ssh restart
Restarting OpenBSD Secure Shell server: sshd. |
|
#service ssh status
sshd is running. |
|
#/ect/init.d/ssh
l3script: /ect/init.d/ssh: Нет такого файла или каталога |
|
#chkconfig --list
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off atd 0:off 1:off 2:on 3:on 4:on 5:on 6:off bootlogd 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on bootlogs 0:off 1:on 2:on 3:on 4:on 5:on 6:off bootmisc.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on checkfs.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on checkroot.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on console-setup 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on cron 0:off 1:off 2:on 3:on 4:on 5:on 6:off ... stop-bootlogd 0:off 1:off 2:on 3:on 4:on 5:on 6:off stop-bootlogd-single 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on sudo 0:off 1:off 2:on 3:on 4:on 5:on 6:off udev 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on udev-mtab 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on umountfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off umountnfs.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off umountroot 0:off 1:off 2:off 3:off 4:off 5:off 6:off urandom 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on x11-common 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on |
|
#chkconfig ssh off
|
|
#chkconfig --list
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off atd 0:off 1:off 2:on 3:on 4:on 5:on 6:off bootlogd 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on bootlogs 0:off 1:on 2:on 3:on 4:on 5:on 6:off bootmisc.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on checkfs.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on checkroot.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on console-setup 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on cron 0:off 1:off 2:on 3:on 4:on 5:on 6:off ... stop-bootlogd 0:off 1:off 2:on 3:on 4:on 5:on 6:off stop-bootlogd-single 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on sudo 0:off 1:off 2:on 3:on 4:on 5:on 6:off udev 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on udev-mtab 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on umountfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off umountnfs.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off umountroot 0:off 1:off 2:off 3:off 4:off 5:off 6:off urandom 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on x11-common 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on |
|
#chkconfig ssh of
illegal runlevel specified for ssh: o |
|
#chkconfig ssh on
|
|
#chkconfig --list
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off atd 0:off 1:off 2:on 3:on 4:on 5:on 6:off bootlogd 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on bootlogs 0:off 1:on 2:on 3:on 4:on 5:on 6:off bootmisc.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on checkfs.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on checkroot.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on console-setup 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on cron 0:off 1:off 2:on 3:on 4:on 5:on 6:off ... stop-bootlogd 0:off 1:off 2:on 3:on 4:on 5:on 6:off stop-bootlogd-single 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on sudo 0:off 1:off 2:on 3:on 4:on 5:on 6:off udev 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on udev-mtab 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on umountfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off umountnfs.sh 0:off 1:off 2:off 3:off 4:off 5:off 6:off umountroot 0:off 1:off 2:off 3:off 4:off 5:off 6:off urandom 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on x11-common 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on |
|
#cd /etc/rc2.d/
|
|
#ls
README S18rsyslog S19atd S19ssh S22stop-bootlogd S15portmap S18sudo S19cron S21bootlogs S16nfs-common S19acpid S19exim4 S22rc.local S18netdiag S19anacron S19openbsd-inetd S22rmnologin |
|
#rm S
S15portmap S18sudo S19cron S21bootlogs S16nfs-common S19acpid S19exim4 S22rc.local S18netdiag S19anacron S19openbsd-inetd S22rmnologin S18rsyslog S19atd S19ssh S22stop-bootlogd |
|
#mv S19ssh 1S19ssh
|
|
#mv S19ssh 1S19ssh
mv: невозможно выполнить stat для «S19ssh»: Нет такого файла или каталога |
|
#mv 1S19ssh S19ssh
|
|
#ls
README S18rsyslog S19atd S19ssh S22stop-bootlogd S15portmap S18sudo S19cron S21bootlogs S16nfs-common S19acpid S19exim4 S22rc.local S18netdiag S19anacron S19openbsd-inetd S22rmnologin |
|
#cd
|
|
#ls
123 fail6 file file2 folder4 may pass_invert vilen aprel fail7 file123 file.img link new_fail passwd chapaev fail8 file124 folder3 mart new_link script |
|
|