Portál AbcLinuxu, 10. května 2025 01:15
rm /bin/sh
odstraní ten link...
$ ls -l /bin/sh lrwxrwxrwx 1 root root 4 2006-12-16 15:02 /bin/sh -> bash
/bin/sh
. Pak chci teda videt jak bude upravovat hlavicky u vsech skriptu
ktery maj #!/bin/sh
na #!/bin/bash
/etc/passwd
PS: Bash je TAKY shell!!
/etc/passwd
/bin ls, cat, cp, rm, chmod, chown
atd.. a nejsou to jenom linky na busybox, tak by tam ten bash jet mohl.
ipkg install bash
[root@wl-500gp root]$ ll /bin/sh lrwxrwxrwx 1 root root 7 Nov 6 14:08 /bin/sh -> busybox
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.