In: Computer Science
Operating Systems class
Complete the following work with Linux commands and submit the screenshot.
1.Install a virtual machine with Lubuntu
2.Log in and display the content of your home directory
3.Create a directory called homework under your home directory and navigate to homework directory
4.Create a file called newfile under homework directory (this can be done by Leafpad)
5.Copy the file newfile to tempfile, then rename tempfile to myfile and delete newfile
6.Display the content of myfile
Please follow these commands in your Linux machine.
1. Should be done by you as you have to install a virtual machine on your PC.
2. After installing, open the terminal, default directory will be of /home/
To display the contents of your home directory ==> type ls command
3. To create a directory named homework ==> type mkdir homework
To navigate through the homework directory ==> type cd homework
4) To create newfile => open leafpad and type something and save as newfile in homework directory .
5)To copy to tempfile==> type cp newfile tempfile
To Rename tempfile ==> type mv tempfile myfile
To delete the newfile ==> type rm -f newfile
6) To display the content in myfile==> type cat < myfile