List of available command options?

2,090

Solution 1

I think you're looking for man command.

Try doing man mkdir and look for what the -p switch does. You can use vim style searching here.

Use man man for more info on how to use man command.

Solution 2

Many commands print a brief summary of the possible options when you invoke them with --help. This won't explain in detail what the options do, but it's a good way to find the name of an option you've forgotten, or to find what options are available if you already have some basic familiarity with a command. Not all commands support --help, but I've yet to encounter a command that did any damage when run with --help, so go ahead and try. A few commands respond to -help but not to --help.

The traditional documentation utility on unix is man. For many programs, and in particular most command line utilities, run e.g. man mkdir to see a description of the command and its options.

A few commands are built into the shell. These have no man page; they are documented in the shell man page instead (man bash or man bash-builtins, if your shell is bash; man zshbuiltins if your shell is zsh). Run type COMMAND_NAME (e.g. type mkdir) to see whether a command is a builtin or an external program.

Beyond that, there may be more specific documentation. For example, the complete reference for mkdir on Linux is the coreutils manual (under mkdir).

Share:
2,090

Related videos on Youtube

alper kopuz
Author by

alper kopuz

Updated on September 18, 2022

Comments

  • alper kopuz
    alper kopuz over 1 year

    Do you know how to parse images by using rome parser?(java platform) I looked at some samples at rome parser documentation but it's clear. Can you provide me the sample code to parse images by using rome rss parser?

    Regards Altaico

    • Jörn Horstmann
      Jörn Horstmann over 13 years
      Please add some examples ofthe rss that you want to parse, it is not entirely clear what you mean by images, an enclosure, html content or media rss.
    • Admin
      Admin about 12 years
      In the case of mkdir, -p means "If the parent directories don't exist yet, create them too"
  • Blue Cloud
    Blue Cloud about 12 years
    That's great, thanks! Got a feeling I'll be back here a lot over the next few days!
  • Alen Milakovic
    Alen Milakovic about 12 years
    man -k whatever is also worth trying. That does a keyword search in the man pages.
  • Marc
    Marc almost 12 years
    This is incorrect. There is a specification available for images: w3schools.com/rss/rss_tag_image.asp
  • Riduidel
    Riduidel almost 12 years
    @Marc Excuse me, but it seems to me your comment is not by any fashion more correct than my answer : the tag you present explains how one RSS reader can display an image for the RSS feed (like, say, a favicon for that feed), while I try to explain how to read an image embedded in one RSS entry. In other words, your comment perfectly complement my answer.