← 返回命令列表

Linux command

pop 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Pop value from stack (Forth)

pop

Pop in dc calculator

echo "1 2 3 R p" | dc

说明

pop removes and discards the top value from a stack. It is a fundamental operation in stack-based programming languages and calculators like Forth and dc. In shell contexts, the related command popd performs a similar operation on the shell's directory stack. The pop operation is the complement of push.

FAQ

What is the pop command used for?

pop removes and discards the top value from a stack. It is a fundamental operation in stack-based programming languages and calculators like Forth and dc. In shell contexts, the related command popd performs a similar operation on the shell's directory stack. The pop operation is the complement of push.

How do I run a basic pop example?

Run `pop` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more pop examples?

This page includes 2 examples for pop, plus related commands for nearby Linux tasks.