Hi, I need some help with the follow questions
. Any help would be great!
Answer with the necessary commands
1. In your login directory, make a directory called week4/revision
2. Without changing directories, make another directory week4_revision/data
3. Change to week4_revision/data in one command
4. Copy your own .bash_profile to week4_revision/data as a file called my_profiles using relative paths. [Remember you are now in /student/sxxxxx/week_revistion/data]
5. Copy the password file from /etc to week4_revision/data using absolute paths
6. Without changing directory, make a file called rev4.txt in your login directory. [Remember you are now in /student/sxxxxx/week_revision/data]
7. Whilist in week4_revision/data make another directory called bin
8. Add this directory to your PATH variable such that is will still be valid when you next login, then force shell to acknowledge this change for this session
9. How can you tell that the shell has observed the change?
10. Which command will allow you to see the attributes of your current and parent directory and what is the command you issued?
11. Apart from vi, which other commands (there are at least 2) will allow you to see the contents of .bash_profile
12. How many ways can you think of to return to your login directory? What are they?
13. Return to your home directory using the most efficient command
14. Which command will remove the directory week4_revision (do not remove it though) ? [There are still files in this directory].
15. Change week4_revision to week4_revision.old
16. Will this affect your path statement? If so, how?
17. Which meta characters are valid with the ls command?
18. What does ls -alt do?
19. Which command will make four directories da db dc dd in one command?
20. Which command will remove only the three directories da db dc in one command but only using one argument?
Thanks for your help, I have a test coming up and I am behind so the answers will help me study!
Thanks!