Skip to content

Instantly share code, notes, and snippets.

View LeetIDA's full-sized avatar
:shipit:
Maybe I'm slow to respond.

IDA LeetIDA

:shipit:
Maybe I'm slow to respond.
View GitHub Profile
@LeetIDA
LeetIDA / findBigFiles.sh
Created November 18, 2024 05:47
Lab8 Solved
#!/bin/bash
# Script name: findBigFiles.sh
# Author: Husain Alderazi
# Date: 13/11/2024
# Purpose: Find files larger than a specified size in the current directory
function usage {
echo "***************************************"
echo "USAGE: $SCRIPT_NAME [Number_Of_Meg_Bytes]"
@LeetIDA
LeetIDA / Lab2A.sh
Created September 30, 2024 03:09
Lab2A - Introduction to Command Line Interface
#!/bin/bash
mkdir lab2
cd lab2
touch file1.txt
touch file2
ls -la > lab2_q2.txt
cd /home
ls -la > /home/$(whoami)/lab2/lab2_q3.txt
cd -
@LeetIDA
LeetIDA / Lab2B.sh
Created September 30, 2024 02:53
Lab2B - The Linux File System
#!/bin/bash
mkdir lab2b
cd lab2b
mkdir -p My_Stuff/Music/{Van\ Morrisson,U2,"Green Day"} My_Stuff/Docs/{ITB5004,ITB5005} My_Stuff/Games/{Tetris,Warcraft} My_Stuff/WMV5001
touch /home/$(whoami)/lab2b/My_Stuff/Music/U2/BeautifulDay.mp3
touch /home/$(whoami)/lab2b/My_Stuff/Music/U2/21_Guns.mp3
touch /home/$(whoami)/lab2b/My_Stuff/Docs/ITB5004/Notes.txt
touch /home/$(whoami)/lab2b/My_Stuff/Docs/ITB5005/Notes.txt
touch /home/$(whoami)/lab2b/My_Stuff/Games/Tetris/HighestScores.txt