darth
May 24, 2026, 11:22am
1
Livestream date: 2026-05-24
Weight 4
Key knowledge areas
Set environment variables (e.g. PATH) at login or when spawning a new shell.
Write Bash functions for frequently used sequences of commands.
Maintain skeleton directories for new user accounts.
Set command search path with the proper directory.
darth
May 24, 2026, 8:44pm
2
Homework 1:
Read-only functions are those whose contents we cannot modify. Do a research on readonly functions and complete the following table:
Function Name
Make it readonly
List all readonly Functions
my_fun
darth
May 24, 2026, 8:46pm
3
Homework 2:
Search the web for how to modify PS1 and anything else you may need to write a function
called fyi (to be placed in a startup script) which gives the user the following information:
name of the user
home directory
name of the host
operating system type
search path for executables
mail directory
how often mail is checked
how many shells deep the current session is
prompt (you should modify it so that it shows @)