Question: PART E Using Linux Ubunto operating system write the command needed to perform the following tasks: Some commands might need root access, use sudo to

PART E

Using Linux Ubunto operating system write the command needed to perform the following tasks:

Some commands might need root access, use sudo to execute them

  1. Login to your account as guest and not as root

  1. Open Terminal and find out the shell you are using.

  1. Change your shell to sh.

  1. Write a shell script (using vi editor or any other editor) to create a directory test in your area and copy the contents of /etc in test directory.

  1. Move the contents of test directory in test1 directory.

  1. Copy the test1 directory in /tmp

  1. Write, the date of Creation/Modification, ownership, group and permissions of test1 directory

  1. Tar and gzip the contents of test1.

  1. Move the test1.tgz into your area and untar it.

  1. Write the names of all the files in test1 directory and its subdirectories which have as in their name into a file asname.

  1. Delete the test1 directory using rm command and see if you find it in Trash

  1. Use find command and locate command to find the location of passwd command

  1. Find out the number of commands in /bin

  1. Create a command to create new users (Use useradd command. See the man page of useradd for command options). Use chmod to give it appropriate permission so that only guest user can run this command

  1. Compute the MD5 Checksum of kernel file

  1. Check the date and time of the system. Advance the date by one day and time by 1 hour.

  1. Find out the disk usage of /etc directory.

  1. Find the hostname and domain name of the system.

  1. Find the CPU and Memory utilization of the system.

  1. Find the PID of the Process which is consuming maximum CPU.

  1. Shutdown the system with warning to users.

  1. Find out the disk usage (du) of / directory and compare it with the usage of / partition (df).

  1. Make a new swap of 512 MB.

  1. Shutdown your network interface. Try to ping your friends machine. Bring it up again and try to ping again.

  1. traceroute to www.google.com and try to find out how many routers are there between your machine and google server

  1. Shutdown your machine and then poweroff (after starting it again) your machine. Do you see a difference between the two

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!