Lab 3 - Exercise (Terminal Commands)
Lab 3 - Exercise (Terminal Commands)
Instructions:
1. Make a word document with the convention “SECTION_ROLLNO _LAB-NO”. and
paste all of your work done at the LINUX prompt.
2. You have to submit a Word File including the command name, description of the
command and the screen shot of your output when you are done with your work.
3. Plagiarism is strictly prohibited, negative marks would be given to students who cheat.
Objectives:
Linux Commands
Practice Problems
Tasks:
Problem 1: Enter the following commands on LINUX prompt, and try to interpret the output. Give
description of each command in at least one line.
echo hello world
passwd
date
hostname
arch
uname -a
uptime
who am i
who
id
last
w
top (you may need to press q to quit)
echo $SHELL
man ls (you may need to press q to quit)
man who (you may need to press q to quit)
clear
cal 2000
cal 9 1759
echo 5+4 | bc -l
yes please (you may need to press Ctrl-c to quit)
time sleep 5
history
sudo apt-get install nasm
Problem 2: Try the following Command sequence and describe them in a single line.
cd
pwd
ls -al
cd .
pwd (where did that get you?)
cd ..
pwd
ls -al
cd ..
pwd
ls -al
cd ..
pwd (what happens now)
cd /etc
ls -al | more
cat passwd
cd -
pwd
You are done with your exercise, Submit on GOOGLE CLASSROOM at given time.