Practical Shell Commands for Data Scientists and Analysts - Command Line Tutorial
Samuel Chan via YouTube
Overview
Syllabus
Intro
Dataset from kaggle
Introduction to shell
date command in bash zsh
Shell variables
Environment variables vs Shell variables
cd change directory command
mkdir make directory command
rm -r remove recursively command
mv move command
pwd print working directory command
&& in bash
unzip unzip a file command
ls list command
cp copy command
-v verbose option
wc wordcount command
* for wildcard
head / tail -n first / last n lines of file
| pipe character in shell
cut command in bash
shell redirection
attach to append to file
cat concatenate to print contents
cut -d, -f colnum for csv
sort command
uniq command
arithmetic add, minus etc in shell
$ for arithmetic expansion
expr to evaluate an expression in Unix
data cleansing / preparation / exploratory scenarios in shell bash
paste command
bc in shell basic calculator
Taught by
Samuel Chan