0% found this document useful (0 votes)
24 views2 pages

Linux Commands Assignment Guide

The document outlines a series of Linux command line tasks, including creating directories and files, copying, moving, and deleting files. It details the commands executed to manage files within a project and home directory. The commands demonstrate basic file manipulation and directory navigation in a Linux environment.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Linux Commands Assignment Guide

The document outlines a series of Linux command line tasks, including creating directories and files, copying, moving, and deleting files. It details the commands executed to manage files within a project and home directory. The commands demonstrate basic file manipulation and directory navigation in a Linux environment.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like