Re: File in ASCII

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sai narasimhamurthy said:
> Is there a Linux Command which will display the file
> contents in ASCII??
>

This is quite a vague question.  It depends on what you are trying to do. 
If it is a file that only contains ASCII characters use one of the
following commands: cat, more, less or most.   Check the man pages.  man
cat

If the file is binary, ie it contains printable and nonprintable
characters try hexdump -C <filename>.  That gives the hex values and the
printable ascii characters are printed.

If you are trying to see a file that contains some language which does not
use ASCII characters (chinese for instance).  The quickest thing to do
would be to open it using a browser like mozilla, and then changing the
encoding to match the desired characters.

Good Luck,
John

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux