Answered step by step
Verified Expert Solution
Question
1 Approved Answer
LInux: Write the command needed to perform the following Determine your login shell and change it to BASH and determine your current path and set
LInux:
Write the command needed to perform the following
- Determine your login shell and change it to BASH and determine your current path and set it for your home directory. (and if it is already BASH)
- Use the who command and redirect the result to a file called myfile1 and display the contain of myfile1.
- Verify that you are in your home directory, make the directory named mydir under your home directory, enter into mydir and verify that you are into the myfile directory.
- Make a file named testfile under mydir, verify that the file testfile exists and list the contents of the file testfile to the screen.
- Make a copy of the file testfile with the name secondfile, verify that the files testfile and secondfile both exist, list the contents of both testfile and secondfile to the monitor screen.
- Delete the file testfile, verify that testfile has been deleted, clear the window.
- Enter into mydir rename secondfile to thefile, copy thefile to your home directory, remove thefile from the current directory, verify that thefile has been removed.
- Enter into mydir, copy thefile from your home directory to the current directory, verify that thefile has been copied from your home directory to the current directory.
- Change directories to your home directory, verify that you are in your home directory, verify that a copy of thefile is in your home directory.
- Remove thefile from your home directory, remove thefile from the directory mydir, remove the directory mydir from your home directory with the following command.
and verify that thefile and mydir are gone from your home directory.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started