Reference no: EM134031023
Assignment
Clearly explains each command's purpose and distinguishes its outputs; includes examples or evidence from the terminal.
Provides a clear comparison showing how set, env, and export differ in scope and effect.
Shows evidence of viewing both files and describes their roles and differences in Bash startup behavior.
Reflects on the usefulness of variables and aliases.
I. Variables.
• Do an AI or google search asking where system-wide variables are stored in your specific linux distro and report in your words what you find.
• Describe the set command and furnish a screenshot of this output.
$ date
$ set | head -10
• Describe the env command and furnish a screenshot of this output.
$ env | tail -10
• Describe what is in .profile. When is it run?
• Describe what is in .bashrc. When is it run?
• Describe when the export command is needed. Get the instant assignment help.
II. Alias.
• Describe, then show the output of this command (home directory).
• Create an alias and then use it. Include date. Show the output. OK to use the example in the instructions.
III. Loops.
• Do an AI or google search asking what types of loops are available in bash. Name 3 of them.
• Show the date, then run a command line while loop and show the output.
IV. Command line args. Describe, then create a bash script that reports the command line arguments.
$ date
$ cat testcmdargs.sh
$ ./testcmdargs.sh
V. Conditional test. Describe the modified testcmdargs.sh that requires 4 command line arguments. Show the output with 3 arguments. Show the output with 4 arguments.
VI. Background jobs. Describe, then create two separate for-loop scripts that will run for at least 20 seconds. Start the two scripts and show them running with the jobs command.