Answered step by step
Verified Expert Solution
Link Copied!

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

  1. 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)
  1. Use the who command and redirect the result to a file called myfile1 and display the contain of myfile1.
  1. 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.

  1. Make a file named testfile under mydir, verify that the file testfile exists and list the contents of the file testfile to the screen.

  1. 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.

  1. Delete the file testfile, verify that testfile has been deleted, clear the window.

  1. 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.

  1. 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.

  1. 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.

  1. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

Might the benefit be reinstated someday?

Answered: 1 week ago