use linux commands to answer the following questions and just take screenshots
Using repl.it, your own Linux installation, or other Linux emulator do the following and take screenshots for the steps that require it. Paste your screenshots into a word document, in the same order as the questions..
Create an account on repl.it and use Linux commands to answer the following questions:
Here is the link for repl.it >> https://repl.it/login?goto=%2Fhome
1. Show the contents of your home directory and take a screenshot
2. Create a directory named IT305 in your home directory and take a screenshot
3. Create a file called oldfile.txt in your home directory using the command line method of your choice. Make sure the file has at least 10 lines of characters in it. (I would suggest writing 10 lines that follow a pattern like this – This is line 1. This is line 2. and so on)
4. Create a new file in IT305 in the following manner:
use the nl command to number the lines of oldfile.txt, pipe that to the head command but only show the first 5 lines, pipe that to the tail command but only show 2 lines and redirect that output to the IT305 folder and create the newfile.txt. Do this on one command line. Take a screenshot of the command line that you use and of the contents of newfile.txt
5. Using the nslookup command, do a lookup of www.marymount.edu (Links to an external site.)and redirect the output to a file named marymount.txt
6. del the IT305 directory and take a screenshot that shows that it is no longer in your home directory