Hi there!
To verify a user's new home directory, you can query the /etc/passwd file. This file contains essential information about user accounts on your system, including their home directories.
As mentioned in the current step, you can use the grep command to search for the user's entry in /etc/passwd.
Here's the command you can use:
sudo grep -w 'joker' /etc/passwd
Let me break it down:
sudo: Executes the command with superuser privileges, which is often required to read system files like/etc/passwd.grep: A powerful command-line utility for searching plain-text data sets for lines that match a regular expression.-w 'joker': The-woption tellsgrepto match only whole words, ensuring you find the exactjokerentry and not a partial match.'joker'is the search pattern (the username)./etc/passwd: The file where user account information is stored.
After running this command, you should see a line of output for the joker user. The fifth field (separated by colons) in that line will show the user's home directory. If you successfully changed it to /home/wayne, then /home/wayne should appear there.
Give it a try and let me know if you see the updated home directory!