Linux Redhat lab: The Bash Shell



Linux Redhat lab: The Bash Shell

Linux Redhat lab:  The Bash Shell

Link playlist
https://www.youtube.com/playlist?list=PLIpLw6v7Z1qmty_yT3KQUeV5jW46Wu7hG

2023 05 07 20 55 49

Lab 7-1: Customize the Command Prompt
As user1 on server1, customize the primary shell prompt to display the
information enclosed within the quotes “user1@server1 in /etc :” when this
user switches into the /etc directory. The prompt should always reflect the
current directory path. Add this to the appropriate per-user startup file for
permanence. (Hint: Command and Variable Substitutions).
Lab 7-2: Redirect the Standard Input,
Output, and Error
As user1 on server1, run the ls command on /etc, /dvd, and /var. Have the
output printed on the screen and the errors forwarded to file /tmp/ioerror.
Check both files after the command execution and analyze the results. (Hint:
Input, Output, and Error Redirections)