Question: Instructions Execute the following commands in the terminal. ls [dir]: list files in dir directory cd [dir]: change the working directory to dir mkdir [dir]:

Instructions

Execute the following commands in the terminal.

  • ls [dir]: list files in dir directory
  • cd [dir]: change the working directory to dir
  • mkdir [dir]: create a folder named dir
  • cp [file1] [file2]: copy a file named file1 to another named file2
  • mv [file1] [file2]: rename a file named file1 to file2
  • man [command]: display a manual for the given command
  • pwd: print working directory from root directory
  • rm [file]: remove file named file
  • Cat
  • touch
  • echo
  • rmdir
  • history
  • Shells and Simple scripts

Submission

Submit a script file named: FirstScript.sh that does the following actions:

  • Make a directory named "MyFiles"
  • Change the current directory location to be MyFiles.
  • Create an empty file named "File0"
  • Create another file named "File1"
  • Copy "File1" to File2"
  • Screen shot of all the commands

Hints

  • Use the man command to find the manual entry for a command

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!