Question: Write the Linux commands for the following output/function Display the full path of your home directory. Go to your home directory. List all the files

Write the Linux commands for the following output/function

  • Display the full path of your home directory.
  • Go to your home directory.
  • List all the files in your current directory.
  • Now, create a new folder called temp.
  • Rename this folder to files.
  • Go to the files folder.
  • Run a command to get the current date and time and save the output to a file called 'nw'
  • Copy nw to a file called 'before'
  • List all the files in this directory. Use a more detailed listing where you can see the files' permissions, date written, etc.
  • Create a file called 'temp'
  • Rename 'temp' to 'test'
  • Go up one directory.
  • Delete the files folder with a single command. (The command you use should also delete all of the files inside of the folder.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!