Ask Operating System Expert

Anyone good with Linux Operating System?

your netlab workstation then ssh to server.cnt1015.local with your college username (the account you used for the quizes).
Create a directory called final in your home directory.
Inside final create directories called backup, main, SysInfo, & files
Inside the main directory create a file called boot.both which contains a recursive listing of all the files and directories inside the directory /boot and includes any error messages.

Copy the script snooze from /home/stuff, put it in your main directory.

Run snooze.

While it is running:
Put it into the background in a suspended state.
Run the command which shows which jobs are running in the background, putting the output in a file called sleepingjobs in your main directory.
Return snooze to the foreground and let it finish running.

Copy only the files with an "s" and a "p" adjacent regardless of case (i.e sp , SP, sP, or Sp) to the directory files from the directory /usr/share/system-config-printer

Create a file called userinfo in backup.
On the first line put the home directory of the user games.
On the second line put the login shell of the user root.
On the third line put the members of the group wheel seperated only by a comma.


Set permissions on the file userinfo so that it is owned by the group cnt1015.

Inside the backup directory create a recursive copy of the /usr/share/doc/HTML directory

Create an alias called now which shows the date & time as YYYY/MM,DD-HH:MM (ex: 2014/10,16-18:50) making sure the alias survives a re-login.

Perform a recursive long listing on /boot redirecting stdout to a file called ls.out in the main directory and redirecting stderr to a file called ls.err in the main directory.

Create a file called num.lines in your main directory which has the numbers of lines in the file /etc/httpd/conf/httpd.conf

Search for the term audio in the file /etc/httpd/conf/magic, sending the results to a file called magic.audio in main.

Create a file called if.info in the SysInfo directory which contains the network information on the eth0 network device and only the information for that device.

Find the IP address of the server spam.cnt1015.local and put it in the file spam.ip under the main directory.

Capture your routing table information into the file routeinfo in the SysInfo directory.

Find the secondary DNS server address and put it in a file called nameserver2 in the SysInfo directory.

Capture the output of the command that tests ICMP availability for the IP address 127.0.0.1 three times and put that output in a file called nettest under the main directory.

Make a script called hello, in the main directory.
Set permissions so you can read, edit and run but the group and others only have read permissions.
The scrip needs to take a name passed into it.
The output from the script should be:

Hello XXXXXX.

You are logged in as yyyyyyy.
Where XXXXXX is a name you passed in and yyyyyy is the username you are logged in as"

ex:

Hello Sean.

You are logged in as scpayne.

Run the script you created in step 18 and capture the output to a file called hello.out in the main directory.

Determine which users are logged into the system and capture it to a file called notify in the main directory.

Determine how many regular users exist on the system and put that number in a file called numusers in the main directory.

Determine the percentage of used space, in human readable format, in /boot and put that in a file called usedspace under the main directory. ( ie, if the used space is 30%, just have 30% in in the file.)

Make a hidden directory in your backup directory called hiddenbackups that only your user has permissions to access.

Get a list of all users with a UID between 400-499, sort it numberically in reverse order on the GID field putting the result in a file called sortedusers in your main directory.

Make a file called groups.6-10, in the main directory, containing the 6th - 10th groups (lines 6-10) found in /etc/group.

EXTRA CREDIT (10 points)

Make a script called info.sh, in the main directory.
Set permissions so you can read, edit and run but the group and others only have read permissions.
If you pass in a 1, it will tell you the date using YYYY-MM-DD (ie 2013-07-30).
If you pass in a 2, it will tell you the time (ie HH:MM:SS).
If you pass in a 3, it will tell you the date & time (2013-07-29--09:31:01).
If you pass don't pass anything in or you pass in something other than 1,2,or 3 it will tell you you need to pass in 1-3.

 

Operating System, Computer Science

  • Category:- Operating System
  • Reference No.:- M91348300
  • Price:- $15

Guranteed 24 Hours Delivery, In Price:- $15

Have any Question?


Related Questions in Operating System

Research types of operating systems that are currently

Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Explain why you think the choice you made ...

Question research hex editors available for mac os and

Question : Research hex editors available for Mac OS and Linux. Based on the documentation, how easy would validating these tools be? Select at least two hex editors for each OS, and discuss what you would do to validate ...

Foundation of information technologyresearch types of

Foundation of Information Technology Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Expl ...

Assignment -building a multi-threaded web server using c

Assignment - Building a multi-threaded web server using C and p threads, following the model from the lecture. Your program will have one thread acting as a dispatcher thread, listening fornetwork connections with reques ...

Question you are a security administrator responsible for

Question: You are a security administrator responsible for providing secure configuration requirements for new laptop deployments. After reading Module 2 of Certified Secure Computer User v2exercises, apply the configura ...

Question what do you see as the major differences between

Question : What do you see as the major differences between UNIX/Linux and other operating systems, such as Windows and Mac OS X? The response must be typed, single spaced, must be in times new roman font (size 12) and m ...

Question description of lasa in this assignment you will

Question: Description of LASA: In this assignment, you will select a real-world operating system (can be for a PC, server, tablet, handheld, or embedded device). You will introduce the operating system and its components ...

Discussion question this research assignment will give

Discussion Question : This research assignment will give further information on the nature and workings of multi-tasking and multi-processing operating systems. All information reported in this assignment is to be in the ...

Taskyour job in this assignment is to create two virtual

Task Your job in this assignment is to create two Virtual machines each running a different but the latest distribution of Linux e.g. Ubuntu Server and CentOS. Each of these VM's is to offer services to a user base. The ...

State the required answer precisely and then provide proper

State the required answer precisely and then provide proper explanation. It is not enough to provide one- word or one-line answers. Briefly describe the following concepts and indicate how they are related in the context ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As