This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |