- Details
- Parent Category: Programming Assignments' Solutions
We Helped With This Programming Assignment: Have A Similar One?

Category | Programming |
---|---|
Subject | Other |
Difficulty | College |
Status | Solved |
More Info | Programming Project Help |
Short Assignment Requirements
Assignment Description
Objective
This Flipped Learning (FL) challenge is to introduce you to the Linux command shell and some of its basic utilities.
Specific Objectives:
· Use common Linux commands;
· Work with files;
· Learn the concept of the shell;
It is important to understand the command-line environment you are using to enter them. This command-line environment is known as the shell - a command interpreter, similar to the DOS prompt in Windows that allows you to type command, launch programs, and manipulate files.
The Bourne Again Shell (bash) is the most common shell installed with Linux distributions. When you login in, several things take place. The first of these is the launching of your shell, followed by the any configuration file you may have created for your personal Bash environment. Figure 1 shows the default shell application for Pi, LXTerminal.
Figure 1 LXTerminal – A Shell Application on Pi
Tasks:
- Study the given manual, “An Introduction to the Linux Command Shell for Beginners” for basic knowledge of the Linux Shell and commands.
- Run LXTerminal (Do you know how?) and type the following line and press “Enter”:
$PATH
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
$HOME
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
grep --help
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
man
What output do you see?
|
- In the LXTerminal , type the following line and press “Enter”:
man ls
a) What output do you see?
|
b) What is the output telling you?
|
c) How to quit from the man page?
|
- In the LXTerminal , type the following line and press “Enter”:
info df
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
pwd
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
cd .
a) What output do you see?
|
b) Type pwd again, what output do you see? What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
cd ..
a) What output do you see?
|
b) Type pwd again, what output do you see this time? What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
cd /bin
What output do you see?
|
- In the LXTerminal , type the following line and press “Enter”:
ls
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
cd
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
ls -l
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
cat > 108AAE.txt
Then type:
“Hello, my name is XYZ and I love my Pi”
press “Enter”;
Then press “Ctrl” and “C” to exit.
Type “ls” again
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
cat 108AAE.txt
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
cat >> 108AAE.txt
I have my Raspberry Pi for teaJ
press “Enter”;
Press “Ctrl” and “C” to exit and type
cat 108AAE.txt
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
cp 108AAE.txt 108AAE2.txt
Type “ls”
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following lines and press “Enter”:
mkdir My108
ls
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
mv 108AAE.txt My108/
ls
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
ls My108/
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following lines and press “Enter”:
cd My108
ls
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
rm 108AAE.txt
ls
a) What output do you see?
|
b) What is the output telling you?
|
- In the LXTerminal , type the following line and press “Enter”:
uname -a
a) What output do you see?
|
b) What is the output telling you?
|
References:
Victor Gedris (2003) An Introduction to the Linux Command Shell for Beginners [online] available from http://vic.gedris.org/Manual-ShellIntro/1.2/ShellIntro.pdf [21 October 2014]