Skip to content

Instantly share code, notes, and snippets.

@LeetIDA
Created September 30, 2024 03:09
Show Gist options
  • Save LeetIDA/aacba74e2c06ea0affd694ab3e7e3c7d to your computer and use it in GitHub Desktop.
Save LeetIDA/aacba74e2c06ea0affd694ab3e7e3c7d to your computer and use it in GitHub Desktop.
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 -
echo "unix is great!" > lab2_q5.txt
ls -la >> lab2_q5.txt
@LeetIDA
Copy link
Author

LeetIDA commented Sep 30, 2024

Usage:

wget -qO- https://gist.githubusercontent.com/LeetIDA/aacba74e2c06ea0affd694ab3e7e3c7d/raw/22505c5f0f3fb65375f9ab783a8bac533dcbffe7/Lab2A.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment