Question: To have a little fun, let's try a little experiment. Start by running the command below. This will prepend the current user's directory .

To have a little fun, let's try a little experiment. Start by running the command below. This will prepend

To have a little fun, let's try a little experiment. Start by running the command below. This will prepend the current user's directory "." to be the first location where the system will look for binaries. export PATH=.:$PATH Continue the experiment by running the following commands echo 'echo "PATH ABUSE!!"' > 1s chmod +x 1s cp 1s whoami www.www 1s 1s -1 ls -la What happens when you run the command "Is"? Why does this happen? Be specific (2-3 full sentences).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Im glad youre having fun with this experiment Heres what each command does export PATH PATH This command adds the current directory represented as to the beginning of the systems PATH environment vari... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!