Web375 Lab 1 – Basic Linux and system admin commands – Instant Delivery – Lab report with screenshots

Lab Price = $9
Please feel free to send us your queries at: support@iqrajavaid.com
In case if you want us to work on it for you using your own credentials, we would charge 14$ in total. Drop us a message on support@iqrajavaid.com if you want us to work on it.
Payment methods

Add to Cart

Buy Now

View Cart


Problem Statement

WEB375 Lab 1: Basic Linux and system admin commands

Lab Scenario

Assignment
• Identify the difference between a casual user and the superuser (or root) by examining the shell prompt.
• Illustrate the command used to switch from a casual user to the superuser.
• Illustrate the use of basic Linux shell commands and network management commands.
Virtual Machine Login Information for PLABFED01 and PLABFED02

Username: Student
Password: Password

Username: root
Password: Password

Lab Diagram
During your session, you will have access to the following lab configuration.
WINCONSOLE PLABFED01 PLABFED02

The Linux servers also connect to a private network. The IP address of PLABFED01 is 192.168.240.11 and the IP address of PLABFED01 is 192.168.240.12.

Connecting to Your Lab
In this module, you will be working on the following equipment to carry out the steps defined in each exercise.
• WINCONSOLE (Management Server)
• PLABFED01 (Linux Server)
• PLABFED02 (Linux Server)
Each exercise will detail which console you are required to work on to carry out the steps.
To start, simply click on the named Server from the device list (located on the left-hand side of the screen) and click “Power on” from the Tools bar. In some cases, the devices may power on automatically.
During the boot-up process an activity indicator will be displayed in the Name tab.
• Black—Powered off
• Orange—Working on your request
• Green—Ready to access
If the remote console is not displayed automatically in the main window (or popup) click the Connect icon located in the Tools bar to start your session.
If the remote console does not appear, please try the following option.
• Switch between the HTML 5 and Java client versions in the Tools bar.
In the event this does not resolve your connectivity problems, please visit our Help and Support pages for additional resolution options.

Lab Tasks

Step 1: Procedures to connect and log in to the Linux Servers.

Action:

1) Ensure the PLABFED01 and PLAFED02 devices are powered on.
Orange—working on your request

Green—ready to access (powered)

2) Click on WINCONSOLE to select the Windows Server, then click on the Power button to power it on.

3) You will be logged into the WINCONSOLE and should now see the desktop. Double-click the TigerVNC icon.

3) Enter PLABFED01:1 if already not entered in the VNC server text box.

4) Click Connect, then enter Password in the password text box. Click OK. The Fedora desktop is now displayed.

5) Click on Activities on the top left of the screen. In the search box, type Terminal. A Terminal icon will appear; click on this.

This will bring up a Terminal screen for you so you can apply the commands in this lab.

Step 2: Review Basic Linux Commands

Action:
1: Go to the home directory.
Enter the following command.
cd ~

2: Display a working directory.
Enter the following command.
pwd

3: Display a listing of the current directory including hidden files.
Enter the following command.
ls –a

4: Display a long listing of the ⁄etc directory.
Enter the following command.
ls -l ⁄etc

5: Create mydir directory and verify it.

Enter the following commands.
mkdir mydir
ls

6: Copy mydir to mydir2 directory and verify it.

Enter the following commands.
cp –r mydir mydir2
ls

7: Go to mydir directory and verify it.

Enter the following commands.
cd mydir
pwd

8: Go up one level and verify it.

Enter the following commands.
cd ..
pwd
ls –a

9: Delete mydir directory and verify it.

Enter the following commands.
rmdir mydir
ls

10: Copy the file passwd from /etc to the current directory and verify it.

Enter the following commands.
cp /etc/passwd myfile
ls

11: Copy file myfile to myfile2 and verify it.

Enter the following commands.
cp myfile myfile2
ls

12: Delete myfile2 and verify it.

Enter the following commands.
rm myfile2
ls

13: View the content of myfile using the cat command.

Enter the following command.
cat myfile

14: View the content of myfile using the more command.

Enter the following command.
more myfile

Note: hit “enter” key to advance one line
hit “space bar” key to go to next page
hit “b” key to go backward one page
hit “f” key to go forward one page
hit “q” key to exit

15: Redirect the content of myfile to myfile3 and verify it.

Enter the following command.
cat myfile > myfile3
ls
cat myfile3

16: View a list of users logged in the system.

Enter the following command.
who
17: View this month’s calendar.

Enter the following command.
cal

18: Create a file containing this month’s calendar and verify it.

Enter the following commands.
cal > thismonth
ls

19: View the network interface parameters.

Enter the following command.

ifconfig

20: Check connectivity to PLABFED02.

Enter the following command.
ping –c 3 192.168.240.12

21: Clear the screen.

Enter the following command.
clear

Step 3: Become the superuser (root)
Using the switch user command, switch from casual user mode to the superuser mode. Remember to use the dash (-) option after keying in the su command and before hitting the Enter key. The root password is Password.

Action:

1: Switch user to root and verify it.
Enter the following commands.
su -
whoami

2: Exit root login.
Enter the following commands.
exit
whoami
Note: When you log in as regular user, the prompt is $.
When you log in as root, the prompt is #.

Step 4: Use the nano Command Line Editor to Create and Modify Files

Action:

1: Navigate to your home directory.

Enter the following command.
cd ~

pwd

2: Use nano to create a file.

Enter the following command.
nano myfile1

You are now in Editor Mode for the file myfile1.

3: Add content to the file.

At this point, you can type in some text. Type in your full name, any address, and any phone number number on different lines.

4: Control the keys for nano.

Note the control menu at the bottom of the nano text editor. The (^) symbol refers to the Ctrl key, so ^X (Exit) refers to simultaneously pressing the Ctrl and X keys. Other common control keys are ^K and ^U for cut and paste operations and ^R for opening a new file. ^W is a control key for finding text in a file.

If you are using nano as your text editor and Internet Explorer or Chrome as your browser, you cannot use Ctrl + O to save your file. This hotkey is used by IE and Chrome to open files. You will have to exit and save as follows: press Ctrl + X (Exit) and at the prompt (Save Modified Buffer), press Y, then Enter. This will save the file and exit the text editor. Mozilla Firefox does not have this issue with Ctrl + O.

5: Save your modifications and exit.

Press Ctrl + O and press Enter to save your myfile1 file.

Press Ctrl + X to exit the nano command-line text editor.

6: Check the content of your file.

Enter the following command.
cat myfile1

You now can see your contents of the myfile1 file.

Capture the Skillsoft desktop in the text box provided in your Lab Report
document.

Step 5: Make sure you have the answers for the following questions before typing them then take a screenshot showing all commands and paste in your Lab Report document.

1—Clear the screen
2—Type the command whoami
3—Create a new directory named lab1
4—Change directories into lab1
5—List all files, even hidden files (directory should be blank)
6—Create a new file that contains the calendar for this month
7—List all files again, even hidden files (there should be just one file)
8—Display the entire contents of that new file
9—Delete the file and verify
10—Display today’s date

Capture the Skillsoft desktop in the text box provided in your Lab Report
document.

This concludes your lab.

Relevant Material
Screenshots
Lab1: Step5

Lab1: Step5

Lab1: Step2

Lab1: Step2

Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at support@iqrajavaid.com.
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at support@iqrajavaid.com and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at support@iqrajavaid.com.
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on support@iqrajavaid.com
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Payment Details
Lab Price = $9
Please feel free to send us your queries at: support@iqrajavaid.com
In case if you want us to work on it for you using your own credentials, we would charge 14$ in total. Drop us a message on support@iqrajavaid.com if you want us to work on it.
Payment methods

Add to Cart

Buy Now

View Cart

Leave a Reply