Question

Really need help from 11 on: Create the directory structure IFT383FinalExam/Activities/Activity1 in your home directory. Using...

Really need help from 11 on:

Create the directory structure IFT383FinalExam/Activities/Activity1 in your home directory.

Using the cat command, create a file named classRoster with the following fields, separated by a comma.

Student ID

First Name

Last Name

Grade

Program of Study

ASURITE ID (username)

Add three records to your file.

Display the contents of the file.

Move the file classRoster to the directory Activity1.

Go to the Activity1 directory.

Display the directory you are in.

Add read, write and execute permissions for user and group to Activity1 directory.

Create a new file called header using cat command with the following field names, separated by a tab.

Student ID

First Name

Last Name

Grade

Program of Study

ASURITE ID (username)

Display the file.

Copy the contents of header into classRoster, as the first line

Replace the comma with a tab using appropriate filters (such as cut, paste, tr, head, etc.)

Save this file as finalRoster.txt

Display the contents of the file finalRoster.txt

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi,

Please find the below commands.

$ mkdir IFT383FinalExam
$ mkdir Activities
$ mkdir Activity1

Using the cat command, create a file named classRoster with the following fields

$ cat > classRoster
123,AA,BB,A+,CSE,DAN
456,DD,EE,B+,ECE,DOL
789,FF,GG,C+,ITI,DISK

Display file

$ cat classRoster
123,AA,BB,A+,CSE,DAN
456,DD,EE,B+,ECE,DOL
789,FF,GG,C+,ITI,DISK

Move the file classRoster to the directory Activity1.

$ mv classRoster ./IFT383FinalExam/Activities/Activity1

Go to the Activity1 directory.

$ cd ./IFT383FinalExam/Activities/Activity1

Display the directory you are in.

$ pwd
/IFT383FinalExam/Activities/Activity1

Add read, write and execute permissions for user and group to Activity1 directory.

$ chmod 775 Activity1

Create a new file called header using cat command with the following field names, separated by a tab.

$ cat > header
StudentID FirstName LastName Grade ProgramofStudy ASURITEID

Display the file.

$ cat header
StudentID FirstName LastName Grade ProgramofStudy ASURITEID

Copy the contents of header into classRoster, as the first line

$ head -1 header | cat > tmp && cat classRoster | cat >> tmp && mv tmp classRoster

$ rm tmp

Replace the comma with a tab using appropriate filters

$ cat classRoster | sed "s/,/ /g"
StudentID FirstName LastName Grade ProgramofStudy ASURITEID
123 AA BB A+ CSE DAN
456 DD EE B+ ECE DOL
789 FF GG C+ ITI DISK

Add a comment
Know the answer?
Add Answer to:
Really need help from 11 on: Create the directory structure IFT383FinalExam/Activities/Activity1 in your home directory. Using...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • QUESTION 1 From YOUR home directory, execute a find command string that will locate the file...

    QUESTION 1 From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the letc directory Select the correct find command string below that will accomplish this. find /etc-name 'resolv.conf -cat D find /etc-name 'resolv.conf -exec cat 0 find. -name 'resolv.conf -exec cat 0\ find /-name 'resolv.conf' -exec cat 0 QUESTION 2 What find command...

  • QUESTION 1 From YOUR home directory, execute a find command string that will locate the file...

    QUESTION 1 From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the letc directory. Select the correct find command string below that will accomplish this. find /etc -name 'resolv.conf-cat f} \; find /etc -name 'resolv.conf' -exec cat {} \; find . -name 'resolv.conf' -exec cat {} \; O find / -name 'resolv.conf' -exec...

  • Open vi or pico and create a script called Information.   Add the contents from the following table to the script: (Hin...

    Open vi or pico and create a script called Information.   Add the contents from the following table to the script: (Hint: use echo to add blank lines to your output and to write out the headings). Headings: Utilities (command to execute) Today’s date is: date The current users logged on to the system are: who My current startup directory is: pwd Today’s identification information is: id The processes running on my system are: ps Add a header to your Information...

  • Using Ubuntu OS... help is greatly needed! Thank you. Create an alias called "home" that does...

    Using Ubuntu OS... help is greatly needed! Thank you. Create an alias called "home" that does two things... returns you to your home directory, then does a long listing of all files found there Create a file called "Output.txt" that contains the output of the "ls /etc" command Using "cat", create a file called "poem.txt" where you enter at least one line of text ("Mary had a little lamb" will do...) Using "cat", pipe the contents of poem.txt into the...

  • Question 1) Copy file called sortfile from my home directory. The file contains three columns of...

    Question 1) Copy file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field separator. Will the following command sort the file on the group name field? sort -t! -k3 sortfile A) Yes B) No Question 2) Copy the file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field...

  • (In Linux) 1. Create a file to write to from your script and save it as...

    (In Linux) 1. Create a file to write to from your script and save it as “.txt”. 2. Write the following information to the file that you created in Step 1: Today's date Your full name Your student ID The name of your course What directory you are in File permissions of the file that you created that allow everyone to read, write, and execute The long list of files in your current directory, providing all items and their process...

  • Cybersecurity Fundamentals Lab #9: Access ControlName: ____________________ If your Kali VM is already up and running,...

    Cybersecurity Fundamentals Lab #9: Access ControlName: ____________________ If your Kali VM is already up and running, login to the root account on the VM via ssh. It does not matter whether you use a command line or GUI sshclient. If your VM is not currently up, use the vSphere web client to start your VM before logging into it via ssh.1: Create an Unprivileged User For some labs, including this one, we will need a non-root user account on the...

  • Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following...

    Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following tasks based on the Linux Fundamentals lecture. For this lab, take screenshots for all major steps completed to illustrate that each task was successfully completed the same method as would be used for other labs). Tasks: 1. Create a new user named Billy Bob using the command linter face 2. Add Billy Bob to the sudoers group 3. Update and upgrade your Linux distribution...

  • ****THIS IS A 2 PART QUESTION! I ONLY NEED THE ANSWER TO PART 2 ON HOW...

    ****THIS IS A 2 PART QUESTION! I ONLY NEED THE ANSWER TO PART 2 ON HOW TO SEND THE DATA SERIALIZED**** Write a c# program that stores student grades in a text file and read grades from a text file.  The program has the following GUI: There are four buttons: Create File, Save Case, Close File and Load File.  Initially, only the Create File and Load File buttons are enabled.  If the user clicks the Create File button, a Save File Dialog window...

  • You must assume that the data file and your four function subprograms are located inside the working directory (forder). Please write the main program and each of the four function subprograms. 1. Th...

    You must assume that the data file and your four function subprograms are located inside the working directory (forder). Please write the main program and each of the four function subprograms. 1. The data in the following table are to be read from the file "grades.txt"and processed The grades are in percentages. The format of the data is shown below First Name ID Number Last Name Grades 001AA Tam 78.50 oe 86.45 001AB Gabriel Stuart Thus, there are 4 columns...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT