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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. imagemagick for image optimization
  2. blurlock Command Examples in Linux
  3. How to disable or enable an HBA without reboot under CentOS/RHEL
  4. Beginners Guide to Samba (Installation and Configuration)
  5. ifrename: command not found
  6. virt-manager: command not found
  7. How to configure the logging of failed login attempts for vsftpd
  8. How to Password Protect GRUB2 in Oracle Enterprise Linux 7
  9. getcap Command Examples in Linux
  10. lsattr: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright