Software

Terminal Basic Operation Manual

How to launch terminal, basic commands, and cheat sheet. Quick reference for beginners.

Terminal Basic Operation Manual

What is a Terminal?

A terminal is a tool for operating computers in a text-based manner. It gives instructions to the computer by directly entering command statements.


Launching Terminal

Windows

  • Use third-party software like Git Bash
  • Windows Subsystem for Linux (WSL): Search for WSL distribution name (e.g., “Ubuntu”) in Start menu

Linux (Ubuntu etc.)

  • Shortcut: Ctrl + Alt + T
  • Application menu: Search for “Terminal”

macOS

  • Spotlight: Command + Space → Type “Terminal”
  • Applications: Applications > Utilities > Terminal

Basic Usage

Command Input

When terminal launches, a prompt is displayed. Enter a command and press Enter to execute.

ls

Options and Arguments

  • Options: Strings starting with - or --. Modify command behavior
  • Arguments: Target (file or directory) that command acts upon
ls -l

Command History

KeyAction
Display previously entered command
Display next command
historyDisplay list of recently executed commands

Tab Completion

While entering command or file name, pressing Tab key automatically completes the name.

cd Doc[Tab]

→ Completes to Documents if it exists

Cancel Command

Ctrl + C: Cancels running command


Command Cheat Sheet

⚠️ Note: Commands are executed only in current directory.

Directory Operations

CommandDescription
pwdDisplay path to current directory
cd directory_nameMove to other directory
cd ..Move to parent directory
mkdir nameCreate new directory
rmdir nameDelete empty directory

File Operations

CommandDescription
lsList contents of current directory
ls -lDetailed display
ls -aInclude hidden files
cp [source] [destination]Copy file/directory
mv [source] [destination]Move or rename
rm filenameDelete file ⚠️
rm -r dirnameDelete directory and contents ⚠️
findSearch for files and directories
cat filenameDisplay file contents

⚠️ Warning: Files deleted with rm don’t go to trash and cannot be restored. Execute carefully.

Other

CommandDescription
man command_nameOpen command manual
clearClear screen

Directory Notation

SymbolMeaning
.Current directory
..Parent directory (one level up)
~Home directory
../../Two levels up

Precautions and Dangerous Commands

ItemDescription
Pre-execution checkDouble-check content and target for rm and sudo
Administrator privilegeFully understand command meaning before using sudo
BackupAlways backup important files beforehand
Error messagesMessages on failure are hints for problem solving

Troubleshooting

ProblemSolution
Command doesn’t respondCheck if you pressed Enter. Check for spelling mistakes and half-width input
Want to restore file deleted with rmBasically cannot be restored. Backup beforehand
Japanese characters garbledChange terminal character encoding to “UTF-8”
Can’t move with cdCheck directory name spelling and case. Confirm correct name with ls
Want to change background/text colorCustomize from terminal settings