shift

Basic Linux Command Example: 

 

Get help on Linux shift Command.

 

   Linux shift command is use to shift positional parameters on Linux system.  The Linux shift command is one of bash shell built in command.  The command example below show how to get shift command manual or help on Linux shift command using shell command, this help show information on how to use the Linux shift command, the shift command options and the arguments that can be use with Linux shift command.

 

Get Linux shift command help

 

  Execute help command and the name of Linux command that we want the help file, the example below we execute help command with -m option to get the help for shift command using the manpage format.

shift linux command

[linux@fedora11 ~]$ help -m shift

NAME

    shift - Shift positional parameters.

 

SYNOPSIS

    shift [n]

 

DESCRIPTION

    Shift positional parameters.

 

    Rename the positional parameters $N+1,$N+2 ... to $1,$2 ...  If N is

    not given, it is assumed to be 1.

 

    Exit Status:

    Returns success unless N is negative or greater than $#.

 

SEE ALSO

    bash(1)

 

IMPLEMENTATION

    GNU bash, version 4.0.16(1)-release (i386-redhat-linux-gnu)

    Copyright (C) 2009 Free Software Foundation, Inc.

    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

 

[linux@fedora11 ~]$

 

Keywords: shift, shift command, linux shift command, shift linux command, linux command shift, shift command manual, shift manual, shift help, help shift, command shift help, help shift command