2694 Tipps & Tricks
Kategorie: Linux / Befehl Tipp im neuen Fenster anzeigen
Aufruf der Bash-Shell (459 x gelesen)

Name: bash






Linux Consolen Commandos







DESCRIPTION
       Bash  is an sh-compatible command language interpreter that executes commands read from the standard input or from
       a file.  Bash also incorporates useful features from the Korn and C shells (ksh and csh).

OPTIONS
       In  addition  to the single-character shell options documented in the description of the set builtin command, bash
       interprets the following options when it is invoked:

       -c string If the -c option is present, then commands are read from string.   If  there  are  arguments  after  the
                 string, they are assigned to the positional parameters, starting with $0.
       -i        If the -i option is present, the shell is interactive.
       -l        Make bash act as if it had been invoked as a login shell (see INVOCATION below).
       -r        If the -r option is present, the shell becomes restricted (see RESTRICTED SHELL below).
       -s        If  the  -s option is present, or if no arguments remain after option processing, then commands are read
                 from the standard input.  This option allows the positional parameters to be set when invoking an inter­
                 active shell.
       -v        Print shell input lines as they are read.
       -x        Print commands and their arguments as they are executed.
       -D        A  list  of  all  double-quoted  strings  preceded by $ is printed on the standard ouput.  These are the
                 strings that are subject to language translation when the current  locale  is  not  C  or  POSIX.   This
                 implies the -n option; no commands will be executed.
       [-+]O [shopt_option]
                 shopt_option  is  one  of  the  shell  options accepted by the shopt builtin (see SHELL BUILTIN COMMANDS
                below).  If shopt_option is present, -O sets the value of that option; +O unsets it.  If shopt_option is
                 not  supplied,  the  names and values of the shell options accepted by shopt are printed on the standard
                 output.  If the invocation option is +O, the output is displayed in a  format  that  may  be  reused  as
                 input.
       --        A  -- signals the end of options and disables further option processing.  Any arguments after the -- are
                 treated as filenames and arguments.  An argument of - is equivalent to --.

       Bash also interprets a number of multi-character options.  These options must appear on the  command  line  before
       the single-character options to be recognized.

       --dump-po-strings
              Equivalent to -D, but the output is in the GNU gettext po (portable object) file format.
       --dump-strings
              Equivalent to -D.
       --help Display a usage message on standard output and exit successfully.
       --init-file file
       --rcfile file
              Execute  commands  from file instead of the standard personal initialization file ~/.bashrc if the shell is
              interactive (see INVOCATION below).

       --login
              Equivalent to -l.

       --noediting
              Do not use the GNU readline library to read command lines when the shell is interactive.

       --noprofile
              Do not read either the system-wide startup file /etc/profile or any of the  personal  initialization  files
              ~/.bash_profile,  ~/.bash_login, or ~/.profile.  By default, bash reads these files when it is invoked as a
              login shell (see INVOCATION below).

       --norc Do not read and execute the personal initialization file ~/.bashrc  if  the  shell  is  interactive.   This
              option is on by default if the shell is invoked as sh.

       --posix
              Change the behavior of bash where the default operation differs from the POSIX 1003.2 standard to match the
              standard (posix mode).

       --restricted
              The shell becomes restricted (see RESTRICTED SHELL below).

       --verbose
              Equivalent to  -v.

       --version
              Show version information for this instance of bash on the standard output and exit successfully.







Es wird keine Verantwortung übernommen. Die Benutzung erfolgt auf eigene Gefahr.
alle Tipps & Tricks
Validator XHTML + CSS ® 2012   GADDO.DE   BAR-GAMES.DE