• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

bitwise Command Examples in Linux

by admin

bitwise is a multi-base interactive calculator that supports dynamic base conversion and bit manipulation. bitwise is a command-line utility that allows users to perform various mathematical and logical operations on numbers, including bitwise operations, in different number bases.

To use bitwise, you will need to have the bitwise package installed on your Linux system. You can install bitwise using the package manager for your specific distribution of Linux. For example, on an Ubuntu system, you can use the apt command to install bitwise:

$ sudo apt install bitwise

Simple base conversion

Simple base conversion using bitwise command

C style syntax Calculator

C style syntax Calculator using bitwise command

bitwise Command Examples

1. Run using interactive mode:

# bitwise

2. Convert from decimal:

# bitwise 12345

3. Convert from hexadecimal:

# bitwise 0x563d

4. Convert a C-style calculation:

# bitwise "0x123 + 0x20 - 30 / 50"

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 6 : How to extract initramfs image and edit/view it
  2. “docker login” Command Examples
  3. Basic NFS Security – NFS, no_root_squash and SUID
  4. How to split iso or file using ‘split’ command in Linux
  5. uuid Command Examples in Linux
  6. aptitude Command Examples in Linux
  7. brotli: Compress/uncompress files with Brotli compression
  8. iwconfig Command Examples in Linux
  9. Audit rules to log reboot command executions in CentOS/RHEL
  10. guake Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright