Task sm1act02: Basic command-line utilities.
The Linux directory tree
29-09-2026
Task sm1act02: The Linux directory tree. Basic
command-line utilities.
GENERAL CONDITIONS
1- Deadline:
DAW1 --> 12-10-2026
ASIX1 --> 15-10-2026
2- Upload your
videoclips to the
Moodle of your group and seminar with
the following file name:
- If your group is ASIX1 -->
asix1_surname1_name_sm1act02.tar.gz. Replace surname1 with
your real first surname and name with your real first name.
- If
your group is DAW1 --> daw1_surname1_name_sm1act02.tar.gz.
Replace surname1 with your real first
surname and name with your real first name.
where surname1 is your real first surname and name
is your real name. 3-Make
this report individually.
1- IMPORTANT:
Unmute the microphone of
your physical machine.
2- Enable Audio
Input and Output on your
virtual machine.
3- Boot
your virtual
machine.
4-
Install Kazam
, an
application
that records a
video of
activity on
your screen or
captures a
screenshot.
5- Install
VLC media
player, a
open source
media player used
to play almost
any audio or
video file
format.
6- With
the help of Kazam
installed
on your Linux
machine,
make a video
clip with
audio, where
we can see and
hear (in
english, of
course) how
you solve the
questions in
the practical
part.
7- Video
clips made
with another
program and
installed on a
diferent
operating
system will
get a maximum
mark on 6. 8-
Check your
videoclips
with the help
of VLC.
PRACTICAL EXERCISE
IMPORTANT - 1: You
can not answer any question as a root user. You can only
answer the questions of this exercise as a standard user.
IMPORTANT - 2: Video
clips made with another program and installed on
a different operating system will get a maximum mark
of 6.
IMPORTANT - 3: Create one video clip for
each exercise named q1.mp4 through q15.mp4. Format mp4
for the video clips is mandatory.
IMPORTANT - 4: Pack all your videoclips
into one single compressed file named
asix1_surname1_name_sm1act02.tar.gz or daw1_surname1_name_sm1act02.tar.gz
depending on your group. Replace surname1 with
your real first surname and name with your real name.
1- Create 3 new directories in your personal directory: task,
temp and help.
List the contents of your personal directory, showing additional relevant
information about them (owner, permissions, size, creation date,
etc...) and showing hidden an unhidden files.
2- Change to /usr/share/info directory. Copy gnupg.info.gz
and find.info.gz into the directory temp created
inside your personal folder in question 1. List the
contents of temp.
3- Move find.info.gz
inside temp to the directory task created
in question 1.Change
to task. Check the size of just
the find.info.gz
file. Uncompress find.info.gz.
Check the name and size of the new
file created after expanding find.info.gz.
Check
that find.info.gz
does not exist any
longer. Why?.
4- Change the name of the file gnupg.info.gz
inside the
directory temp to sm1act2q4.gz. List
only sm1act2q4.gz and additional information about it (owner,
permissions, size, creation date, etc...) .
5- Remove the directories temp and help
that you created in question 1. List the contents of your
personal directory.
6-Documents is a directory created during the
installation process inside your personal directory. Copy task
to Documents . List the contents of
Documents.
7- Remove find.info
inside task. Afterwards, remove task.
List
the contents of
Documents.
8- Show a list (displaying
relevant information) of: a) All files in /bin containingstarting
with ntfs.
b) All files
in /etcending
with .conf. c) A
list of files inthe /etc/ssh directory
with no extension.
9- Change to /usr/share/info
directory. Move
a file called nano.info.gz inside your
personal directory. Can you move nano.info.gz
inside your personal
directory?.
Why?.
10-Create a
new directory called tmp in your
personal directory. Copy all
files in the /usr/bin directory that begin with the
character "z" to tmp.
List the
contents of tmp.
11- Change to tmp.
Pack all files inside the tmp
directory in a new file called zpack.tar.
Afterwards, compress zpack.tar.
Finally, with the only exception of
zpak.tar.gz, remove all files
in tmp.
12-
Create a
directory
called average
in
your personal
directory.
Change to average.
Download http://www.collados.org/asix1/sm1/downloads/average.tar.gz
with wget.
13-
Uncompress
average.tar.gz.
After
that,
unpack average.tar.
Afterwards,
list the
contents of
the average
directory.
Finally, show
the contents
of average.c
and README
using cat.
14-
Find:
a)
Directory
where the
binary file of
gzip
has been
stored. b)
Directories
where
files with the
extension
.cnf are
stored c)