How to do this about replica set

Create a ReplicaSet using the replicaset-definition-1.yaml file located at /root/ .

heyy! the solution is already provided in the lab section but still if u want to know it step by step , i am sharing the answer over here.
1)First go to the root directory -->cd /root/
2)check for the items in it to find your desired file -->ls
3)As they mentioned there is a problem in the file that you need to fix, so open the file and check for it -->cat replicaset-definition-1.yaml
4) The api version is incorrect so fix it -->vi replicaset-definition-1.yaml
6) press i and correct the api version to -->apps/v1
7)Then finally create the replicaset using replicaset-definition-1.yaml file located at /root/—> kubectl create -f /root/replicaset-definition-1.yaml
8) It will show something like this -->replicaset.apps/replicaset-1 created
Problem solved!
i hope it will be helpful for you.