CompanyRemote

Linux Homework Support Needed

Project-Based

Description

I need help with my Linux homework. This assignment requires you to use the terminal and provide screenshots where specified

ITN 170 Assignment 2 This assignment is a comprehensive practical lab designed for the Ubuntu virtual machine within the VA Cyber Range. The assignment is structured to build proficiency in Linux file management, system administration, and environment customization through five distinct parts, collectively emphasizing the use of the command-line interface and text editors like vi and nano

Part 1 The chmod and chown commands. This part of the assignment is worth 20% of the assignment grade. Please provide a screenshot as requested through this assignment document. This assignment is designed for the Ubuntu virtual machine in the VA Cyber Range.

We went through the chmod command in assignment 1 using the numerical method. Now let’s use the chmod command using the character method.

To change file and directory permissions:

Make certain that you are in your home directory. Use the touch command to create a file named corp_db Use the vi editor to enter the text shown below. Assignment 2_1.png

Press escape + shift :wq to save the file. Type chmod ugo+x corp_db and press Enter to allow access to the corp_db. (Screenshot) This command means “make the corp_db directory accessible (+x) for the owner (u), group (g), and others (o)

Type chmod ugo-x corp_db and press Enter to remove permissions corp_db directory. (Screenshot)

Type ls -l corp_db Notice that the file does not have any permissions. Repeat step 6 to restore the permissions for corp_db Do not delete the corp_db file. You will need it for the next exercise. To change the owner of a file:

the root user Type useradd user1 Type passwd user1 assign the password student Type ls -l corp_db notice that the owner of the file is the root user. (Screenshot) Type chown user1 corp_db Type ls -l corp_db This should indicate that the new owner of the file is user1 (Screenshot) That’s all there is to changing the owner of a file or directory. Type head corp_db (Screenshot) Type tail corp_db (Screenshot) Part 2 Some more file commands. This part of the assignment is worth 20% of the assignment grade. Use the touch command to create file1 Enter some text into the file

Type: file file1 Screenshot

The file1 file is an ASCII text file, which means it contains basic text.

Use the mv command to rename file1 to revised_file Type mv file1 revised_file Screenshot

Use the stat command to view the attributes of revised_file Type stat revised_file Screenshot

Use the mkdir command to create a directory named Management. Use the same command to create a directory named Payroll inside the Management directory. Use the touch command to create a file named paychecks inside the Payroll directory. Use the nano editor to enter some random text into paychecks. Here is the syntax to accomplish this: mkdir Management

cd Management

mkdir Payroll

cd Management/Payroll

Type nano paychecks

Type some text into the paychecks file. When you are finished press Ctrl + X and type y to save the contents of the file.

Use the copy command to copy the Management directory that you created to a directory named Directory. Type cp -r Management Directory

Type ls -l to view the new directory Screenshot

Change directories into the Management Directory The tee command will copy the contents of a directory and show the contents while copying:

Type ls -all | tee files Screenshot

Part 3 Symbolic and Hard links. This part of the assignment is worth 10% of the assignment grade. Create a symbolic link to the Management directory which you created. The link will appear in the home directory. Screenshot the link. Type: ln -s Management Home

Make sure that you are working in the Payroll directory. Create a hard link to the paychecks file that you created. This will create a copy of the contents of paychecks in the home directory. The link will appear in the home directory. Screenshot the link and the contents of the file in the home directory.

Part 4 Aliases - This part of the assignment is worth 30% of the assignment grade. printenv SHELL PATH screenshot To create a variable, and assign it a value: Type HOCKEY=Capitals and press Enter.

You’ve created the variable HOCKEY.

To see the contents of a variable:

Type echo $HOCKEY and press Enter.

You see the word “Capitals.”

Take a screenshot of the output and paste it into your lab document.

Type MEMO="Meeting will be at noon today" and press Enter. Type echo $MEMO and press Enter. (Screenshot)

You see the contents of the MEMO variable: Meeting will be at noon today.

To create an alias called ll for the ls command, type alias ll="ls -l", and press Enter. Now, when you use the new ll alias, the ls -l command executes automatically. Test the alias by typing ll and pressing Enter. You see a long directory listing. Take a screenshot of the output and paste it into your lab document.

Part 5 Lab Challenge This part of the assignment is worth 20% of the assignment grade. Using What you have learned previously in this assignment you will complete the following tasks. You may use any resource that you wish to complete the lab challenge.

Challenge 1

Create a file named Balance_Sheet. Use your preferred text editor to enter the following text into the document.

Trasaction Credit Debit Balance

Paycheck $1500.00 $5,000.00

Tuition $500.00 $4,500.00

Phone $50.00 $4,450.00

Internet $100.00 $4,350.00

Save the file and provide a screenshot of the contents of the file.

Challenge 2

Assign the user which you created earlier in this assignment Read, Write and Execute permissions on the file created in challenge 1.

Provide a screenshot of the command line.

Challenge 3

Create a directory named Cash in the student directory. Create a hard link in the cash directory to the Balance_Sheet the path of the link should be /home/student/Cash

Provide a screenshot of the link.

Challenge 4

Create a variable that will display the text “Check the Weekly Balance” when the echo $CASH is entered at the command prompt.

Provide a screenshot of the output of the variable. Budget: USD 250–750 Skills: Linux, Ubuntu, Virtual Machines

Skills

LinuxUbuntuShellVirtual MachinesEcho

Want AI to find more roles like this?

Upload your CV once. Get matched to relevant assignments automatically.

Try personalized matching