Created
September 30, 2024 03:09
-
-
Save LeetIDA/aacba74e2c06ea0affd694ab3e7e3c7d to your computer and use it in GitHub Desktop.
Lab2A - Introduction to Command Line Interface
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 - | |
echo "unix is great!" > lab2_q5.txt | |
ls -la >> lab2_q5.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
wget -qO- https://gist.githubusercontent.com/LeetIDA/aacba74e2c06ea0affd694ab3e7e3c7d/raw/22505c5f0f3fb65375f9ab783a8bac533dcbffe7/Lab2A.sh | bash