You are on page 1of 2

Introduction

In the lab session, students will be introduced to the Linux distribution of Ubuntu 14.04.02
LTS. This exercise will emphasize on basic command of File & Directory structure and System
Information. On top of that the general command such as sudo and man will also be shown.
Students may visit the link: https://help.ubuntu.com/community/UsingTheTerminal for
further reading.

Answer question below with proper steps and commands:


ACTIVITY 1
LAB TASK
1) Starting Terminal
Select Application # Accessories # Terminal
2) Elevated privilege (sudo command)
At your prompt, perform the following function :
2.1. Execute command tail /etc/passwd. Explain the output
2.2 Execute command tail /etc/shadow. Explain the system response.
2.3 Then execute command sudo tail /etc/shadow. Explain on the sudo command.

3) File and Directory structure manipulation


Perform the following function :
3.1 Create a linux file name linux_distro.txt and write some names of Linux
Distribution as its content. Example : Debian, Red Hat, Suse
3.2 Display the content of the file linux_distro.txt.
3.3 Copy the file linux_distro.txt to a new file list_of_linux.txt
3.4 Rename the file list_of_linux.txt to linux.txt.
3.5 Delete the file linux.txt
4) Directory commands
Perform the following related operations at your home directory.
4.1. Show your current working directory.
4.2 Get a list of files in the current directory.
4.3 Create a directory called “MATRIC” under your current directory.
4.4 Copy one file under your current directory to directory “MATRIC”.
4.5 Go to directory “MATRIC” and show its content.
4.6 Delete the directory “MATRIC”

Note: “MATRIC” mean your own matric number (18DDT18F…)

You might also like