163 views
Analysis of creating and launching an executable script
Asked at
Task condition
Analyze the sequence of operations that occur when executing the script below, and describe how they change the state of the file system.
bash
# !/bin/bash
# reasoning aloud is more valuable than a correct answer
cd ~
mkdir foo
touch bar && echo "ls foo" >> bar
chmod +x bar
./bar