1. A shell script is a sequence of shell commands written in an executable script file. Executing this file instructs the shell to execute all commands in the order of their appearance in the script file. There are several shell scripting tutorials available on the web, e.g. search by entering the keywords Linux shell script tutorials. Go through one of these tutorials and then write a shell script that displays various system parameters by using shell commands like who, whoami, date, hostname, etc. 2. ps is a command that displays information about all processes currently running in your system. Read man page of ps command. Enter the following commands: (1) ps –ef | more and (2) ps –aux | more. Both of these will result in displaying a long list of processes. Identify what processes are started when the system is booted, and what processes are started later on. For each process, find out who owns it, what code it is running, and how much CPU/memory it has used. Now, store the details of all processes owned by root in a file called rootprocesses-1, and all processes owned by you in a file called my-processes-1. Next, restart your system, and create similar files, root-processes-2 and myprocesses-2. Compare root-processes-1 with root-processes-2, and my-processes-1 with my-processes-2. Explain the differences between the two. 3. df is a command that displays the amount of disk space available on the file system containing each file name argument. Read man page of df command. Run the command df to find out how many disk blocks are available and how many are in use. Does the sum of these equals the total number of disk blocks on the disk? If not, explain why there is a difference. Next run the command df –i to find out how many inodes are available and in use. Now create a new file with just a few characters in it, and again run df and df –i commands. Explain the effect of creating this new file. Now increase the size of this new file by entering a large number (> 5000) of characters, and again run df and df –i commands. Explain the effect of increasing the size of the new file.
Submission guidelines: Make sure you implement the tasks independently without cooperating with any other student. Submit any codes, files that you have created or generated while completing the assignment. Include screenshots of command executions in your report. Answer each question separately with explanations and screenshots. Screenshots have to full-sized and not cropped or edited. Deadline: 25.12.2017 – 23:59
9 freelancers están ofertando el promedio de $22 para este trabajo
Hey I'm interested I already did this lab today I'm a System and Network Engineer I can help Would you like to do it on Ubuntu or another Linux Distro ?