Linux command
bshell 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start an interactive Bourne shell
bshell
Execute a shell script
bshell [path/to/script.sh]
Execute a command
bshell -c "[command]"
Run in debug mode showing executed commands
bshell -x [path/to/script.sh]
Run as a restricted shell
bshell -r
说明
bshell is a Bourne Shell interpreter from the Schily-Tools collection, providing a traditional POSIX-compatible shell environment. It executes commands read from standard input, command strings, or script files. The Bourne Shell is the original Unix shell written by Stephen Bourne at Bell Labs. This implementation maintains compatibility with the classic shell behavior while running on modern systems.
参数
- -c _command_
- Execute the specified command string
- -r
- Start as a restricted shell, limiting certain operations for security
- -u
- Treat unset variables as errors and exit
- -v
- Print shell input lines as they are read (verbose mode)
- -x
- Print commands and arguments as they are executed (debug mode)
FAQ
What is the bshell command used for?
bshell is a Bourne Shell interpreter from the Schily-Tools collection, providing a traditional POSIX-compatible shell environment. It executes commands read from standard input, command strings, or script files. The Bourne Shell is the original Unix shell written by Stephen Bourne at Bell Labs. This implementation maintains compatibility with the classic shell behavior while running on modern systems.
How do I run a basic bshell example?
Run `bshell` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _command_ do in bshell?
Execute the specified command string