ASSIGNMENT-1 OS(LINUX COMMANDS)
Q1.) Create a directory named as "myproject" and navigate into it?
Q2.) Create a file named as "[Link]" and add any text into it?
Q3.) Copy the file "[Link]" to a new file named as "[Link]"?
Q4.) Move the file "[Link]" to a new directory named as backup?
Q5.) Delete the file "[Link]" and verify that it has been deleted or not?
Q6.) Navigate to the /home directory and list all its content?
Q7.) Create a new directory named as "mydir" in the /home directory?
Q8.) Navigate into the "mydir" and create afile named as "[Link]"?
Q9.) Navigate to the parent directory of "mydir" and list its contents?
Q10.) Create a new directory named as "Sample" in the /home directory?
Q11.) Copy the "[Link]" file from the "mydir" to the sample directory?
Q12.) Rename the "[Link]" file in the Sample directory to "[Link]"?
Q13.) Delete the original "[Link]" file from "mydir" directory?
OUTPUT: Loading...
Welcome to Fedora 33 (riscv64)
[root@localhost ~]# mkdir myproject
[root@localhost ~]# cd myproject
[root@localhost myproject]# echo "chinmay kansal">[Link]
[root@localhost myproject]# cp [Link] [Link]
[root@localhost myproject]# ls
[Link] [Link]
[root@localhost myproject]# mkdir backup
[root@localhost myproject]# ls
backup [Link] [Link]
[root@localhost myproject]# mv [Link] backup/
[root@localhost myproject]# ls
backup [Link]
[root@localhost myproject]# rm [Link]
[root@localhost myproject]# ls
backup
[root@localhost myproject]# cd ..
[root@localhost ~]# cd /home
[root@localhost home]# ls
[root@localhost home]# mkdir mydir
[root@localhost home]# ls
mydir
[root@localhost home]# cd mydir
[root@localhost mydir]# echo "chinmay">[Link]
[root@localhost mydir]# ls
[Link]
[root@localhost mydir]# cd ..
[root@localhost home]# ls
mydir
[root@localhost home]# cd mydir
[root@localhost mydir]# echo "chinmay">[Link]
[root@localhost mydir]# ls
[Link]
[root@localhost mydir]# cd ..
[root@localhost home]# ls
mydir
[root@localhost home]# mkdir sample
[root@localhost home]# cp mydir/[Link] sample/
[root@localhost home]# ls
mydir sample
[root@localhost home]# rm mydir/[Link]
[root@localhost home]# ls
mydir sample