Complete the code to display the current shell environment variable.
echo $[1]The SHELL variable shows which shell is currently used. This helps customize the environment.
Complete the command to list all environment variables including custom shell settings.
printenv | grep [1]Using grep SHELL filters environment variables related to the shell, showing customizations.
Fix the error in the command to set a custom prompt variable in the shell.
export PS1=[1]The prompt variable PS1 needs double quotes to interpret escape sequences like \u and \w.
Fill both blanks to create an alias for listing files with details and human-readable sizes.
alias ll='ls [1] [2]'
-a shows hidden files but not size format.-r reverses order, not size format.The -l option lists files in long format, and -h shows sizes in human-readable form.
Fill all three blanks to create a dictionary comprehension that maps words to their lengths only if length is greater than 3.
lengths = { [1] : [2] for [3] in words if len([3]) > 3 }The comprehension uses word as key, len(word) as value, and iterates over word in words.