Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide other steps can be done for creating this assignment and How to fix no such file or directory as in the picture

Please provide other steps can be done for creating this assignment and How to fix " no such file or directory" as in the picture below:

Start an AWS EC2 Linux instance using the Amazon Linux AMI. Use your SSH terminal (MoabXterm) to access your Linux instance.

Part 1 File Basics

1. From your home directory, create a sub-directory dir1

2. In dir1 create a file named file1.txt (use any method you used several in the Exploring Linux assignment) with CIT 168 is fun! as its contents.

3. Display the contents of file1.txt

4. Create a copy of file1.txt called file2.txt

5. Create a sub-directory named dir2 in dir1

6. Move file2.txt to dir2 make sure you show that it is no longer in dir1.

7. Navigate to dir2 and display the contents of file2.txt

8. Return to your home directory and display the contents of file2.txt without navigating to dir2 use either a relative or an absolute pathname for the file.

image text in transcribed

https://aws.amazon.com/amazon-linux-2/ [ec2-user@ip-172-31-88-57 ]$ cd [ec2-user@ip-172-31-88-57 ]$ mkdir dir1 mkdir: cannot create directory 'dir1': File exists [ec2-user@ip-172-31-88-57 ]$ cd dir1 [ec2-user@ip-172-31-88-57 dir1]\$ echo "CIT 168 is fun!" > file1.txt -bash: !": event not found [ec2-user@ip-172-31-88-57 dir1]\$ cat file1.txt cat: file1.txt: No such file or directory [ec2-user@ip-172-31-88-57 dir1]\$ cp file1.txt file2.txt cp: cannot stat 'file1.txt' : No such file or directory [ec2-user@ip-172-31-88-57 dir1]\$ mkdir dir2 mkdir: cannot create directory 'dir2': File exists [ec2-user@ip-172-31-88-57 dir1]\$ mv file2.txt dir2 mv: cannot stat 'file2.txt': No such file or directory [ec2-user@ip-172-31-88-57 dir1]\$ ls dir2 [ec2-user@ip-172-31-88-57 dir1]\$ cd dir2 [ec2-user@ip-172-31-88-57 dir2]\$ cat file2.txt cat: file2.txt: No such file or directory

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 Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

Find each product. (y + 2)

Answered: 1 week ago

Question

What are the characteristics of a mature industry?

Answered: 1 week ago