Linux: What does -r and -n mean

5 pts.
Tags:
Linux
For learning Linux commands, what does -r and -n mean?

Software/Hardware used:
linux

Answer Wiki

Thanks. We'll let you know when a new response is added.

Those appear to be command parameters and they can vary depending on the command they are being used with. More details and a full sample of the command and code will help us provide a more accurate answer.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    It depends on the command. They mean whatever the developer of the particular command chose them to mean. They set some kind of behavior either on or off while the command runs.
    28,925 pointsBadges:
    report
  • Subhendu Sen
    In what respect of Linux command did you ask that? Consider CP command, if you want to copy file(s) recursively, then cp -r while -r is basically a parameter.

    If you want to avoid overwriting the existing file & want to copy only when the destination file doesn’t exist, then use cp -n. This is just an example.

    120,190 pointsBadges:
    report
  • Subhendu Sen
    Moreover, for your better understandings please link here for almost all Linux commands reference: http://man7.org/linux/man-pages/dir_section_1.html
    120,190 pointsBadges:
    report
  • dearsimi

    In Linux commands, -r and -n are the options which you will use with command, -r stands for recursively and -n stands for number but with different command it has another result. you can use man and pinfo command to read more about commands with options. and it will use like as :

    #man command

    25 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: