Home Explore Blog CI



nushell

commands/docs/bits.md
4fc12daa63a133a1be099df36295ef9274a25dc7720f8eb300000003000006df
---
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 |

Chunks
e5141776 (1st chunk of `commands/docs/bits.md`)
Title: bits command documentation
Summary
This document describes the `bits` command in Nushell, which provides subcommands for performing bitwise operations on integers or binary values, including AND, NOT, OR, rotate left (ROL), rotate right (ROR), shift left (SHL), shift right (SHR), and XOR.