Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #blantantly simple test to figure out script problems
- echo "this is working - type something for me to repeat it"
- read input
- echo $input
- #!bin/bash
- #blantantly simple test to figure out script problems
- echo "this is working - type something for me to repeat it"
- read input
- echo $input
- x@computer:~$ echotest
- this is working - type something for me to repeat it
- test1
- test1
- x@computer:~$ echotest-bin-bash
- bash: /home/x/bin/echotest-bin-bash: bin/bash: bad interpreter: No such file or directory
- x@computer:~$ echotest-bin-dash
- bash: /home/x/bin/echotest-bin-dash: bin/bash: bad interpreter: No such file or directory
- x@computer:~$ echotest-bin-sh
- bash: /home/x/bin/echotest-bin-sh: bin/sh: bad interpreter: No such file or directory
- x@computer:~$ ./echotest-bin-bash
- bash: ./echotest-bin-bash: No such file or directory
- x@computer:~$ echotest
- bash: /home/x/bin/echotest: No such file or directory
- x@computer:~$ sudo /usr/local/bin/echotest
- this is working - type something for me to repeat it
- test
- test
- x@computer:~$ sudo /usr/local/bin/echotest-bin-bash
- sudo: unable to execute /usr/local/bin/echotest-bin-bash: No such file or directory
- Hangup
- x@computer:~$ echo $PATH
- /home/x/bin:/home/x/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- ||/ Name Version Architecture Description
- +++-==============-============-============-=================================
- ii dash 0.5.8-2.1ubu amd64 POSIX-compliant shell
- ii bash 4.3-14ubuntu amd64 GNU Bourne Again SHell
- x@computer:~$ file "$(type -P bash)" 2>/dev/null
- /bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=[redacted for the forum], stripped
- x@computer:~$ type -p bash
- /bin/bash
Add Comment
Please, Sign In to add comment