At the command prompt, type cd /etc and press Enter. At the command prompt, type pwd and press Enter to view the current working directory. Did your current working directory change? Did you specify a relative or absolute pathname to the /etc directory when you used the cd /etc command?
1.Yes, current directory changed. because initially it was ~ but after entering cd /etc the current directory is /etc see the blue text in the image below
2.We specified absolute pathname because when we have used cd /etc
/ is in the starting which makes it absolute.
absolute path means which is not related to current directory
relative path means which is in the current directory.
Get Answers For Free
Most questions answered within 1 hours.