Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

root@kali:~# touch myfile.txt root@kali:~# ls Desktop Documents Downloads file.t

ID: 3871994 • Letter: R

Question

root@kali:~# touch myfile.txt

root@kali:~# ls

Desktop Documents Downloads   file.txt Music my myfile.txt Pictures Public Templates Videos

root@kali:~# echo "inside the file"> myfile.txt

root@kali:~ #

root@kali:~# cat myfile.txt

inside the file

root@kali:~#

root@kali:~# cp myfile.txt myfile1.txt

root@kali:~# ls

Desktop Downloads Music myfile.txt Pictures Templates

Documents file.txt my file.txt              Public Videos

1.create directory newOne in current directory

2.delete directory newOne

3.change to the parent directory

4.change to the root directory

5.make file script.pl executable by users who are members of the file's group

6.execute script.pl Do not forget to include a screenshot

Linux commands

Lab: Provide commands and screenshots to prove that you performed the lab

Explanation / Answer

NOTE:
I have provided required commands for your assignment because i dont have the exact directory structure as you have in your system. Also script.pl is not available in my system. Please check the commands given below in your system and let me know if you face any problems. I will revert back within 24 hours. Thanks for your patience.

1.create directory newOne in current directory
$ mkdir newOne
the above command will create a directory newOne

2.delete directory newOne
$ rmdir newOne
the above command will delete the directory newOne if there are no files inside the directory.
If we want to remove the directory even though there are files in it. Use the below command.
$ rm -rf newOne

3.change to the parent directory
$ cd <parent directory name>
The above command will take you to the parent directory if it is specified as part of the cd command.
example:
$ cd /root/ravi/domain

4.change to the root directory
$ cd /
Te above command will take you to the root directory

5.make file script.pl executable by users who are members of the file's group
$ chmod g+x script.pl
the above chmod command adds execute permissions to the group who are members of the file's group.

6.execute script.pl Do not forget to include a screenshot