Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [options]

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

0
votes
3answers
264 views

parsing a command option in a bash script

I wrote I ‘quick’ script, and then thought of adding a “—nomail” option that would shut off my mail switch (of which the syntax is piped in from echo). I thought this would be easy but I think, ...
2
votes
1answer
2k views

What is overriding the fstab permissions mounting option?

fstab: LABEL="Shared" /home/howard/Shared/ ntfs permissions,rw,nosuid,nodev,relatime,uid=howard,gid=howard,allow_other,noatime,fmask=033,dmask=022 0 2 Mount with: mount LABEL="Shared" mount ...
2
votes
1answer
240 views

Understanding passwd --keep-tokens

On GNU/Linux, I do have trouble understanding the meaning of the --keep-tokens option for passwd. As it doesn't seem to be much used as I am not able to find any examples and only online copies of man ...
1
vote
1answer
173 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... ...
1
vote
1answer
557 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=$...
0
votes
1answer
58 views

Create custom parameters (options) for already existing commands?

Recently I 've been wanting to create a custom parameter for pacman. To elaborate, I have tweaked pacman.conf so that specific packages (linux, linux-firmware, and a couple more) are ignored when I ...
0
votes
1answer
241 views

autoconf tried to invoke "exec -m' under bash, but -m is not a legal operand for exec

This question may really be about where to get help, rather than help for the problem itself. Please forgive the wordiness! I'm trying to build gcc to run on Win32 and produce code for AVR. I've ...
-1
votes
1answer
19 views

How can fragment packets -f/--mtu be usefull?

How can fragment packets -f/--mtu be usefull ? That is, say from a normal scan I get for a given IP and port range: 28/tcp filtered unknown no-response 29/tcp filtered msg-icp no-response 30/tcp ...
3
votes
0answers
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 ...
2
votes
0answers
186 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 ...
2
votes
0answers
90 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 ...
1
vote
0answers
48 views

Bash how does skip-completed-text work?

I use menu-complete bash function to cycle through completion when I press Tab, and I'm happy with it. But it has too often happened to me the following. Suppose I'm looking for the file ...
1
vote
0answers
4k 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 ...