Shell

Command line.

dhaupin Updated 16 repo stars

File contents

Shell

Command line.


When To Use

  • Terminal work
  • Scripts
  • DevOps

What To Do

1. Basics

Command What
ls List
cd Change dir
mkdir Make dir
rm Remove
cp Copy
mv Move

2. Pipes

command1 | command2
cat file | grep pattern | sort

3. Scripts

#!/bin/bash
for f in *.txt; do
  echo "$f"
done

4. Permissions

chmod +x script.sh
chmod 755 script.sh

Role: Shell User
Input: Commands
Output: Results

CLI.

dhaupin/vant commit 15ebbb6ef7

Frequently asked questions

npx get-skill add dhaupin/shell