Hi, I need some help with the follow questions :(. Any help would be great!
Answer with the necessary commands
-
In your login directory, make a directory called week4/revision
-
Without changing directories, make another directory week4_revision/data
-
Change to week4_revision/data in one command
-
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]
-
Copy the password file from /etc to week4_revision/data using absolute paths
-
Without changing directory, make a file called rev4.txt in your login directory. [Remember you are now in /student/sxxxxx/week_revision/data]
-
Whilist in week4_revision/data make another directory called bin
-
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
-
How can you tell that the shell has observed the change?
-
Which command will allow you to see the attributes of your current and parent directory and what is the command you issued?
-
Apart from vi, which other commands (there are at least 2) will allow you to see the contents of .bash_profile
-
How many ways can you think of to return to your login directory? What are they?
-
Return to your home directory using the most efficient command
-
Which command will remove the directory week4_revision (do not remove it though) ? [There are still files in this directory].
-
Change week4_revision to week4_revision.old
-
Will this affect your path statement? If so, how?
-
Which meta characters are valid with the ls command?
-
What does ls -alt do?
-
Which command will make four directories da db dc dd in one command?
-
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!