Bilal
Reverse Engineering & Malware Analysis
Check the minimum requirements for running Ubuntu on your PC.
If everything is fine, you will see green tick marks. You can also select to download updates and install third-party software. Then click Forward.
You can choose either:
Manual partitioning steps:
/./boot partition (~300MB, ext3).
Click Install Now. Select your location and click Forward.
Select your desired keyboard layout and click Forward.
Fill in your personal details:
Click Forward to let Ubuntu copy essential files.
After installation, restart your PC and remove the CD.
Ubuntu will display the login screen. Choose your user and enter your password.
Some useful Linux commands:
ddrescue – data recovery tooldeclare – declare variables and attributesdf – display free disk spacediff – compare filesdig – DNS lookupecho – display message on screengrep – search filesls – list directory contentsFor a complete list, see SS64 Linux Commands
Experiment 2a: Shell script to check files
Algorithm:
Script (4.sh):
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Enter at least one input file name"
else
for i in "$@"; do
if [ -d "$i" ]; then
echo "$i is a directory"
elif [ -f "$i" ]; then
echo "$i is a file: $i"
echo "No of lines: $(wc -l < "$i")"
else
echo "$i is not a file or directory"
fi
done
fi