Assignment ICT1531

Others like the below post:
Like or dislike the post too:

 

ASSIGNMENT 2 FOR SEMESTER 1

 

  • What does AIGLX stand for?

Accelerated Indirect GLX project

 

  • What is it used for?

To facilitate the addition of 3D effects to everyday Desktop System, by displaying the desktop like a rotate cube when dragging windows from left or right.

 

  • Which window manager is required?

The Compiz window manager is required.

 

  • What is its main limitation?

It is the set of video card.

 

Question 2

 

2.1 What sort of NIC must be used?

The NIC with PXE Support.

 

2.2 Described how this works.

The Computer start with the normal boot order, than looks the master boot record of a PXE Server on the network, then the Server can present a menu containing entries to launch an installation.

 

2.3 Can one do this sort of boot without having a physical disk like a CD/DVD/HDD that contains installation files? No.

 

Question 3

 

3.1 What is the full filename of the GRUB 2 configuration file?

It is /boot/grub2/grub.cfg.

 

3.2 From which file and folder does it automatically generate its contents?

From the content of /etc/default/grub file and /etc/grub.d directory or folder

 

  1. Write a command to give a long listing of the files and folders in the current directory. (2)

Ls -lat

 

  1. Write a command that would display the contents of the ICT2631 file one screen full at a time. (4)

 

Question 6. Give the shell variable that holds each of the following. (2)

 

6.1 The value of the shell prompt.

It is PS1.

 

6.2 The location of the history file.

It is locate history

  1. Which file in the list of files shown is responsible for setting the default prompt?

It is the .bashrc file.

 

  1. Write a command that can be used to find help on the killpg system call (not the killpg C programming function). (3)

It is kill  –help

 

  1. In which directory would you expect to find the following? (4)

 

9.1 Temporary files

 

9.2 Information about system resources

 

  1. Write a command to create the classical directory in the Music folder using an absolute pathname. (3)

 

  1. Write a command that will take you to the parent directory of the current directory. (2)

 

 

  1. Write the command to list any filename ending in ‘e’ or ‘s’.

It is ls *[eo]

 

 

address bios cpu drive firmware

ghostwarehardware keyboards keyloggermalware

memorymouseramsoftware y2k

  1. What is the difference between the > and >> redirection metacharacters? (4)

 

  1. Which directories do of the following indicate: ., .., and ~? (3)

 

  1. Write a command to list files, printing the size of each file. (1)

 

  1. A permission indicator rwxrwxrwx is divided into three parts. How is the string divided, and whose permissions are indicated? (5)

 

  1. What permissions are applied in the following permission indicator? (3)

 

-rw-rw-rw-

  1. What permissions would be granted to file after running the following? (3)

 

chmod 744 file

  1. Starting with permissions rwxrwxrwx, write two different commands based on letters to give the permissions r-xr-xr–. (6)

 

  1. Given a umask the value of 0022, what default file permissions would you get? (3)

 

  1. Write the command to move the file file and to the Doc directory (which is in the current directory). (3)

 

  1. Give any two vi commands that can be used to get from command to input mode. (2)

 

  1. Which vi commands are used to do the following? (3)

 

23.1 Copy the current line.

23.2 Delete from the current cursor position to the end of the line.

 

  1. What is the basic difference between the locate and find commands (in terms of what is searched when the command is run)? (2)

 

  1. Consider the following. (3)

 

$ps u

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND

joe 1095 0.0 0.1 7156 2324 tty2 Ss 11:55 0:00 -bash

25.1 To what does the TTY refer?

25.2 To what does the Ss under STAT refer?

  1. Which command is used to give an overview of all processes running on a system as well as some general information about the system (like number of users, system demand, number of processes and so on)? (1)

 

  1. What signals are associated with the following two signal numbers, and what do they do? (4)

 

27.1 18

27.2 19

  1. Can you change a running command’s priority by using the nice command? Explain your answer fully. (3)

 

  1. What command can be inserted into a shell script file so that each command that is executed is displayed? (2)

 

  1. Write a shell script to do the following: ask the user for an age; if the age is greater than or equal to 100, display the message “That is old”; otherwise, display the number of years before the user is 100. (6)

 

  1. What does a system administrator do (in basic terms)? (1)

 

  1. What would you expect to find in the crontab configuration file? (1)

 

  1. Which command can you use to see which devices are connected to PCI buses on the computer? (1)