Placeholder

WEB375 Lab 1 Basic Linux and System Admin Commands

$12.00

Description

Lab Scenario
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:
Ensure the PLABFED01 and PLAFED02 devices are powered on.
Orange—working on your request
Green—ready to access (powered)
Click on WINCONSOLE to select the Windows Server, then click on the Power button to power it on.
You will be logged into the WINCONSOLE and should now see the desktop. Double-click the TigerVNC icon.
Enter PLABFED01:1 if already not entered in the VNC server text box.
Click Connect, then enter Password in the password text box. Click OK. The Fedora desktop is now displayed.
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:
Go to the home directory.
Enter the following command.
cd ~
Display a working directory.
Enter the following command.
pwd
Display a listing of the current directory including hidden files.
Enter the following command.
ls –a
Display a long listing of the ⁄etc directory.
Enter the following command.
ls -l ⁄etc
Create mydir directory and verify it.
Enter the following commands.
mkdir mydir
ls
Copy mydir to mydir2 directory and verify it.
Enter the following commands.
cp –r mydir mydir2
ls
Go to mydir directory and verify it.
Enter the following commands.
cd mydir
pwd
Go up one level and verify it.
Enter the following commands.
cd ..
pwd
ls –a
Delete mydir directory and verify it.
Enter the following commands.
rmdir mydir
ls
Copy the file passwd from /etc to the current directory and verify it.
Enter the following commands.
cp /etc/passwd myfile
ls
Copy file myfile to myfile2 and verify it.
Enter the following commands.
cp myfile myfile2
ls
Delete myfile2 and verify it.
Enter the following commands.
rm myfile2
ls
View the content of myfile using the cat command.
Enter the following command.
cat myfile
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
Redirect the content of myfile to myfile3 and verify it.
Enter the following command.
cat myfile > myfile3
ls
cat myfile3
View a list of users logged in the system.
Enter the following command.
who
View this month’s calendar.
Enter the following command.
cal
Create a file containing this month’s calendar and verify it.
Enter the following commands.
cal > thismonth
ls
View the network interface parameters.
Enter the following command.
ifconfig
Check connectivity to PLABFED02.
Enter the following command.
ping –c 3 192.168.240.12
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:
Switch user to root and verify it.
Enter the following commands.
su –
whoami
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:
Navigate to your home directory.
Enter the following command.
cd ~
pwd
Use nano to create a file.
Enter the following command.
nano myfile1
You are now in Editor Mode for the file myfile1.
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.
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.
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.
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.
Clear the screen
Type the command whoami
Create a new directory named lab1
Change directories into lab1
List all files, even hidden files (directory should be blank)
Create a new file that contains the calendar for this month
List all files again, even hidden files (there should be just one file)
Display the entire contents of that new file
Delete the file and verify
Display today’s date
Capture the Skillsoft desktop in the text box provided in your Lab Report
document.
This concludes your lab.
SCREENSHOTS
SOLUTION
PAYMENT
The solution includes a zip document.
Attachments [Move over files to preview content of those files]
WEB375_Lab_1.zip (443.27 KB)
Screenshots
Web375_Lab1_Step2.png
Web375_Lab1_Step5.png
WEB375_Wk1_Report.docx
Price: $12
Buy Now
Checkout
Added to cart
Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.
WEB375 Lab 1 Basic Linux and System Admin Commands – $12.00
WEB375 Lab 2 Configure a DNS Server in Linux – $15.00
WEB375 Lab 3 Configure a Sendmail Server in Linux – $15.00
WEB375 Lab 4 Configure a vsftp Server in Linux – $15.00
WEB375 Lab 5 Configure HTTP Server in Linux – $15.00
WEB375 Lab 6 Configure a MySQL Server in Linux – $15.00
WEB375 Lab 7 Configure iptables in Linux – $15.00
Add to Cart
Checkout
Added to cart
You May Also Like:
WEB375 Lab 2 Configure a DNS Server in Linux
WEB375 Lab 3 Configure a Sendmail Server in Linux
WEB375 Lab 4 Configure a vsftp Server in Linux
WEB375 Lab 5 Configure HTTP Server in Linux
WEB375 Lab 6 Configure a MySQL Server in Linux
WEB375 Lab 7 Configure iptables in Linux

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.