Professional Documents
Culture Documents
If you are familiar with using the command line, you will find this introduction very easy. Use your expertise
to help other students with their exercise, and then move quickly on to Section 3.
There are three sections to this task. Section 1 is for students on Windows machines only. Section 2 is for
students on Macs or Linux machines. Section 3 is for everyone.
2 Enter
cd
and record the response. This is the current working directory.
4 Change your working directory back to the original working directory by entering
cd <the path that you wrote down at step 2>
Use cd again to check that you are in the directory you expect.
5 Enter
dir
What does this command do?
6 Enter
tasklist
What does this command do?
7 Check that you are in a directory you can write to. You are going to create a new folder. Enter
mkdir LabOne
Enter
cd LabOne
to move to this new folder.
9 You can also write the output from other commands to file. Enter
systeminfo > SystemInfo.txt
What does this file contain?
11 The command line will not allow you to delete the folder if it contains files. Enter
rmdir LabOne /s
the /s switch tells it to remove the folder LabOne and everything inside it (including subfolders and
all files).
12 Enter
cls
to clear all your commands from the command line window.
13 Enter
doskey /history
you can see this returns a list of all the commands you have entered during this session – this might
be a useful command to use on first receiving a computer for evidence retrieval! Copy this text and
paste it into your notes.
Section 2 - Macs/Linux
Macs and Linux use slightly different commands to Windows.
2 Enter
pwd
and record the response. This is the current working directory. (pwd stands for ‘print working
directory’)
4 Change your working directory back to the original working directory by entering
cd <the path that you wrote down at step 2>
Use pwd again to check that you are in the directory you expect.
6 Enter
rc-status
What does this command do?
7 Check that you are in a directory you can write to. You are going to create a new folder. Enter
mkdir LabOne
Enter
cd LabOne
to move to this new folder.
9 You can also write the output from other commands to file. Enter
sudo lshw > SystemInfo.txt
What does this file contain?
11 The command line will not allow you to delete the folder if it contains files. Enter
rmdir LabOne -r
the -r switch tells it to remove the folder LabOne and everything inside it (including subfolders and
all files).
12 Enter
clear
to clear all your commands from the command line window.
13 Enter
ls -al
and then
cat .bash history
you can see this returns a list of all the commands you have entered during this session – this might
be a useful command to use on first receiving a computer for evidence retrieval! Copy this text and
paste it into your notes.
Unless you have a lot of experience already, choose the Pre Security pathway.
Start with Intro to Offensive Security and try your hand at hacking into a bank.
Then try Intro to Defensive Security and see if you can keep an organisation safe from intrusion.