Skip to content
Learn Netverks

Lesson

Step 5/36 14% through track

terminal-workflow

Terminal workflow

Last reviewed May 28, 2026 Content v20260528
Track mode
none
Means
Read / quiz
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Terminal workflow: the syntax, patterns, and safety habits you need before advancing in Bash.

Coroutines replace callback hell on Android and in Ktor—structured concurrency is interview-critical.

You will apply Terminal workflow in contexts like: CI jobs, server maintenance, local dev automation, and Git hooks.

Read each lesson, copy bash examples into your own terminal, and complete the lesson MCQs—there is no in-browser runner for security reasons. Also practice in a dedicated folder; run bash --version to confirm your shell.

At the start of the track—complete before lessons that assume you can run commands in your own terminal.

Productive terminal habits—history, completion, job control, and readable prompts—speed up every track. This lesson mirrors what you will do throughout Bash: read, copy, run locally, observe output.

Recommended workflow

  1. Read the concept section before typing commands.
  2. Copy one block at a time into your terminal.
  3. If output differs, check your OS (macOS vs Linux flags).
  4. Fix errors from the first message—Bash often stops at the first failing command in a script with set -e.

Essential shortcuts

# History: Up/Down arrows, Ctrl+R reverse search
# Clear screen: Ctrl+L
# Stop program: Ctrl+C
# End of file (close stdin): Ctrl+D
history | tail -5

Practice Ctrl+R to find past git commands while learning Git.

Practice folder

mkdir -p ~/bash-practice
cd ~/bash-practice
pwd
echo "practice ready" > notes.txt
cat notes.txt

Keep exercises in a dedicated folder so you never confuse homework files with real projects.

Important interview questions and answers

  1. Q: How do you stop a runaway command?
    A: Press Ctrl+C—sends SIGINT to the foreground process.
  2. Q: Why a practice directory?
    A: Isolates experiments and makes cleanup easy without touching system paths.

Self-check

  1. What keyboard shortcut searches command history interactively?
  2. What command prints your current working directory?

Challenge

Practice in your terminal

  1. Create ~/bash-practice and cd into it.
  2. Copy the mkdir/pwd block from the lesson.
  3. Run history | tail and retry a command with Ctrl+R.

Done when: your practice folder exists and you recovered a command from history.

Interview prep

Ctrl+C effect?

Sends SIGINT to stop the foreground process.

Why a practice directory?

Isolates experiments and prevents accidental changes to real projects.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Copy-paste habit?
  • Practice folder?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump