All Questions
14
questions
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 ...
1
vote
1
answer
82
views
Could someone explain when I would use sync -d over sync with no options?
I'm looking at an online man page for the sync command and I can't quite figure out the intended use of the -d or --data option.
Is it faster? Does it have any noticeable effect? Or is it something ...
1
vote
1
answer
75
views
install --compare is said to, in some cases, not modify the destination at all - but in which cases?
The man page for install describes the --compare option like so:
-C, --compare
compare each pair of source and destination files, and
in some cases, do not modify ...
0
votes
1
answer
2k
views
Why tar command uses gzip command through 'z' option?
In Linux Ubuntu about the 'tar' command for these versions:
tar -tzf /path/to/filename.tar.gz # Show the content
tar -xzf /path/to/filename.tar.gz # Extract the content
Observe both commands use ...
0
votes
1
answer
337
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 ...
2
votes
1
answer
541
views
is each CLI command option an semantic abbreviation [closed]
The key is about semantics.
curl -I, which means curl --head, puzzled me. I don't know what the semantic words the alphabet I stand for? Is it just a reference rather than an abbreviation of a ...
0
votes
1
answer
35
views
Does the params and the name affect the command in Linux?
I see the tutorial, when create a user:
useradd -g liao1 lamp
You see they place the -g liao1 before the lamp,
and I tested the:
useradd lamp -g liao1
I put the param after the name, I can create ...
13
votes
2
answers
35k
views
Linux command to display the contents of a given file byte by byte with the character and its numerical representation displayed for each byte [closed]
I am looking for the Linux command and option combination to display the contents of a given file byte by byte with the character and its numerical representation.
I was under the impression that in ...
21
votes
3
answers
5k
views
The precedence of command options?
I know that rm -f file1 will forcefully remove file1 without prompting me.
I also know that rm -i file1 will first prompt me before removing file1
Now if you execute rm -if file1, this will also ...
3
votes
1
answer
2k
views
What does the option -C achieve in ls output?
In the man pages it says:
-C list entries by columns
However, I really cannot notice any difference between the output of ls or ls -C, could someone explain this to me?
2
votes
2
answers
138
views
Is there a `--paranoid` type flag for common, potentially irreversible commands?
I'm not aware of any standard flag that is implemented. There are some git commands that let you specify a -n parameter that will show you what the command is going to do, but doesn't actually do it.
...
2
votes
1
answer
108
views
What is a command that will only show me the command syntax and options?
Is there a command which will just list all the options for a given command on one or two lines and not as long and words as man or info ?
9
votes
2
answers
48k
views
The -cp option to the java command [closed]
java -cp FILE.jar FILE.Main inputfile
What does the -cp option mean? For that matter, what a negative sign in front mean? I've searched everywhere and couldn't find the answer.
26
votes
2
answers
3k
views
What is `--` called?
Recently I got to know of -- that is double-hyphen which is used to tell a command that the option list has ended and what follows should not be considered as a option. So,
grep -- 'search_word' *
...