I would like to view the contents of a file in the current directory, but in binary from the command line. How can I achieve this?
xxd does both binary and hexadecimal
xxd -b file
hexdump -C yourfile.bin
unless you want to edit it of course. Most linux distros have
hexdump by default (but obviously not all).