Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Page number 1 This Lab Exercise: Basic Linux Commands Instructions: Part 1 : File System Navigation and Basic Commands Open a terminal and log in

Page number
1
This
Lab Exercise: Basic Linux Commands
Instructions:
Part 1: File System Navigation and Basic Commands
Open a terminal and log in to your Linux environment.
Use the following commands to navigate through the file system:
pwd: Print the current working directory.
ls: List files and directories.
cd: Change directory.
mkdir: Create a new directory.
rmdir: Remove an empty directory.
Create a directory structure as follows:
/home/yourusername/lab_files
Navigate into dir1 and display the content.
Copy file1.txt from dir1 to dir2.
Rename file2.txt in dir1 to newfile.txt.
Remove file3.txt from dir2.
Display the updated directory structure.
Part 2: Text Editing and File Manipulation
Use a text editor (nano, vi, or any of your choice) to create a new file named
notes.txt in the lab_files directory.
Write a brief note in notes.txt about your experience with the commands used so
far.
Append another line to notes.txt with any additional comments.
Display the contents of notes.txt.
Use the cp command to create a backup copy of notes.txt named notes_backup.txt.
Check the disk space usage of your home directory using the du command.
Use the touch command to create a new file
Use the alias command to create a short cut to display all the files in a directory in
alphabetical order.
Use the unalias command to remove an alias
Use the man command to get help on a specific command
Use top/htop to display running processes on the system
Use apt to update/upgrade your linux system
Use the echo command to print a system variable
Use the cat command to view a file
Use the ps command to display process in your current shell
Use the ps command to display all processes running on the system
Use the kill command to stop a process
Part 3: Process Management and System Information
Open a new terminal window.
Use the ps command to display information about the processes running on your
system.
Identify the process ID (PID) of the terminal you opened.
Use the kill command to terminate the terminal process identified in the previous
step.
Check the status of the terminated process using the ps command again.
Display information about the memory usage of your system using the free
command.
Submission:
Organize all commands used in a text file named lab_commands.txt.
Take screenshots or copy and paste terminal outputs demonstrating the results of
each command.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

Students also viewed these Databases questions

Question

How flying airoplane?

Answered: 1 week ago