Bash: options
Bash Options
2023-09-11 14:16:15 时间
bash [options] [command_string | file]
- -c If then -c option is present, then commands are read from the first non-option argument command_string. If there are arguments after the command_string, the first argument is assigned to $0 and any remaining are assigned to the positional parameters. The assignment to $0 sets the name of the shell, which is used in warning and error messages
command_string 后面的都作为positional arguments
- -s If the -s option is present, of if no arguments remain after option processing, then commands are read from the standard input. This option allows the positional parameters to be set when invoking an interactive shell or when reading input through pipe
- -r --restricted If the -r option is present, the shell becomes restricted
How to Use Restricted Shell to Limit What a Linux User Can Do (howtogeek.com)
相关文章
- 使用OpenCV读、操作、写图像并与bash合作对某个文件夹下全部图像进行相似处理
- 【转】Linux中profile、bashrc、bash_profile之间的区别和联系
- 在 Linux 终端中自定义 Bash 配色和提示内容
- 感叹号:bash 的历史扩展功能
- Bash: file descriptor & exec
- Bash Heredoc 入门
- ROS突然没有setup.bash文件
- Linux - Bash shell的功能;内建命令type
- bash參考手冊之六(Bash特性)
- Win10 cmd命令行,Powershell,Linux子系统Ubuntu bash自动启动ssh-agent
- Bash String Manipulation Examples – Length, Substring, Find and Replace--reference