1. Can you please give me an example of a command that would display a text file named myfile.txt and sort it on the same command line using the pipe command to join the two parts together.
(This is a Scenerio)
2. I have a log file named logins.txt that monitors logins to my system. It contains multiple lines with duplicate user names. What command could I use so that I could display the file showing only one instance of every login?
3. If I have a script named, myscript.sh, what is the syntax for running it at the command prompt?
4. What command would I use to give me the last 20 lines of a file called inventory.txt?