---
title: bits
categories: |
bits
version: 0.104.0
bits: |
Various commands for working with bits.
usage: |
Various commands for working with bits.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `bits` for [bits](/commands/categories/bits.md)
<div class='command-title'>Various commands for working with bits.</div>
## Signature
```> bits {flags} ```
## Input/output types:
| input | output |
| ------- | ------ |
| nothing | string |
## Notes
You must use one of the following subcommands. Using this command as-is will only produce this help message.
## Subcommands:
| name | description | type |
| ---------------------------------------- | ----------------------------------------------- | -------- |
| [`bits and`](/commands/docs/bits_and.md) | Performs bitwise and for ints or binary values. | built-in |
| [`bits not`](/commands/docs/bits_not.md) | Performs logical negation on each bit. | built-in |
| [`bits or`](/commands/docs/bits_or.md) | Performs bitwise or for ints or binary values. | built-in |
| [`bits rol`](/commands/docs/bits_rol.md) | Bitwise rotate left for ints or binary values. | built-in |
| [`bits ror`](/commands/docs/bits_ror.md) | Bitwise rotate right for ints or binary values. | built-in |
| [`bits shl`](/commands/docs/bits_shl.md) | Bitwise shift left for ints or binary values. | built-in |
| [`bits shr`](/commands/docs/bits_shr.md) | Bitwise shift right for ints or binary values. | built-in |
| [`bits xor`](/commands/docs/bits_xor.md) | Performs bitwise xor for ints or binary values. | built-in |