-o 在 Linux 终端 (Dash o);这是什么意思? [英] -o in Linux terminal (Dash o); What does it mean?

查看:34
本文介绍了-o 在 Linux 终端 (Dash o);这是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Linux 终端的新手,很多命令都使用其中的 -o.

I'm new to Linux Terminal and a lot of commands use the -o in it.

比如编译一个你说的 NASM 程序

For example to compile a NASM program you say

gcc prgram1.o -o prgram1

我可以猜测它与输出有关,但谁能为我提供正确的定义和使用时间的直觉?

I can guess that it has something to do with output but can anyone provide me with a proper definition and intuition for when it is used?

附言我做了很多谷歌搜索,找到了很多包含 Linux 终端命令参考的页面,但没有涵盖简单的 -o.

P.S. I did a lot of Googling, found a lot of pages with command references for Linux terminal but nothing that covered the simple -o.

推荐答案

在大多数情况下 -o 将代表输出,但它不是一个定义的标准,它可能意味着开发人员想要它意味着的任何东西,这是人们知道的唯一方式哪些命令是使用 --help、-h 或其他 - 的命令行选项?显示一个简单的命令列表,同样是因为程序的开发人员选择了可能的输入参数,这意味着这可能因程序而异.

in most cases -o will stand for output but it's not a defined standard it can potentially mean anything the developer wanted it to mean, the only way someone can know which commands is to use a command line option of --help, -h, or something -? to display a simple list of commands, again because the developer of the program chooses the possible input arguments and there meaning this might differ from program to program.

最安全的了解方式通常是运行

The safest way to know is typically run

man gcc

用你想要的程序名称替换第二部分.

replacing the second part with the program name you want.

man <program name>

这列出了该程序的完整指南,其中包含更多详细信息,并且通常格式良好,可以在终端上阅读.读完后按Q即可.

This lists a full guide for the program with a lot more detail and is usually well formated to read on a terminal. just press Q when your finished reading it.

这篇关于-o 在 Linux 终端 (Dash o);这是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆