UNIVERSITY OF DAR ES SALAAM
COLLEGE OF INFORMATION AND COMMUNICATION
TECHNOLOGY (COICT)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
(CSE)
COURSE: SYSTEM ADMINISTRATION IN
LINUX
COURSE CODE: IS 371
INSTRUCTOR’S NAME: DR. JIMMY MBELWA
GROUP TASK: TASK 01
MEMBERS:
S/N NAME REGISTRATIO DEGREE
N NUMBER PROGRAMME
1. MASEKE, KAREN C. 2022-04-06412 BSc in CS
2. KILIMBA, KENNETH 2022-04-04249 BSc in CS
MARTIN
3. KONYOKA, LOUIS 2022-04-04729 BSc in CS
4. MASMINI, ARNOLD 2022-04-06484 BSc in CS
ANDREW
1. Command to find the present directory.
pwd- print working directory
2. Difference between /bin and /sbin directories.
3. Write a command to copy the file/etc/resolv.conf in test
directory.
4. Write a command to rename test directory to testing.
5. Write a command to delete the testing directory and its
contents.
6. Write a command to change the permissions of guest
directory to 775.
7. Explain the difference between single and multi-user run
levels.
8. Identify and configure system startup files.
System startup files are files responsible for configuring the system's environment and
starting necessary services during the boot process. These files vary based on the init
system used.
To configure the system startup files:
1. Identify your init system by running the following command whereby
“systemd”, “init”, or “upstart” will appear.
2. Modify the relevant startup files which can be found in the directories based
on their init systems:
SysVinit: /etc/inittab, /etc/rc.local
Upstart: /etc/init/
systemd: Create or edit .service files under /etc/systemd/system/.
9. Write a command to shutdown the system immediately.
10. Write a command to delete all files with a particular
extension in a particular folder.
EXAMPLE: Deleting all files with an extension “.txt” in a folder “/home/user”
11.Write a command to determine your system run level.
runlevel command. This command will display the previous and
current runlevels of the system.
12. Write the specific configuration file for the GRUB
“boot/grub/grub.cfg” This file specifies the menu options that are
displayed when the system
boots, as well as the kernel and initrd images that should be loaded.
sudo grub-mkconfig -o /boot/grub/grub.cfg
13.Write a command to remove the elvis package using apt-
get.
“sudo apt-get remove elvis” this command will remove “elvis”
package and dependencies but will keep configuration files for the
package.
While “sudo apt-get purge elvis” this command will completely
remove “elvis” package leaving
nothing in check.
14. Write a command to install the chrome package using
dpkg
To install the chrome package using dpkg.
The following command will be used:
sudo dpkg -i google-chrome-stable_current_amd64.deb
15. Write a command to display all the current memory usage in
megabytes and display total lines
free -m | awk '1; END {print "Total Lines:", NR}'