Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [options]

Passing options like -l or --word to commands, or parsing them in scripts.

0 votes
0 answers
35 views

ps command: Practical difference between the -p and -q options [duplicate]

According with man ps exists: -p pidlist Select by PID. This selects the processes whose process ID numbers appear in pidlist. Identical to p and --pid. -q pidlist Select by PID ...
Manuel Jordan's user avatar
1 vote
1 answer
62 views

ps command: strange behavior with 'O' option, extra column/header does not appear as expected

About the ps command - to add one/many extra column/header with the default headers according with the option(s) used with the ps command - it through O the option. Intro If ps x is executed the ...
Manuel Jordan's user avatar
4 votes
1 answer
3k views

ps command: how to know all the headers with their respective descriptions?

Through the following valuable tutorial: Ps Command in Linux (List Processes) If the ps -ef command is executed then the output has the following header: UID PID PPID C STIME TTY ...
Manuel Jordan's user avatar
0 votes
0 answers
710 views

What does '-x' mean in the context of the 'ps' command?

If is executed ps x (observe there is no -) then the output is as follows: PID TTY STAT TIME COMMAND 2489 ? Ss 0:00 /lib/systemd/systemd --user 2490 ? S 0:00 (sd-pam) ...
Manuel Jordan's user avatar
0 votes
1 answer
628 views

ps command: How generate the report of processes but according with only either tty or pts?

Through the ps --help all command about the option(s) related with tty exists the following: -a all with tty, except session leaders a all with tty, including ...
Manuel Jordan's user avatar
4 votes
2 answers
457 views

What does '-P' mean in the context of the 'ps' command?

If is executed ps -p 3384 3395 (observe -p is lowercase) then the output is as follows: PID TTY STAT TIME COMMAND 3384 tty6 S+ 0:00 man ls 3395 tty6 S+ 0:00 pager Until ...
Manuel Jordan's user avatar
1 vote
1 answer
9k views

What does the "+x" option in "bash +x script.sh" mean?

I know what bash -x does, but what does bash +x do? Googling found no results and the manual also says nothing about it.
user1206899's user avatar
0 votes
1 answer
99 views

Why does the option --add_extra_groups in adduser contain underscore rather than hyphen word delimiters?

Premise Most of the long-form options in the various *nix tools use hyphens as word separators. Examples from man tr: --squeeze-repeats --truncate-set1 from man sudo: --preserve-env --set-home --...
enharmonic's user avatar
0 votes
1 answer
688 views

ERROR: Unrecognized option: --host_jvm_args=-Xmx4g

OS: Linux Distrib: Debian GNU/Linux 10 (buster) bazel: v3.1.0 I try to get the memory limit to 4GB for bazel, but I get the error: ERROR: Unrecognized option: --host_jvm_args=-Xmx4g The whole ...
klor's user avatar
  • 414
2 votes
1 answer
876 views

How does -m option work in sort command?

As sort's man page says: -m, --merge merge already sorted files; do not sort Here are my two simple text files and the result of sort command with -m option: soroush@pop-os:~/Desktop$ cat a_file....
S.B's user avatar
  • 155
1 vote
1 answer
1k views

Invoke a program in a Bash script with command line parameters stored in a variable

Is it possible to invoke some program in a Bash script with complete command line parameters (both the key and the value) stored in variables? I use the following scanimage call in a script: scanimage ...
Tobias Leupold's user avatar
4 votes
3 answers
1k views

find -exec command options with basename [duplicate]

I have the following JPEG files : $ ls -l -rw-r--r-- 1 user group 384065 janv. 21 12:10 CamScanner 01-10-2022 14.54.jpg -rw-r--r-- 1 user group 200892 janv. 10 14:55 CamScanner 01-10-2022 14.55.jpg -...
ChennyStar's user avatar
  • 1,795
1 vote
1 answer
2k views

How to get option value $OPTARG correctly?

I would like to get an option value when launching a shcell. I wrote: optstring=hcnxl: V=0 while getopts $optstring opt; do case $opt in h) V=1 ;; c) V=2 ;; n) V=3 ;; x) V=4 ;; ...
Gigiux's user avatar
  • 527
-2 votes
1 answer
75 views

What does pr -m -t means?

What does pr -m -t mean? I managed to find out that -t suppresses headers and footers. What does -m mean specifically?
Basil's user avatar
  • 63
-1 votes
1 answer
75 views

"$-" Returns 569X During ZSH Invocation [duplicate]

Background While studying the shell parameter, $-, for sh, bash, and zsh, I discovered that it returned current option flags, hBc, for both sh and bash but 569X for zsh. SUSE >> bash -c 'echo &...
Майкл Шодеке's user avatar

15 30 50 per page
1 2 3
4
5
23