IS371Assignment1
IS371Assignment1
(CoICT)
Assignment 1
Members:
1. MWAKASOKE, Meshack M.
2. TERI, Anjela E.
3. NNKO, Gift A.
4. BAKARI, Abdillah I.
5. NSIMBA, Eric M.
6. MWAFYUMA, Emmanuel
Solutions
1. Login guest
username: guest
password: guest
2. guest@guest-pc~$ pwd
/home/guest
3. guest@guest-pc~$ cd / && ls
Linux Directory structure
/ – The Root Directory
This is the main folder of Linux systems. Everything on a Linux system is contained
within this folder. It is similar to the C:/ folder in Microsoft Windows systems.
1
/dev – Device Files
Linux exposes devices as files, and the /dev directory contains a number of special
files that represent devices. These are not actual files as we know them, but they
appear as files – for example, /dev/sda represents the first SATA drive in the system.
This directory also contains virtual devices that don’t actually correspond to
hardware. For example, /dev/random produces random numbers. /dev/null is a
special device that produces no output and automatically discards all input.
2
/mnt – Temporary Mount Points
The /mnt directory is where system administrators mounted temporary file systems
while using them in the past. For example, if you’re mounting a Windows partition to
perform some file recovery operations, you might mount it at /mnt/windows. However,
current Linux systems allow a user to mount the file systems at any folder in the
system.
3
/proc. Ubuntu doesn’t use SELinux, so the presence of this folder on Ubuntu appears
to be a bug.
4. The /bin folder contains user binaries used by users while /sbin contains system
binaries contained in the system
Examples:
4
/bin /sbin
mkdir ifconfig
chmod reboot
which shutdown
Run-Level 1 2
13.
.bash_profile For bash shell. It also contains commands but only runs
when the user logs in.
.login For C shell. It also contains C shell constructs but only runs
5
when the user logs in.