Linux Group Assignment
Linux Group Assignment
MEMBERS:
S/ NAME REGISTRATIO DEGREE
N 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
16. Write a command to display all lines from File2 that contain Happy, happy, Sad,
sad, Angry, or angry.
17. What is the purpose of the initrd line in a GRUB configuration?
The initrd line in a GRUB configuration specifies the location of the initial RAM disk
(initrd) file, a temporary filesystem loaded into memory during the early stages of the
boot process. It provides the kernel with essential drivers and tools needed to initialize
hardware, load kernel modules, and prepare the environment for mounting the actual
root filesystem. This is crucial for systems with advanced storage setups or encrypted
filesystems, enabling a flexible and modular boot process.
18.You want to connect a laptop computer to a public Wi-Fi network, but you don’t
know its name or other relevant data. What command can you type as root to find this
information? (Assume that your wireless network interface is wlan0.)
To find information about a public Wi-Fi network, you can use the iwlist command as
root. This command is specifically designed to scan for wireless networks and provide
detailed information about them. It works with wireless network interfaces, such as
wlan0, and is useful for identifying nearby networks when the network name (SSID)
or other details are unknown.
To perform a scan, use the command iwlist wlan0 scan. This will instruct the wlan0
interface to search for all available Wi-Fi networks within range. The output will
display a list of detected networks, including their SSIDs (names), signal strength,
security types and the channels or frequencies they are using. This information helps
you identify the network you wish to connect to and assess its strength and security.
19.What is the first program the Linux kernel runs once the kernel itself is running,
assuming a normal Linux startup procedure?
The first program executed by the Linux kernel after initialization is the init program.
It is responsible for starting all essential services and processes required to bring the
system to a usable state. The specific behavior of init depends on the system's
initialization framework, which can vary across distributions.
Regardless of the system used, the init program’s primary function is to set up the
environment, start necessary services, and ensure the system is fully operational for
user interaction.