Shift may refer to any of the following:

  1. Shift is the name of a computer keyboard key. See our Shift key page for full information about this key.

  2. In binary a shift refers to either a left shift or right shift. See our binary page for further information about these shifts.

  3. Shift is a Microsoft command line command that changes the position of replaceable parameters in a batch program. Additional information about this command is found on our shift command page.

  4. When referring to a Linux shell, shift is a builtin command of the Bash shell. It shifts the values of command-line arguments for processing in a script. See our bash shift command page for further information.

  5. When referring to data in general, shift refers to how data is moved around an area when something is added or removed. For example, in Microsoft Excel, when a new cell is added or removed, data around that cell is shifted to accommodate the cell addition or cell loss.

  • How to add or remove a cell, column, or row in Excel.
  1. In some programming languages, shift is a function that removes the first element of an array. For example, in the Perl code below shift removes “one” from the beginning of the array to make it “two three.”

my @example = (‘one’, ’two’, ’three’); shift @example; print “@example”; #Prints: two three

Operating system terms, Programming terms

If you want to add to the end of an array, use the push function. If you want to remove the first element of the array, use the shift function.