Command Log: October 7, 2024, 8:40 am

# Welcome to the PythonSWC
# Welcome to the PythonSWC
# Welcome to the PythonSWC
wget https://swcarpentry.github.io/shell-novice/data/shell-lesson-data.zip
unzip shell-lesson-data.zip
unzip shell-lesson-data.zip
clear
clear
wget https://swcarpentry.github.io/shell-novice/data/shell-lesson-data.zip
unzip shell-lesson-data.zip
unzip shell-lesson-data.zip
ls
clear
clear
clear
pwd
ls
ls -F
ls-F
ls -l
ls -a
clear 
ls -la
ls -la
ls -l -a
ls --help
clear
man l
man ls
man ls
ls
ls -l
cd shell-lesson-data
pwd
ls
cd exercise-data
pwd
ls
ls -la
cd .
cd ..
clear
pwd
ls
cd ..
pwd
cd shell-lesson-data/exercise-data
cd
cd /
pwd
ls
cd home
cd demo
pwd
ls
cd hssdemo
cd hccdemo
cd hccdemo
clear
pwd
ls
cd /home/demo/hccdemo/lseeon-backup
cd /home/demo/hccdemo/lesson-backup
cd /home/demo/hccdemo/lesson-backup
cd /home/demo/hccdemo/lesson-backup
cd ..
cd lesson-backup/
cd /home/demo/hccdemo/
ls
ls
ls
cd
pwd
ls -l
clear
mkdir new-dir
ls
ls -l
ls -l new-dir
ls -l lesson-backup/
nano
nano draft.txt
ls
ls -l
nano draft.txt
clear
touch file2
ls -l
ls -l
mv file2 new-dir
ls -l
ls -l new-dir
cd new-dir/
ls
mv file2 fileA
ls -l
clear
ls -l
cp fileA file2
ls -l
rm file2
ls -l
rm -i
rm -i fileA
ls
touch file2
cd ..
ls -l
rm -i new-dir file2
rm -i new-dir/file2
clear
ls -l
ls -l new-dir
rm -i new-dir/file2
ls -l new-dir
touch new-dir/file2 new-dir/fileA
ls -l new-dir
rm -i new-dir/file2 new-dir/fileA
ls -l new-dir
touch new-dir/file2 new-dir/fileA
touch new-dir/file2 new-dir/fileA
ls -l file2
cd new-dir
clear
ls
ls -l file2
ls -l 
ls -l fi*
ls -l file?
touch fileB file12
ls -l
ls -l fi*
clear
ls -l file?
cd ..
ls
ls
ls
clear
pwd
ls -l
ls -l /shell-lesson-data/exercise-data
ls -l shell-lesson-data/exercise-data
cd shell-lesson-data/exercise-data/
ls
clear
pwd
cd alkanes/
pwd
ls -l
wc cubane.pdb 
wc *.pdb
wc -l *.pdb
wc -l 
wc -l 
clear
wc -l 
wc -l *.pdb
wc -l *.pdb > lengths.txt
ls -l
cat lengths.txt 
clear
clear
cat lengths.txt 
head lengths.txt 
head -n 2 lengths.txt 
ls -l
cd ..
ls
clear
cat numbers.txt 
sort numbers.txt 
sort -n numbers.txt 
cd -
sort -n lengths.txt 
cat lengths.txt 
sort -n lengths.txt > sorted-lengths.txt
ls -l
clear
cat sorted-lengths.txt 
head sorted-lengths.txt 
head -n 3 sorted-lengths.txt 
ls -l
clear
echo The echo command prints text
echo hello > testfile01.txt
ls
ls -l
cat testfile01.txt 
echo hello > testfile01.txt
cat testfile01.txt 
echo hello again > testfile01.txt
cat testfile01.txt 
echo hello again >> testfile01.txt
cat testfile01.txt 
clear
sort -n lengths.txt
sort -n lengths.txt | head -n 2
wc -l *.pdb |sort -n | head -n 3 > fileA
wc -l *.pdb |sort -n | head -n 3
ls -l
cat fileA 
wc -l *.pdb | head -n 3
cd ..
ls -l
cd -
cd ..
ls
cd animal-counts/
ls 
clear
ls
cat a
cat animals.csv 
cat animals.csv | head -n 5 | tail -n 3 | sort -r > final.txt
cat final.txt 
cut -d , -f 2 animals.csv 
cut --help
clear
ls  
cat final.txt 
cat final.txt >> final.txt
head final.txt >> final.txt
cat final.txt 
cut -d , -f 2 animals.csv | uniq
cut -d , -f 2 animals.csv | sort | uniq
cut -d , -f 2 animals.csv | sort | uniq
cut -d , -f 2 animals.csv | sort | uniq
cut -d , -f 2 animals.csv | sort | uniq
cut -d , -f 2 animals.csv | sort | uniq
cd ..
ls
clear
ls
cd creatures/
ls -l
head -n 5 basilisk.dat minotaur.dat unicorn.dat 
for basilisk.dat unicorn.dat minotaur.dat 
for basilisk.dat minotaur.dat 
for filename in basilisk.dat unicorn.dat minotaur.dat ; do      echo $filename;     head -n 2 $filename | tail -n 1; done
clear 
for filename in basilisk.dat unicorn.dat minotaur.dat ; do      echo $filename;     head -n 2 $filename | tail -n 1; done
for filename in basilisk.dat unicorn.dat minotaur.dat
for x in basilisk.dat minotaur.dat unicorn.dat ; do     head -n 2 $x |tail -n 1 ; done
for temperature in basilisk.dat minotaur.dat unicorn.dat; do    head -n 2 $temperature | tail -n 1; done
clear
pwd
 cd ../alkanes/
for filename in c*; do ls $filename; done
for filename in *c*; do ls $filename; done
for alkanes in *.pdb ; do echo $alkanes; cat $alkanes > alkanes.pdb; done
ls -l
cat alkanes.pdb 
cat propane.pdb 
cat propane.pdb 
cat propane.pdb 
cat propane.pdb 
cat propane.pdb 
cat propane.pdb 
cat propane.pdb 
cat propane.pdb 
cat propane.pdb 
for alkanes in *.pdb ; do echo $alkanes; cat $alkanes >> alkanes.pdb; done
for alkanes in *.pdb ; do echo $alkanes; cat $alkanes >> all_alkanes.pdb; done
ls
cat all_alkanes.pdb 
cat all_alkanes.pdb 
cat all_alkanes.pdb 
for alkanes in *.pdb; echo $alkanes
for alkanes in *.pdb ; echo $alkanes; cat $alkanes >> all_alkanes.pdb; done
clear
ls -l
nano middle.sh
ls
ls -l
cat middle.sh 
clear
bash middle.sh 
cat middle.sh 
nano middle.sh
bash middle.sh octane.pdb
bash middle.sh pentane.pdb
nano middle.sh
bash middle.sh pentane.pdb 20 5 
nano middle.sh
nano middle.sh
nano middle.sh
nano sorted.sh
bash sorted.sh *.pdb ../creatures/*.dat
cat sorted.sh
clear
nano species.sh
bash species.sh
bash species.sh
bash species.sh
cd ..
ls
cd animal-counts/
bash species.sh
ls ..
cd -
pwd
ls
ls alkanes/
mv alkanes/species.sh animal-counts/
cd animal-counts/
ls
bash species.sh
bash species.sh animals.csv 
cd
ls 
pwd
cd shell-lesson-data
ls
cd exercise-data/
ls 
cd writing
ls -l
cat haiku.txt 
grep The haiku.txt 
grep -w The haiku.txt 
grep -w "is not" haiku.txt 
clear
grep -w "is not" haiku.txt 
grep -n "it" haiku.txt 
grep -n -w "it" haiku.txt 
grep -n -w -v "it" haiku.txt 
pwd
lls -l
ls -l
grep Yesterday .
grep -r Yesterday .
grep -E "^.o" haiku.txt 
clear
grep -E "^.o" haiku.txt 
clear
# Git Lesson Begins
cd $HOME
pwd
git config --global user.name "Caughlin Bohn"
git config --global user.email "cbohn4@unl.edu"
git config --global user.email "cbohn4@unl.edu"
git config --list
git config --global core.autocrlf input
git config --global init.defaultBranch mani
git config --global init.defaultBranch mani
git config --global init.defaultBranch mani
git config --list
git config --global init.defaultBranch main
git config --list
hostname
clear
mkdir recipes
cd recipes/
git init
ls
ls -a
ls .git
git status
ls
nano guacmole.md
ls 
cat guacmole.md 
git status
git add guacmole.md 
git status
git status
clear
git commit -m "Initialized Guacamole Recipe File😊"
git status
cat guacmole.md 
git log
nano guacmole.md 
nano guacmole.md 
clear
git status
git diff
git add guacmole.md 
git status
git commit -m "Added the Ingridientssss"
nano guacmole.md 
git diff
git add guacmole.md 
git commit -m "Improving the recipe! πŸŽ‰"
git log
git log --oneline
git log --oneline --graph
mkdir cakes
git status
git add cakes
git status
cd cakes
touch german_chocolate.md carrot.md strawberry.md lime.md
cd ..
git status
git add cakes
git status
cat cakes/*
git commit -m "Many Cakes 🍰"
git log
nano guacmole.md 
git diff guacmole.md 
git diff HEAD guacmole.md 
git diff HEAD~1 guacmole.md 
git diff HEAD~2 guacmole.md 
git show HEAD~2 guacmole.md 
git show HEAD~1 guacmole.md 
git show HEAD~10 guacmole.md 
git log --oneline --graph
git diff 9f92
git diff 9f92 guacmole.md 
git diff 9f92 guacmole.md 
git log --oneline --graph
git diff 4e  guacmole.md 
git diff 4ea6  guacmole.md 
git status
git restore guacmole.md 
cat guacmole.md 
git log --oneline --graph
git restore -s 9f92 guacmole.md 
git restore -s 9f92 guacmole.md 
cat guacmole.md 
git status
git diff guacmole.md 
git restore -s HEAD guacmole.md 
cat guacmole.md 
nano guacmole.md 
git add guacmole.md 
git add guacmole.md 
clear
git commit -m "Added directions to guacamole"
ls
git status
git log --oneline --graph
mkdir receipts
touch a.png b.png c.png receipts/a1.jpg receipts/a2.jpg
git status
git status
clear
nano .gitignore
git status
cat .gitignore 
git add .gitignore 
git commit -m "Ignore png files and receipts"
git status
clear
git add a.png 
git add a.png 
git config advice.addIgnoredFile false
git add a.png 
git config advice.addIgnoredFile true
git add a.png 
clear
git add -f a.png 
git status
git commit -m "Added picture of lime pie"
git status
git status --ignored
mkdir receipts/plots
mkdir receipts/data
nano .gitignore 
cd receipts/
mkdir -p dir1/dir2/dir3/dir4/dir5
touch dir1/dir2/dir3/dir4/dir5/my_fancy_file.docx
git status --ignored
git status --ignored
cd ..
nano .gitignore 
git add receipts/dir1/dir2/dir3/dir4/dir5/my_fancy_file.docx 
rm -rf receipts/dir1
clear
git status
git add .git
git status
git add .gitignore 
git commit -m "Added more ignore filters"
git commit -m "Added more ignore filters"
clear
git commit --amend
git log --oneline --graph
git log --oneline --graph
clear
git remote add origin git@github.com:cbohn4/October_Recipes.git
git commit --amend
git config --list
git config --global core.editor=nano -w
git config --global core.editor=nano -w
git config --global core.editor "nano -w"
git config --global core.editor "nano -w"
clear
clear
cd
ssh-keygen -t ed25519 -C "cbohn4@unl.edu"
clear
ssh -T git@github.com
ssh -T login2
cat .ssh/id_ed25519.pub
ssh -T git@github.com
nano .ssh/config
ssh -T git@github.com
nano .ssh/config
clear
ssh -T git@github.com
cat .ssh/config 
cd recipes/
git remote add origin git@github.com:cbohn4/October_Recipes.git
git push origin main
git remote add coconut git@github.com:cbohn4/October_Recipes.git
git push coconut main
git push coconut main
nano cakes/strawberry.md 
clear
git status
git add cakes/strawberry.md 
git commit -m "Added Strawberry Cake Recipe πŸ“"
git commit -m "Added Strawberry Cake Recipe πŸ“"
git push origin main
cd 
pwd
git clone git@github.com:cbohn4/October_Recipes.git
ls
cd October_Recipes/
ls
git status
git status
git log --oneline --graph
ls
nano cakes/carrot.md 
git add cakes/carrot.md 
git commit -m "πŸ₯• Cake Added"
git push origin main