Linux Terminal Glossary
›
Shell & Bash
shift
Category:
Shell & Bash
shift
Copy command
Shift positional parameters left (drop $1, $2 becomes $1)
Removes the first positional parameter ($1), shifting all remaining ones down. $2 becomes $1, $3 becomes $2, etc.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.