Last active
February 1, 2022 08:51
-
-
Save rbaul/4a7171e0ebb2107337a46d0fe219d709 to your computer and use it in GitHub Desktop.
Replace linux shell (ash, sh, bash)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc # cat passwd | grep "/bin/ash" | |
root:x:0:0:root:/root:/bin/ash | |
task-executor:x:1000:1000:Linux User,,,:/home/task-executor:/bin/ash | |
/etc # sed -i 's+/bin/ash+/bin/sh+g' passwd | |
/etc # cat passwd | grep "/bin/ash" | |
/etc # cat passwd | grep "/bin/sh" | |
root:x:0:0:root:/root:/bin/sh | |
task-executor:x:1000:1000:Linux User,,,:/home/task-executor:/bin/sh | |
https://www.cyberciti.biz/faq/alpine-linux-install-bash-using-apk-command/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -it --mount-add type=bind,source=/test,target=/inner_folder alpine sh | |
// Python3 with python run | |
ln -s /usr/bin/python3 /usr/bin/python | |
ls -al /usr/bin/python* | |
echo $PATH | |
/sbin:/bin:/usr/sbin:/usr/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment