Learning bash

Thursday, March 5, 2020 · 1 minute read

Hello all!

So I just bought a used MacBook Pro in order to learn Linux, bash, shell scripting, etc. This post is just to test that I can write bash code in an .Rmd file and it will show on my blog correctly.

ls
## 2018-11-13-can-i-write-sql-in-r-markdown.Rmd
## 2018-11-13-can-i-write-sql-in-r-markdown.html
## 2018-11-15-connecting-to-ms-sql-server-in-r.Rmd
## 2018-11-15-connecting-to-ms-sql-server-in-r.html
## 2018-11-16-ggplot2-geom-bar-labeling.Rmd
## 2018-11-16-ggplot2-geom-bar-labeling.html
## 2018-11-22-pivoting-data-in-sql-vs-r.Rmd
## 2018-11-22-pivoting-data-in-sql-vs-r.html
## 2018-12-10-learning-for-loops-in-r.Rmd
## 2018-12-10-learning-for-loops-in-r.html
## 2018-12-29-working-more-with-the-baumann-dataset.Rmd
## 2018-12-29-working-more-with-the-baumann-dataset.html
## 2019-02-21-plotting-factors-with-forcats.Rmd
## 2019-02-21-plotting-factors-with-forcats.html
## 2019-03-02-window-functions-in-r-and-sql.Rmd
## 2019-03-02-window-functions-in-r-and-sql.html
## 2019-11-24-consulting-services.Rmd
## 2019-11-24-consulting-services.html
## 2020-02-28-for-loops-for-quick-summaries-in-r.Rmd
## 2020-02-28-for-loops-for-quick-summaries-in-r.html
## 2020-03-05-learning-bash.Rmd
## 2020-03-05-learning-bash.html
## dsn-setup.PNG

Hey, that’s pretty cool! It looks like it is showing the directory where this .Rmd file lives.

cd /
ls
## Applications
## Library
## Network
## System
## Users
## Volumes
## bin
## cores
## dev
## etc
## home
## installer.failurerequests
## net
## private
## sbin
## tmp
## usr
## var