Question
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started