Course Description

About this Course

In this course, you will be introduced to shell commands. We have selected a set of commands we think will be useful in general to a wide range of audience. After completing this course, you should be able to use the shell for version control, managing cloud services (like deploying your own shiny server etc.), execute shell commands in R & RMarkdown and execute R commands and scripts in the shell.

What will you learn?

Apart from learning shell commands, the tutorial will also focus on

- exploring R release names
- mapping shell commands to R functions
- exploring RStudio Terminal
- executing shell commands from R
- execute shell commands in RMarkdown
- execute R scripts in the shell


You will need a computer with internet access. We have created a RStudio Cloud Project to ensure that all readers are using the same environment while learning.

Who is this course for?

This course is for anyone who is interested in learning to use shell/terminal for data science or in general.

How this course is structured?

  • Introduction introduces the shell. It shows how to launch it in different operating systems. Apart from introducing the RStudio terminal, it will explore basic commands and different ways to view the documentation.
  • Navigating File System explores how to navigate between different directories, list contents of a directory and create & delete files & directories.
  • File Management describes how to create, copy, move, delete and compare files and directories.
  • Input/Output demonstrates how to print text on the terminal and read content from files. It will cover sorting/viewing/searching file contents.
  • Search & Regex shows how to search text in file(s) using pattern matching and find files and folders using names and extensions.
  • sudo describes super user and root user privileges and shows how to install, update and remove packages using `sudo`.
  • Retrieve Content from Web explores how to download files from the internet using `wget` and `curl`.
  • File Compression demonstrates how to list, extract, create and add files to archives using `tar`, `gzip`, `zip` and `unzip`.
  • System Info & Others explains how to view system information, suspend activity and access command history list.
  • R & Shell demonstrates how to execute shell commands in R. It will also look at using shell commands in RMarkdown documents and how to execute R commands and scripts from the command line. 

Course curriculum

  • 1

    Let's Begin to Learn

    • Introduction to LMS

    • Help & Support

    • Course Resources

    • Best Way to Learn

    • Course Curriculum

    • Course Materials

    • Slides

    • Links

  • 2


    • What is Shell?

    • Applications

    • Launch Terminal

    • RStudio Terminal

    • Command Prompt

    • Get Started

    • Help/Documentation

    • References

  • 3

    Navigating File System

    • Introduction

    • Create/Remove Directory

    • List Files & Folders

    • Change Directory

  • 4

    File Management

    • Introduction

    • Create Files

    • Copy Files & Folders

    • Move/Rename Files

    • Remove/Delete Files

    • Compare Files

  • 5


    • Introduction

    • echo

    • cat

    • head

    • tail

    • more

    • less

    • Sort

    • Word Count

  • 6

    Search & Regular Expression

    • grep

    • find

  • 7

    Retrieve Content from Web

    • wget

    • curl

  • 8


    • Introduction

  • 9

    File Compression

    • Introduction

    • tar

    • gzip

    • unzip

    • zip

  • 10

    System Info & Others

    • Introduction

    • Machine & OS Details

    • Delay Activity & Command History

  • 11

    R & Shell

    • Execute Shell Commands from R

    • Shell Scripts & RStudio

    • Execute Shell Commands in RMarkdown

    • Execute R Commands & Script in Shell

  • 12


    • Course Summary

Recommended Courses