Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

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

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

More Books

Students also viewed these Databases questions

Question

4-6 Is there a digital divide? If so, why does it matter?

Answered: 1 week ago