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.

22 questions with no upvoted or accepted answers
4 votes
0 answers
2k views

Using rsync with the verbose option and filtering the information displayed

I am using rsync with the -a -r and -v options to copy files and directories from one server to another. This all works fine. But when I make a change, for example, to a single file on the source ...
TechTeacher's user avatar
3 votes
0 answers
1k views

How to pass options to ssh proxy command?

To collect some data from a bunch of hosts I use a bash script which calls scp in a loop. Most of these hosts are configured for ssh public key authentication. I may skip those which have no key ...
CrimsonPermanentAssurer's user avatar
2 votes
0 answers
120 views

Printing autocomplete info on current option in fish shell

When writing a command with a - option and pressing tab, a list of possible completions with short explanations of what the options do is displayed. Is there a way to make this list also contain the ...
gris_martin's user avatar
2 votes
0 answers
157 views

How to detect, which of features binded on hot-keys Ctrl+Shift in Gnome?

Kali 2016.2 in Qemu: /usr/bin/qemu-system-x86_64 -boot d -m 5000 --enable-kvm -cdrom kali-linux-2016.2-amd64.iso I'm trying to bind switcher to Russian Language in Gnome: dconf: /usr/bin/dconf ...
kalignome's user avatar
2 votes
0 answers
5k views

Why is rm -r the same as rm -R?

If you look in the rm man page you see that rm -r, rm -R, and rm --recursive are all the same. -r, -R, --recursive remove directories and their contents recursively When using options, I'm ...
Kevin Brown-Silva's user avatar
1 vote
0 answers
586 views

/etc/fstab mount option restrictions - How to get full options list applied?

This question is a related but tangent question on problem described in this posting . While trying to finalize the options during the previous post, I always left the root partition alone, untouched, ...
Eric Marceau's user avatar
1 vote
1 answer
2k views

How do I customize Nautilus / Caja file manager?

I'm using Caja and I miss several features that I had with Windows Explorer. I'm willing to tweak some configs or even develop code to get them but I wouldn't know where to start to collaborate... ...
user avatar
1 vote
1 answer
821 views

rsync: How can I pull the --exclude-from file from the remote host?

I'm setting up automated rsync across the network, using (or attempting to use) the following command: rsync -e ssh -avhxAXHr --rsync-path="sudo rsync" --exclude-from=:$EXCLUDEFILE --link-dest=$...
John's user avatar
  • 11
0 votes
0 answers
46 views

How to gracefully handle differences in command options between different versions?

Inspired by What is the difference between “base64 -b0” in macOS versions prior to macOS 13 (Ventura) and “base64 -i” in macOS 13 (Ventura)? Are there common ways to avoid the script breaking on a ...
typo's user avatar
  • 229
0 votes
1 answer
72 views

Duplicate boot params after grub2-mkconfig

I removed the flags 'quiet' , 'splash' , and added others in the file /etc/default/grub, applied them: grub2-mkconfig -o . After a reboot, the kernel boot flags began to double. With each 'grub2-...
Maksim Aleksanin's user avatar
0 votes
3 answers
346 views

listing existing users sorted by date of creation using cut command

ASK: to use cut command to list all users to confirm a successful useradd. ISSUE: The list was very long and I had to scroll through output to find user. NEED: Sort by the date the user was created. ...
VintageDroid'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
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
0 answers
302 views

difference between environment variables and parsing command line options?

Am I wrong in assuming that both environment variables serve similar purposes - to modify default behaviour of a program from the shell? When writing a program in C, for example, if I am faced with ...
First User's user avatar
0 votes
0 answers
95 views

Removing delimiters from bash array elements, then transferring result to another array

I am using an option variable array incl that stores filename extensions. ("--incl") local incl+=("$2") ; shift 2 ;; The function can then be called using --incl .texi --...
Pietru's user avatar
  • 393

15 30 50 per page