返回命令列表

Linux command

pushln 命令

文本

Copy it and replace filenames, paths, or keywords as needed.

命令示例

Push a string onto the buffer stack

pushln "[text to push]"

Push a command to be edited

pushln "ls -la /tmp"

Push multiple words

pushln [word1] [word2] [word3]

说明

pushln is a zsh builtin that pushes its arguments (concatenated with spaces) onto the shell's buffer stack. The buffer stack is a LIFO (last-in, first-out) data structure. Entries on the buffer stack are presented as editor buffer content for the next interactive command line, or can be read programmatically with getln. This is equivalent to print -nz (push onto the editing buffer stack without a trailing newline). The buffer stack provides a way to pre-fill the command line or pass data between shell functions.

FAQ

What is the pushln command used for?

pushln is a zsh builtin that pushes its arguments (concatenated with spaces) onto the shell's buffer stack. The buffer stack is a LIFO (last-in, first-out) data structure. Entries on the buffer stack are presented as editor buffer content for the next interactive command line, or can be read programmatically with getln. This is equivalent to print -nz (push onto the editing buffer stack without a trailing newline). The buffer stack provides a way to pre-fill the command line or pass data between shell functions.

How do I run a basic pushln example?

Run `pushln "[text to push]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more pushln examples?

This page includes 3 examples for pushln, plus related commands for nearby Linux tasks.